2 Replies Latest reply on Nov 10, 2010 3:33 PM by Ilya Shaikovsky

    how to rerender with ONE javascript call?

    null null Novice

      unfortunately, adding a4j:jsFunction broke stuff and removing it fixes it so I can't use that though I would like to be able to just

      call A4J.reRender("componentid") if I could to rerender some stuff.  Is there a way to do that?  I can't find the

      javascript api docs and the stuff I do find is all for specific components.

       

      thanks,

      Dean

        • 1. Re: how to rerender with ONE javascript call?
          Akaine Harga Novice

          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 Master

            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.