-
1. Re: Richfaces - Modal
sivaprasad9394 Apr 2, 2013 11:58 PM (in response to sincanvin)Hi Vinnay,
1) Model window will be launched after action means you have to use oncomplete in commandbutton or commandlink.
After processing the backing bean action it will load the popup in the screen.
<a:commandLink id="searchPOPUP" value="SearchPOPUP" action="#{docLibraryHome.searchByDocument}" reRender="imgPopUpPanel"
(OR)
status="statusID" oncomplete="Richfaces.showModalPanel('imgPopUpPanel')" />
Popup inside jsp page or xhtml page:
<rich:modalPanel id="imgPopUpPanel" autosized="true" zindex="2000" width="300" height="250"
style="text-align: center; font-weight: bold;" resizeable="false"><f:facet name="header">
---------------------------------------------------- UR CODE inside model panel -----------------------------------------------------
2) For showing the progress bar while clicking the action button or link,
here button's ststus attribute should be a4j:status id and a4j:status for attribute should mention the a4j:region.
if you follow like below loading_page.xhtml is common page for displaying the progress bar in the page or modelpanel.You have to include the page using <a4j:include in every page where you like to display the loading bar and follow the steps as showed in the screen.
SomePage.xhtml:
<h:form id="trainingForm">
<a4j:region id="trainingRegion">
------- you code -------
</a4j:region>
</h:form>
<a4j:status id="statusID" for="trainingRegion" forceId="true"
onstart="#{rich:component('wait')}.show()"
onstop="#{rich:component('wait')}.hide()"/>
<a4j:include id="loadWindowaddEditTraining"
viewId="/loading_page.xhtml"></a4j:include>
loading_page.xhtml:
<rich:modalPanel id="wait" autosized="true" width="50" height="50"
moveable="false" resizeable="false">
<h:graphicImage alt="Please Wait..." value="/img/loading_animation.gif"></h:graphicImage>
</rich:modalPanel>
I think it will help to display please wait progress bar in the model panel.
Thanks,
Siva
-
2. Re: Richfaces - Modal
sincanvin Apr 5, 2013 9:34 AM (in response to sivaprasad9394)Thanks Siva.
Thanks for sharing code snippet. I am able to follow this but there is no Modal Panel in Richfaces 4.2.2. Do you have any idea how to implement this functionality?
Pl. share some info on this.
-
3. Re: Richfaces - Modal
jhuska Apr 6, 2013 8:16 AM (in response to sincanvin)Hello,
I think that you can follow this example:
there is a modal popup panel used in RichFaces 4.x. I would also recommend you to use latest 4.3.1.Final.
Regards,
Juro