This content has been marked as final.
Show 3 replies
-
1. Re: exceptions to please wait modalPanel
timbooo Jun 17, 2009 2:07 AM (in response to asookazian)hi,
you could use the showWhenRenderedattribute from the modal panel.
you can bind it to a bean and set it to true whenever you need it. and to show it, you just need to rerender it from the buttons/links.
closing the modal can be realised by the oncomplete tag of a commandbutton/-link.
kind regards,
tim -
2. Re: exceptions to please wait modalPanel
asookazian Jun 17, 2009 11:14 AM (in response to asookazian)"timbooo" wrote:
hi,
you could use the showWhenRenderedattribute from the modal panel.
you can bind it to a bean and set it to true whenever you need it. and to show it, you just need to rerender it from the buttons/links.
could you plz provide an example of this approach? thx. -
3. Re: exceptions to please wait modalPanel
timbooo Jun 18, 2009 2:14 AM (in response to asookazian)"asookazian" wrote:
"timbooo" wrote:
hi,
you could use the showWhenRenderedattribute from the modal panel.
you can bind it to a bean and set it to true whenever you need it. and to show it, you just need to rerender it from the buttons/links.
could you plz provide an example of this approach? thx.
well, if you're doing it the following way, you have to get rid of the a4j:status part in your pleaseWaitModalPanel.xhtml.
i think there's an even easier way as described above to accomplish your needs.
your modalPanel has to look sth. like that (nothing special):<rich:modalPanel id="yourModalPanel"> <h:form id="yourModalPanelForm"> Whatever you need in your modalPanel. </h:form> </rich:modalPanel>
and all the buttons that should show your wait modal panel (and only these ones) should look sth. like that (oncomplete and rich:componentControl are important):<a4j:commandButton id="myButton" action="#{yourBean.yourAction}" value="MyButton" oncomplete="Richfaces.hideModalPanel('yourModalPanel');"> <rich:componentControl for="yourModalPanel" attachTo="myButton" operation="show" event="onclick" /> </a4j:commandButton>
hope this helps.
tim.