aspose 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
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: 16014
    
  20

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