Questions tagged as 'java'

3
answers

Do not parse the bootstrap datepicker for dd / mm / yyyy - 400 Bad Request (POST)

I have a web application, basically pure wheel with JSP + AngularJS. The template I use from the bootstrap, did not have datepicker with AngularJS, so I'm using it with jQuery. I have on my screen, a modal with several fields, I could al...
asked by 07.01.2016 / 17:49
1
answer

How to generate default values with JPA hibernate [closed]

I would like to optimize my code and my work with the following situation. I have an entity address that has one type, that is, another entity called TpEndereco. Since this table has default values, for example: commercial, other, residential .....
asked by 07.01.2016 / 19:18
1
answer

Add values within the Two-Dimensional Matrix from the line that the user chooses

In the exercise I had to create a 2D array and then when the user types 0, 1 or 2 to know the array line , I should add the values of the line and show the result. I'd like to know if inside the array, if I can add it up without having...
asked by 30.03.2016 / 22:12
1
answer

Instantiate annotated class with Hibernate inheritance using CDI

Good afternoon, I am creating a project using JSF , CDI , Bootstrap and Hibernate . I would like to know how to work with the following problem, I created a set of classes to represent a person entity física...
asked by 30.03.2016 / 18:16
1
answer

How to restrict the values of a date in a field of a form in java?

I have a form built with Swing (Java) that has some fields, among them there is one that is the Birth Date (a String that receives the value of a date and has a formatted field ##/##/#### .) is represented by the variable jTFData...
asked by 27.03.2016 / 20:00
1
answer

Data ordering: Bubble sort or Collections sort method

Which is more efficient to sort a large amount of data passed by a vector: Bubble sort Use the Collections features, for example the Sort method.
asked by 29.03.2016 / 05:16
1
answer

Doubt when using TimerTask

Here is my example of using the TimerTask class and my problem is as follows:   I want to make this routine automatically every 12 hours. Currently nothing is happening, is something missing? And this class just give a tomcat deploy that...
asked by 04.01.2016 / 18:24
2
answers

Error trying to start another activity through a button

My program runs, but when I click the q button it should open a new activity, the program closes saying that it hears an error.    FATAL EXCEPTION: main                                                                              Process: com...
asked by 06.01.2016 / 20:08
1
answer

Jackson will not serialize JSONObject object

I have a service like this: @Path("/test") public class TestEndPoint { @GET @Produces("application/json") public Response get(){ POJO pojo = new POJO(); pojo.setName("Rafael"); return Response.ok(pojo).bui...
asked by 06.01.2016 / 18:26
1
answer

How to assign textview return to a string?

I'm new to Android / Java, I wanted to do the following to get the result of a textview that is taken through the barcode scan and play in a string to make a list of results taken by the barcode scan. How do I play the result in a string? Her...
asked by 16.02.2016 / 14:28