This content has been marked as final.
Show 4 replies
-
1. Re: rich:modalPanel closecontrol action
ilya_shaikovsky Feb 5, 2009 6:12 AM (in response to gegoss)you could use jsFunction placed to the body form of output panel. So you will call the function from closure control and execute panel hide on oncomplete.
-
2. Re: rich:modalPanel closecontrol action
gegoss Feb 5, 2009 6:59 AM (in response to gegoss)can you give me an example, pleace?
that is how i tried it -> did not worked ^^<rich:modalPanel id="mp"> <f:facet name="controls"> <h:panelGroup> <h:graphicImage value="close.png" id="hl"> <a4j:support event="onclick" oncomplete="javascript:Richfaces.hideModalPanel('mp')" actionListener="#{C.action}"/> </h:graphicImage> </h:panelGroup> </f:facet> </rich:modalPanel>
-
3. Re: rich:modalPanel closecontrol action
ilya_shaikovsky Feb 5, 2009 7:08 AM (in response to gegoss)sure because there is no form around the control.
remove support from your image. then add onclick="callSave()" to the image itself.
And define a4j:jsFunction name="callSave" oncomplete="javascript:Richfaces.hideModalPanel('mp')" inside the panel body form. -
4. Re: rich:modalPanel closecontrol action
gegoss Feb 5, 2009 7:42 AM (in response to gegoss)thanks a lot. it works fine.