Questions tagged as 'jsf-2.2'

0
answers

File Upload PrimeFaces - Save image in project context

Good evening I'm with a javaEE project jsf2.2 and primefaces, in which I use the component of primefaces so that the user sends an image and it is saved in a folder inside the project, type: "resources / images", so that through a html page anot...
asked by 22.01.2018 / 00:17
1
answer

The "javax.faces.source" parameter does not appear when I use the update="# {mainControle.updateAlterarCadastroGenerico}" tag in a p: commandButton

I am using PhaseListener to validate user permission. And when I use the Update tag with biding I can not see the javax.faces.source parameter in the request. HTML that works: <p:commandButton actionListener="# cadastroGe...
asked by 29.11.2017 / 19:09
0
answers

SelectOneMenu does not bring the description of the object in the edit

I'm doing a registration that has a relationship with another, I'm using SelecOneMenu to draw it, when I make a new one it works correctly, but in editing it is not bringing the object of the other class, and when I just save a record and I try...
asked by 22.11.2017 / 12:06
0
answers

How to fix it in my code: Null Pointer Exception

My database has those responsible for "Supervisor" and "Manager" values. However, I make a search to get the Employees responsible and zero return. See my getResponsible method in my class " EmployeeDA.java ": public List<Empregado> getR...
asked by 01.12.2017 / 01:07
1
answer

Update a selectOneMenu (method in the bean)

Well I'm trying to get a selectOneMenu to populate another selectOneMenu and update a field, but I still do not quite understand how to do it. classes: package model; import java.io.Serializable; import java.util.List; import javax.persis...
asked by 17.11.2017 / 21:58
0
answers

Make Global Selection in the Application

I wanted to know how to make the overall year selection in the application and work with the data only with the selected year. Do I have to make the ManagedBean be ApplicationScope? How do I navigate the application and not lose it in select. .c...
asked by 13.11.2017 / 15:17
1
answer

Problem with JSF during form validation

I have a problem with the animal registration form: Here's the part of the diagram involved in the form relationship: TheproblemisthatwhenIamregisteringananimal,Icangetbythename,age,genderandtypeofanimal(whichinthiscaseisfromanothertable)...
asked by 03.11.2017 / 00:26
0
answers

JSF - Interrupt method when closing browser

I have a report that depending on the filter applied may take a long time to finish. On some occasions the user gives up waiting and closing the browser, it happens that the query is still running on tomcat. Is there a way to invalidate the sess...
asked by 26.10.2017 / 13:02
1
answer

POST JSF with Spring Boot - ViewExpiredException

When I try to submit a form I get the following error:    javax.faces.application.ViewExpiredException: /patient-form.jsf - No   saved view state could be found for the view identifier:   /patient-form.jsf     
asked by 17.09.2017 / 00:47
1
answer

Tomcat v8.5 does not boot, displays error: Child container failed during start

I'm doing a college work, a simple crud with JSF2, Hibernate, Primefaces and CDI. But at the moment I'm going to start the project in Tomcat I get the following error: GRAVE: A child container failed during start java.util.concurrent.Execution...
asked by 27.08.2017 / 19:01