-
1. Re: how to rerender with ONE javascript call?
akaine Nov 9, 2010 11:22 AM (in response to deanhiller)I am not sure what exactly you want to do. Normally when I need to rerender something using javascript I use:
<a4j:form>
<a4j:jsFunction action="#{backingBean.someMethod}" name="myJsMethod" ajaxSingle="true" reRender="form1,form2,element3"/>
</a4j:form>
and then call the myJsMethod() via JS.
This way we control if the form is getting submited completely or only partially, and what exactly should be rerendered.
If I understood you wrong please let me know.
-
2. Re: how to rerender with ONE javascript call?
ilya_shaikovsky Nov 10, 2010 3:33 PM (in response to deanhiller)I prefer to look into original problem with JSFunction and solve it. We do not allow to decide on client side what to submit and what to process and update because of security reasons(anybody could call that JS from any console but in RF case - options evaluated by component at server side so not affected by client). So JSFunction is the official way.. and should works completelly as you need.