I just got my code to work.

I still can't explain the spectacular errors and visual effects like
duplication of my dataTable, but I managed to avoid the problem.

The key was not to discard the old instance of HtmlPopup and create a new
one on every render. i.e. these lines:
this.getChildren().clear(); // we only want one popup
this.getChildren().add(popup); 

I changed my code to check if my component already has children and if it
does, resuse them. This made my page work properly.

Anyone understand why it wasn't working when a new instance of HtmlPopup was
created every time?

Val
--
View this message in context: 
http://www.nabble.com/t%3Apopup-problems-t1445543.html#a3907962
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to