Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding a facesContext in a Dialog

 
augusto colombelli
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic