Questions tagged as 'java'

0
answers

Execute method by JSF automatically

I have a JSF with a p: panelGrid with columns that together form a screen that we call telemetry (big screen with several information passing in real time), in each column I added a method in which I passed an ID as parameter for searching in th...
asked by 03.05.2017 / 19:42
1
answer

How to make a method in the Spring controller that does the same as this method of a servlet?

This code returns a json for an html page that uses an ajax feature to load a Google API chart I would like to do the same but using a Spring controller! public void doGet(HttpServletRequest request, HttpServletResponse response)...
asked by 12.05.2017 / 02:44
1
answer

File Upload / Parameters via HTTP in Java

I was using Python to update aguns devices via Post, where I defined some parameters and sent a file, where the equipment itself updates after receiving this file. However, as I developed a Java application with Swing, I was unable to implement...
asked by 12.05.2017 / 06:03
0
answers

Character removal on Heroku server

I have the following code snippet for special character override public String removerAcentos(String str) { return Normalizer.normalize(str.replaceAll(" ", ""), Normalizer.Form.NFD).replaceAll("[^\p{ASCII}]", ""); } When I run on my mac...
asked by 12.05.2017 / 16:14
1
answer

Web-service Architecture and Functionality

I have a question regarding Web-service. This is the following I have an application in Java EE JSP, where it should allow a conversation with another application on Android (Example: when registering a meeting ata in the database by the JSP...
asked by 12.05.2017 / 09:13
1
answer

method picking up wrong value

Look, I have this button in a datatable <p:commandButton id="prepDownloadAditivoNovo" style="float:left;" icon="ui-icon-arrowthickstop-1-s" value="Download" ajax="false" actionListener="#{file...
asked by 19.05.2017 / 21:19
1
answer

java.lang.RuntimeException: Parcel: unable to marshal value

I have this error when I click on a RecyclerView item and I pass an object through Intent, I have already implemented Serializable and it did not work @Override public void onBindViewHolder(final ProcedimentoViewHolder viewHolder, final i...
asked by 19.05.2017 / 17:21
1
answer

Delete database record with ajax + spring boot + thymeleaf

Good afternoon! I'm trying to delete an item in my view, which is in a bootstrap table. I'm using thymeleaf + bootstrapno frontend. The idea is to take the id and move to a modal bootstrap window and through the modal delete the record in the ba...
asked by 19.05.2017 / 20:54
0
answers

Upload JPEG via JSON

I have a code that takes a photo of the gallery or causes me to take a picture and would like help sending this image via JSON to my API, but I have no idea how to do it. My code: @Override public void onRequestPermissionsResult(int request...
asked by 19.05.2017 / 20:18
1
answer

Faulty Service Problems in my web service

I did a web service and it was working fine until this morning, in the afternoon when I put the webservice through Eclipse and tried to connect to the address of the same service Faulty Service error. I did it all over and I could not s...
asked by 19.05.2017 / 21:19