File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Adding a facesContext in a Dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Adding a facesContext in a Dialog" Watch "Adding a facesContext in a Dialog" New topic
Author

Adding a facesContext in a Dialog

augusto colombelli
Greenhorn

Joined: Jun 07, 2013
Posts: 1
Hello everybody,

I am trying add one facesContext in my Dialog. When I press my button first time, It works fine, but when I update the page and press again the button, I have this error message:



I am adding dynamic components, look it:




Somebody have one example?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

Welcome to the JavaRanch, Augusto!

I have kept silent these past few days because I have no solution to give. All I can say is that as a general rule I don't recommend manipulating the JSF component tree in Java code, which is why I don't have a solution. Except in very, very rare cases, I do stuff like this solely in the xhtml View Definition.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Adding a facesContext in a Dialog
 
Similar Threads
ajax and p:picklist (PrimeFaces)
javax.servlet.ServletException:Index:0, Size:0 at javax.faces.webapp.FacesServlet error on first pag
Problem with WAR deploy in Tomcat 7
Bean Validation with JSF problem: cannot initialize class org.hibernate.validator.engine.ConfigurImp
Strange NullPointerException