Questions tagged as 'java'

0
answers

Understanding old JAVA code

I have a code here in the company and I need to understand what it actually does. By the method's naming I found that it removed the non-standard UTF-8 characters or something, giving a parsed I saw that it does not do exactly anything in the st...
asked by 08.11.2017 / 12:55
2
answers

Problem with @form of Primefaces - JSF

I have a problem with the auto update @form of the primefaces, it should update the dataTable automatically but it is not working. Below is JSF and managedBean. Thank you!              Products      <h:form> <p:toolbar&g...
asked by 08.11.2017 / 01:09
0
answers

Dynamically editing a variable in android

Hello, I have an Activity that has some TextView fields and I'm putting down some EditText so that I want to change these fields. I insert the data and click on the button and it automatically goes there and changes these TextViews to me I can no...
asked by 18.11.2017 / 19:30
1
answer

Problem Hibernate 4.3 with Glassfish 3.1

My application with Hibernate 4.3 normally runs with Glassfish 4 , installed along with NetBeans IDE. However, the server where I need to deploy the application has Glassfish 3.1 . On this server the application is n...
asked by 21.11.2017 / 19:19
0
answers

Get the bytes of the file and generate a hash

I am reading a txt file as follows, how would I do to save the bytes of the file and generate a sha-256 hash the class that generates I already own the code, as I do to save in an array of bytes or other suggestions. I'm sorry I'm a beginner in...
asked by 19.11.2017 / 05:51
0
answers

How to send Sort seen URL in native paging query?

The structure below works perfectly, but when I send in the input and pagination data the sort command of the Sql error, what do I need to put in the query to accept the sort by the field I want? I am sending this data via URL: dadosEntrada...
asked by 21.11.2017 / 20:38
0
answers

My code does not send email to Gmail, however it sends to Hotmail

My code for some reason does not send emails to Gmail, well, at least emails do not arrive. This is a college job, I earned the score, so no rush, but this is bugging me, what's the problem? Because I can send to hotmail, but for Gmail I have pr...
asked by 22.11.2017 / 00:31
1
answer

Error trying to save data to the database via Java

I am trying to save data to the database and are returning the following error:   attempt to create merge event with null entity Bean looks like this: public void SalvarCliente(){ try { ClienteDao clienteDao = new ClienteDao(); cli...
asked by 07.11.2017 / 20:41
0
answers

Error android studio "OnFragmentInteractionListener"

I'm trying to use a fragment in the Navigation Drawer, but it's giving "The application stopped working" error menu: package portal_aluno.com.portal; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; impo...
asked by 07.11.2017 / 21:48
1
answer

problems with Float Action Buttom (speedDial) - Android

Hello! I found a lib of a float action with speed dial and I'm trying to implement it in my Android project, but I'm not able to interact with the Float Button ... follows the code of the fragment containing the float: public class NovaPesq...
asked by 07.11.2017 / 20:38