Hi All,
I am new to
JSF, I need help in invoking rich:modalPanel from another page ?
For example:
Consider Page1.xhtml
In the above page, I have to provide a link somewhere in the middle of the form which popups the modalPanel. This modalPanel is in another Page (say modalPage.xhtml)
The modalPanel content should be in a different page as it is needed in the multiple pages of the application.
Note: This modalPanel has another form which takes some inputs from the user.
I have used <ui:include> tag to include the content of the modelPanel.xhtml and used the below code to invoke the modalPanel (in Page1.xhtml), but it is not working.
<a href="javascript:Richfaces.showModalPanel('modalPanelID')">Display Modal Panel</a>
I think it is not finding the id 'modalPanelID' of rich:modalPanel tag which is present in another page, but not sure about that.
Please provide your thoughts.
Thanks
Abhishek