This content has been marked as final.
Show 4 replies
-
1. Re: closing rich:modalPanel views site at the top
ilya_shaikovsky Jan 23, 2010 4:42 AM (in response to nimo22)show your panel closure element code. -
2. Re: closing rich:modalPanel views site at the top
nbelaevski Jan 23, 2010 6:09 AM (in response to nimo22)You should prevent default action by returning "false" from onclick handler. -
3. Re: closing rich:modalPanel views site at the top
nimo22 Jan 23, 2010 10:58 AM (in response to nbelaevski)This is my code:
<rich:modalPanel domElementAttachment="parent" id="myModPanel" width="200" height="120" resizeable="false" autosized="true"> .... <h:form> <s:div> <a4j:commandLink id="closeModPanel" value="close" action="#{myBean.doAction}" oncomplete="Richfaces.hideModalPanel('myModPanel');"/> </s:div> </h:form> </rich:modalPanel>
You should prevent default action by returning "false" from onclick handler.
So should I do this?
<a4j:commandLink id="closeModPanel" value="close" action="#{myBean.doAction}" onclick="false;"oncomplete="Richfaces.hideModalPanel('myModPanel');false;"/>
-
4. Re: closing rich:modalPanel views site at the top
nimo22 Jan 24, 2010 8:37 AM (in response to nimo22)okay thanks! this works:
<a4j:commandLink id="closeModPanel" value="close" action="#{myBean.doAction}" oncomplete="Richfaces.hideModalPanel('myModPanel'); return false;"/>