This content has been marked as final.
Show 3 replies
-
1. Re: hi, unexpected updates in ModalPanel
tyshan.tyshanchn.gmail.com Mar 25, 2010 12:30 PM (in response to tyshan.tyshanchn.gmail.com)Hi,
some changes for the ModalPanel
<h:form> <h:inputText value="#{_model.name}" id="name" required="true"> <s:support event="onblur" ajaxQueue='true' byPassUpdate="true" reRender="name"/> </h:inputText> <a:commandLink oncomplete="Richfaces.hideModalPanel('editModalPanel')" value="cancel"/> </h:form>
Sincerely
Tyshan
-
2. Re: hi, unexpected updates in ModalPanel
kragoth Mar 26, 2010 12:42 AM (in response to tyshan.tyshanchn.gmail.com)Have you tried using byPassUpdate=
true
in your a:commandLink?<a:commandLink oncomplete="Richfaces.hideModalPanel('editModalPanel')" byPassUpdate="true" value="cancel"/>
-
3. Re: hi, unexpected updates in ModalPanel
tyshan.tyshanchn.gmail.com Mar 27, 2010 1:41 PM (in response to tyshan.tyshanchn.gmail.com)Hi,Tim
Thanks for your response.
I use a:outputPanel ajaxRender
true
, so every ajax action will update the panel, and also update some datas, not unexpected.I get a idea from my friend. in a:commandLink, in its action, envoke one method in the action, getEntityManger().refresh(the MODEL);
Then the changed datas will be recovered.
Thanks.
Tyshan