Questions tagged as 'java-ee'

0
answers

I can not update my object after being recovered

I'm trying to update my form after retrieving an object and I can not. My DAO public List<Contato> listar() { List<Contato> contatos = new ArrayList<>(); String sql = "select * from contato"; try (Prepared...
asked by 01.08.2017 / 03:32
1
answer

Value of h: selectOneMenu is not being defined

I have already created forms in JSF several times, but I do not understand why% of% of this value is not being set. <h:form> <h:selectOneMenu id="nova-matriz-select"...
asked by 07.07.2017 / 20:22
1
answer

Hibernate does not generate the database and the tables in mysql

I'm having problems with my project, about setting up the bank together with the tables. jul 06, 2017 7:19:21 PM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {5.2.10.Final} jul 06, 2017 7:19:21 PM org.hibernate.cfg.Environ...
asked by 07.07.2017 / 00:30
1
answer

Redirect DDNS to Tomcat

I created a free DDNS in Winco and wanted to know how to redirect the same to an application in Tomcat. At the moment when I access the DDNS, it redirects to the page of my modem.     
asked by 07.07.2017 / 05:14
1
answer

Editing a record with Daialog framework of primefaces

I am a beginner in the world java and java web, starting with jsf, primefaces and I have a problem that I can not solve. I have a dataTable listing some data, I have the ajax event to select a field in the table and an edit button. when doing th...
asked by 18.07.2017 / 15:41
1
answer

File Path (Java Web)

I'm working on a web project and I'm having a problem with files ( java.io.File ). The problem is only when I am running the web application, if it is Java Application the problem does not exist. When instantiating a file, new...
asked by 29.06.2017 / 20:51
1
answer

Transforms in "dd / MM / yy" format

I've been doing the exercise 6.4 Optional exercises: Caelum's list of contacts with scriptlet and there's a question that says: " 2) Notice that the date appeared in a complicated way Try formatting it using the class SimpleDateFormat " I n...
asked by 04.07.2017 / 04:45
1
answer

Items from p: selectOneMenu / do not appear

I'm developing a web application and jsf web jfs primefaces, and I put a select from primefaces, but the items from <f:selectItems / > do not appear Looks like this <h:panelGrouplayout="block" styleClass="parcelas">...
asked by 10.07.2017 / 02:32
1
answer

Configure hibernate.cfg.xml with DataSource configured in Wildfly 10

I'm trying to set up my hibernate to recognize the connection configured in Wildfly, I already tested the connection on the wildfly panel, it's 100% functional. The problem now is to make the application that uses hibernate preview the DS.     
asked by 23.06.2017 / 15:12
1
answer

Authentication and Security JAAS with multi modules

I'm working on an application with the following architecture: As you can see the system will have several modules. In Project Portal I implemented JAAS, and I am not able to maintain authentication when I enter another module within...
asked by 23.06.2017 / 13:57