Questions tagged as 'java'

1
answer

Dependency conflict in JSF with Maven

I created a Maven project in Eclipse with JSF 2, project has been evolving well, running Tomcat 8 with no problems and that's when I started to implement the reports so I put the dependencies for Jasper according to the code below, hence tomcat...
asked by 04.02.2017 / 19:35
1
answer

Convert String to Json in Java EE

I'm getting a String in a .jsp and would like to convert it to JSON, so I can access the values of it. I've looked for everything, but I could not solve my problem, because I can not access the value of the field. Please, if you can help me, I'l...
asked by 05.02.2017 / 17:02
1
answer

Rounding Numbers on Android

I am trying to format numbering to only two decimal places after the comma, I am using the following code line NumberFormat formato = new DecimalFormat("0.00"); But the minimum API of my application is 15 and it's asking 24 to use t...
asked by 05.02.2017 / 03:18
1
answer

Error creating Google Maps Activity

When I create a new - > Google - > Google Maps Activity it creates everything correctly. Then I add the key in google_maps_api.xml . <stringname="google_maps_key" templateMergeStrategy="preserve" translatable="false">...
asked by 31.01.2017 / 18:30
1
answer

Hibernate inserts optimization when there is relationship @ManyToMany

Imagine relationships:    User has many Permissions       Permission has many Users We can create a N para N relationship as follows: User.class public class User { /*Many attributes here*/ private List permissions;...
asked by 18.01.2017 / 04:28
1
answer

Parameter is not arriving as null

I'm working on internationalizing my messages and centralizing them. I have the following methods: private static void addMessage(Severity severity, String mensagem, Object...args){ FacesContext context = FacesContext.getCurrentInstanc...
asked by 18.01.2017 / 17:29
2
answers

Load table view with ObservableList

I am trying to load a table view with the result of a query. The result of the query is sent to an ObservableList which is then called in the controller. I do not get any error but it does not show any results either. Can someone help me find...
asked by 17.01.2017 / 17:41
1
answer

Create selects with hibernate criteria generic

I'm doing a web-based, administrative software, it has several graphs and several tables, the problem with this is that several graphs and tables generate many queries to the database, and with this, many classes that have a similar structure, F...
asked by 13.12.2016 / 14:14
1
answer

unsupported major.minor version 52.0visual studio 2015 community [closed]

The error image is attached     
asked by 14.12.2016 / 21:40
2
answers

Wsimport of multiple equal services with several unnecessary operations

In Java, I'm using the wsimport tool. The process works. However there are some problems. I have to do the wsimport in the services of several different providers (all of them third, I have no control over them). WSDLs are almost identical, j...
asked by 14.12.2016 / 16:53