This content has been marked as final.
Show 4 replies
-
1. Re: Open a modal panel on page load
francof Jun 12, 2009 10:09 AM (in response to francof)Sorry for bumping this up.
Is this possible? - I am not sure but I think I remember reading somewhere that you can open a modalpanel when a page is called. I can't find it in the Richfaces book.
If this is not possible, I can think of an alternative UI for my use case. -
2. Re: Open a modal panel on page load
six-p4ck Jun 12, 2009 10:27 AM (in response to francof)to open a modal at the start of the page i do this:
<ui:define name="body"> //page code <rich:modalPanel id="myModal"> //modal code </rich:modalPanel> <script type="text/javascript"> Richfaces.showModalPanel('myModal'); </script> </ui:define>
-
3. Re: Open a modal panel on page load
nbelaevski Jun 12, 2009 11:06 AM (in response to francof)Hi,
Set showWhenRendered="true" -
4. Re: Open a modal panel on page load
francof Jun 12, 2009 11:25 AM (in response to francof)Thanks for your replies, six-p4ck & Nick
Nick - showRendered works great, thanks I missed that in the reference guide.