This content has been marked as final.
Show 2 replies
-
1. Re: RF4: hide/show popupPanel using rendered-attribute does not work with domElementAttachment="body"
rhanus May 3, 2013 7:05 AM (in response to alsha)simply close the popup panel
add attribute onclick="#{rich:component('popupPanel_Id')}.hide()" to the link <a4j:commandLink value="hide" defined inside popupPanel
you use the show attribute to determine whether or not the popup will be loaded when the page is loaded
if you (re)render with false value then the popup will be hidden but you should close already opened popup by calling either #{rich:component('popupPanel_Id')}.hide() or <rich:componentControl operation="hide" target="popupPanel_Id"/>
-
2. Re: RF4: hide/show popupPanel using rendered-attribute does not work with domElementAttachment="body"
alsha May 3, 2013 7:32 AM (in response to rhanus)Thank you Radim,
you are right, close the panel per JavaScript solves the problem.
The funny thing is, that this example works perfectly with domElementAttachment="parent"....
Greetings,
Alexey