This content has been marked as final.
Show 2 replies
-
1. Re: How to switch between modelPanels
sivaprasad9394 Aug 19, 2010 11:59 PM (in response to blaverman)what ever method you are using before closing clear the previous search criteria and then close model panel.
<a4j:commandButton id="btnCaptured" value="Close" styleClass="Black01"immediate="true"oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('modelPanelId')}.hide();"/> -
2. Re: How to switch between modelPanels
ilya_shaikovsky Aug 24, 2010 6:13 AM (in response to blaverman)<button onclick="#{...('one')}.hide; #{...'another'}.show()";/>
P.S.
1) #{rich:component('myModelPanel')}.hide()
usage of JS in handler
2) Richfaces.hideModalPanel('myModalPanel')
deprecated.
3) using <rich:componentControl>
declarative definition with tag.
1) and 3) actually generate the same call. It's just the question of convinience.