Questions tagged as 'java-ee'

1
answer

Date format in select

I have this method: public List<LoteEnvEntity> findallByDate(java.util.Date dataDe, java.util.Date dataAte) { String strQuery = "SELECT L FROM LoteEnvEntity as L WHERE 1=1"; //SimpleDateFormat simpledate = new SimpleDateForma...
asked by 06.11.2014 / 11:37
1
answer

Change and delete objects before persisting in DB

I have a functionality that aims to register customers, in which within such a register I have a relationship as follows: A customer can have several "Service", and each service can contain several destinations and / or related escorts....
asked by 26.11.2014 / 17:17
1
answer

Error while displaying the result of a List using MVC and JSF

I need to return data from the database to JSF but even before I get to JSF I can not show the searched data. I have the following error: Advertência: #{usuarioBean.pesquisa}: java.lang.ClassCastException: java.lang.Class cannot be cast t...
asked by 03.10.2014 / 17:22
1
answer

How to use ping / pong in Java Websocket

I searched for material on the Web but I still have not found how to implement ping / pong messages on the Server and Client, respectively. I know how to send and receive, but I still do not understand the logic of it all. Can anyone help me...
asked by 19.08.2014 / 22:21
1
answer

Validation of input triggering error 400 with Spring MVC

Personal, there is a boring error in which I'm losing sleep to find out how to treat. Well, every time I run my test by checking the validation of my field a 400 error is triggered. I do not know how I can resolve this. The server log does...
asked by 19.08.2014 / 00:38
1
answer

Spring Bind's with Collections

I have not been able to find a solution on how to solve this question yet, after researching and searching I found something about how I can bind elements from my form to a collection in a POJO. But first I would like to explain the business rul...
asked by 14.10.2014 / 20:51
1
answer

Object after persisted and returned inconsistent to a dropdown list

Hello everyone, good afternoon! Well, briefly I have a problem where I have no idea what might be happening. In my opinion, such behavior does not make sense. I'm using Spring MVC + Spring Data to facilitate CRUD operations on my system. I...
asked by 08.08.2014 / 23:09
1
answer

convert from Date to number in Java

I have a field in the MySQL database Date type and inside a modelPie.set(String, number) function I want to bring this field but java says it can not convert from Date to Number .     
asked by 20.09.2014 / 02:50
1
answer

Problem with class org.hibernate.validator.InvalidValue when upgrading from Hibernate 3.X to 4.X

I have a project developed using JBoss Seam 2.2.2.Final together with Hibernate 3.6 . I'm trying to upgrade this project by uploading and migrating the component versions that it uses. One of these migrations is to upgrade the version of H...
asked by 24.03.2014 / 14:20
1
answer

Bug in simple example JSF + Primefaces

I tried to run a simple example with JSF and Primefaces but I believe it is something related to some incorrect configuration. The application is running on Tomcat 9.0.13, below the project settings below: <build> <plugins>...
asked by 12.12.2018 / 15:43