1 Reply Latest reply on Feb 21, 2011 4:44 AM by ilya_shaikovsky

    problematic a4j:jsFunction

    orkun

      hello

       

      when I did:

       

                          <a4j:jsFunction name="fjslat_long" reRender="latid,longid"  action="#{userBean.actionlat_long}" >

                          <a4j:actionparam name="param1" assignTo="#{userBean.jslat}" />

                          <a4j:actionparam name="param2" assignTo="#{userBean.jslong}" />     

                          </a4j:jsFunction>

       

       

      it did twice same action in userBean.actionlat_long.

      that is to say:

       

        public void actionlat_long() { 

       

                    System.out.print("actionlat_long  jslat2 ----- "+getJslat());

                    System.out.println("actionlat_long  jslong2 "+ getJslong());

           ...

       

      it makes double print.

       

      in order to overcome this

      I added and omitted "action="#{userBean.actionlat_long}" in a4j:jsFunction

      <a4j:support event="oncomplete" action="#{userBean.actionlat_long}" />      

       

      but it was problematic

       

      what can I do

       

      regards