2 Replies Latest reply on May 27, 2011 7:22 AM by quajo

    Problem with data parameter in js:Function

    quajo

      Hi, I am migrating to richfaces 4 and I have a problem which i hadn´t with richfaces 3.3.X. The problem is when I use "data" parameter in js:Function and is passed to a function in the "oncomplete" tag, this function is not called. When I remove the data parameter, the function is called.

       

      My code is the following:

       

      <h:body>

          <h:form>

              <a4j:jsFunction name="getAllBack"

                  action="#{viewer.findContainer}"

                  oncomplete="showG(data);"

                  data="#{viewer.vCont}">                                               

              </a4j:jsFunction>

              </h:form>   

              <div id="mappanel" onclick="getAllBack();">                       

              </div>

      </h:body>

       

      In the code above "showG" is never called when data is present as parameter in "showG". In my previous version with richfaces 3.3.X this never happened to me.


      Any idea?

       

      Thanks for your help.