This content has been marked as final.
Show 3 replies
-
1. Re: Should modal panel be called in the same jsp where it is
nbelaevski Mar 12, 2009 10:29 AM (in response to aish)Aish,
Can you please give me a link to this documentation? -
2. Re: Should modal panel be called in the same jsp where it is
parisila Mar 16, 2009 12:04 PM (in response to aish)On the demo page (http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf?c=modalPanel) there is a note at the bottom that says this:
The modal panel has an absolute layout.There is no reason to put it on the page where it is called.
I also would like to have the modal panel on a different page but was not able to get this to work. Does anyone have an example?
In fact, I would like to show the modal panel from an action method of a backing beanaction=#{modalPanelPage.show()}
but there does not seem to be a way to show the panel from a backing bean only from javascript on the page. If anyone has a comment on how to call from an action method I would appreciate the help. -
3. Re: Should modal panel be called in the same jsp where it is
giftsam Mar 18, 2009 10:42 PM (in response to aish)Hi,
You can include page2 code within page1 code using jsp:include or a4j:include. So that page2 comes in a modal panel.For eg:page1.jsp <h:form> // page1 jsp codes written using JSF or any // Call the below modal panel by a button click in this code </h:form> <<rich:modalPanel id="lPanelId" autosized="true" top="20px" left="90px" moveable="true" styleClass="rich-modalpanel rich-mpnl_panel"> <jsp:include page="/page2.jsp"/> // Include page2.jsp using a modal panel </rich:modalPanel> Thanks