This content has been marked as final.
Show 4 replies
-
1. Re: close modal panel without refreshing
sergeysmirnov Nov 9, 2007 10:53 AM (in response to lmk)It s a question to your application - why it refreshes only there.
Post the code snippet. -
2. Re: close modal panel without refreshing
lmk Nov 9, 2007 12:03 PM (in response to lmk)close button:
<h:commandButton action="close" value="Close" onclick="javascript:Richfaces.hideModalPanel('_panel_update');" style="margin-left:300px;" />
the modal panel:<rich:modalPanel id="_panel_update" height="600" width="700" resizeable="true"> <h:form> <rich:panel id="update"> <rich:dataTable ... ... ...
-
3. Re: close modal panel without refreshing
sergeysmirnov Nov 9, 2007 12:28 PM (in response to lmk)Because you use h:commandButton that perform the regular JSF form submit just after onclick is invoked.
add "return false;" at the end of the onclick to stop it. -
4. Re: close modal panel without refreshing
lmk Nov 9, 2007 12:48 PM (in response to lmk)"SergeySmirnov" wrote:
Because you use h:commandButton that perform the regular JSF form submit just after onclick is invoked.
add "return false;" at the end of the onclick to stop it.
thanks a lot Sergey..
bye