Questions tagged as 'java-ee'

1
answer

Simulate different timezone with Java

I developed a web application (with java) and in it I have a business rule which needs to save the user's subscription time. However I need to save 3 times: user's local timezone, global timezone, and server timezone. My problem is in testing...
asked by 10.03.2016 / 13:00
1
answer

Convert String to Date (request.getParameter)

I have a form in JSP that performs a registration that has a date. <form method="Post" action="InserirCompromisso"> titulo : <input type="text" name="titulo" required="true"> local : <input type="...
asked by 06.03.2016 / 03:56
1
answer

JPA merge / persist

I have the following structure: A.class B.class C.class D.class A.class contains many B.class that contains D.class C.class contains many D.class that contains B.class Being D.class is...
asked by 11.05.2016 / 20:06
1
answer

What is the endpoint interface in EJB? [duplicate]

I'm studying EJB (Enterprise Java Beans) and would like to know, within the context of distributed applications, what the role of the endpoint interface is. What is the endpoint interface? Where and when should the interface be used?
asked by 14.12.2015 / 20:20
1
answer

How to start in a certain tabindex (primefaces) tab?

How do I display one on a given tab? I tried to use tabIndex="#{meuBean.tabIndex}" setting to 0,1,2 and etc, but when opening it it always positions itself on the first tab.     
asked by 05.10.2015 / 19:42
1
answer

Line break in message from p: confirm Primefaces

I'm not able to implement the line break in the following code: <p:confirm icon="ui-icon-alert" header="Confirma a alteração do Status" message="Tem certeza que deseja alterar a Situação do Candidato? O reenvio no período de 6 m...
asked by 24.11.2015 / 13:51
1
answer

What's wrong with running Hibernate Query?

I'm running this query in hibernate: manager.createQuery("from Usuario where senha = '" + senha + "' and login = '" + login + "'", Usuario.class).getResultList(); But it is giving an exception that one of the columns does not exist in the D...
asked by 26.09.2015 / 20:36
1
answer

How to run a p: confirm through Bean?

My question is: How can I run a <p:confirm> through Bean? I'll explain the problem better. When inserting a record I need to check if it already exists in the list in which I am entering the CPF. So far so good. I give a message...
asked by 15.10.2015 / 02:07
1
answer

PersistenceUnit: fabricaweb2 Unable to build EntityManagerFactory

I have this error below, can not create the EntityManager. I am using maven and the META-INF folder is within src / main / resources in the root folder where the src / main / java entities are. Errors below when I run: log4j:WARN...
asked by 14.10.2015 / 11:03
1
answer

SelectOneRadio sending only one value

I am completing a simulation system for my course completion work. However, I have a problem that I still can not solve. I do a filter to select the questions for the user to answer, and I play those questions that were found by the filter wi...
asked by 17.10.2015 / 16:26