This content has been marked as final.
Show 2 replies
-
1. Re: modalPanel + hideModalPanel
ilya_shaikovsky Apr 7, 2010 4:21 AM (in response to svkap)if you really using only
oncomplete="javascript:Richfaces.hideModalPanel('pnlPop');"
it should be cosed even if there were errors.
If you want to prevent closure you should use something like used at rf-demo:
<a4j:commandButton value="Store" action="#{dataTableScrollerBean.store}" reRender="make, model, price" oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editPanel')}.hide();" />
-
2. Re: modalPanel + hideModalPanel
pchavan Jun 16, 2011 1:37 PM (in response to ilya_shaikovsky)Hi IIya,
I tried your solution but is still closing the modal dialog.
Let me explain what I have done,
I am using RichFaces 3.3.3 and JSF2 in my app.
In modal dialog I have input field(marked as required), when i click on <a4j:commandButton> submit button, even though I have
empty text fields the modal dialog is getting closed, which should not be the case. The above solution you mentioned is not working.
Please advise me if I am missing something!
--Pramod