File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Adding a facesContext in a Dialog

augusto colombelli

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: 17417

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Adding a facesContext in a Dialog
It's not a secret anymore!