This content has been marked as final.
Show 6 replies
-
1. Re: problem on creating HtmlModalPanel object dynamically
panky_p Jul 3, 2009 8:48 AM (in response to orkun)Try something like this
Try this waycontrolPanel.getChildren().add(myPanel1);
-
2. Re: problem on creating HtmlModalPanel object dynamically
nbelaevski Jul 3, 2009 9:06 AM (in response to orkun)Hi,
How do you check it's not here - is it not in DOM tree? -
3. Re: problem on creating HtmlModalPanel object dynamically
orkun Jul 5, 2009 7:15 AM (in response to orkun)when I put it in RootTree in this way:
UIViewRoot view=FacesContext.getCurrentInstance().getViewRoot();
view.getChildren().add(myPanel1);
( nothing is seen yet )
It is in DOM tree, Isn't it ?
All I want to do is to create a modalPanel dynamically at the centre of my screen. ?
my java code above doesn't produce it.
Note: I tried this "controlPanel.getChildren().add(myPanel1);" -
4. Re: problem on creating HtmlModalPanel object dynamically
nbelaevski Jul 5, 2009 8:00 AM (in response to orkun)It can be present but being invisible because hidden. Check DOM tree.
-
5. Re: problem on creating HtmlModalPanel object dynamically
orkun Jul 5, 2009 2:25 PM (in response to orkun)thank you
according to firebug it exits.
how can I make it visible ?
does "myPanel1.setKeepVisualState(true)" make it visible ? -
6. Re: problem on creating HtmlModalPanel object dynamically
nbelaevski Jul 5, 2009 3:25 PM (in response to orkun)No, this doesn't make it visible. Use JS API or "showWhenRendered" attribute.