Questions tagged as 'java'

1
answer

Error loading JSF project: URL changing by itself

When I run my project in netbeans, my project is being loaded in the http://localhost:8080/loogix// URL when it should actually load http://localhost:8080/loogix/faces/index.xhtml . The Log to run is: Listening for transport dt...
asked by 01.12.2017 / 02:18
1
answer

Close modal JSF

I need to make my deleteConfirmationModal close. It only works by clicking NO . I need to make it execute the SIM action and close the modal. <p:commandLink title="#{label.REMOVE}" process="@this" styleClass="btn-remove" oncom...
asked by 05.12.2017 / 13:02
1
answer

Maven changing faces-config.xml

I have an EJB project and my maven is changing the faces-config.xml when I run "mvn install", maven changes everything inside it leaving without the paths I specify, it follows my "pom" file WEB project <project xmlns="http://maven.apache.o...
asked by 17.11.2015 / 19:31
3
answers

Gson: serializing dates in various formats

I'm using Gson and need to serialize a class with different date formats: @TimeStampField(onlyDate = false) private Timestamp datahora @TimeStampField(onlyDate = true) private Timestamp diaLimite I wanted to get these annotations inside my...
asked by 11.11.2015 / 14:02
1
answer

How to put socket in read mode until receiving another data in java

I created the server part and the client part. If messaging is just an input and an output works perfectly, the problem is to maintain communication without closing the socket. In case I send a message to the server, it responds by confirming...
asked by 24.01.2018 / 18:24
1
answer

App only keeps a record on Android

I'm developing an app on Android where data is in a web-based developed in PHP / Mysql. The code I am using to get the data is: public class ListarDados extends AppCompatActivity { public static TextView data; //String url = ""; // @Ove...
asked by 26.01.2018 / 23:32
1
answer

How to create an Object ArrayList and iterate over it?

I need to create a ArrayList of this object, but within its own method, and have a method to return the array with Iterator . I'm trying to do it this way, but nothing happens. MAIN.JAVA package banco; import java.util.Sc...
asked by 02.03.2018 / 02:09
1
answer

Configuration Instance Tomcat / NGinx java sprintg

I need to set up a new tomcat instance to host a new application, and in parallel to this, configure nginx to make the reverse proxy. The application is developed in java Spring. The application is two packages front and one back that will se...
asked by 25.02.2018 / 15:04
1
answer

Jasper Reports - Create vertical line in Detail

I'm having a somewhat complicated problem, I use xpath to generate xml data for the report, and when I put the information in the detail, they appear normally, but the vertical line does not stay until the end. An example of the problem:...
asked by 13.04.2018 / 03:04
1
answer

What is the difference between parameterized class, multiobjects and collections?

Well, I know the concepts of each one. I just do not know how to differentiate them. For example, a parameterized class is a class that is used to define other classes, and a collection can be represented by a parameterized class. However, what...
asked by 24.03.2017 / 04:34