3 Replies Latest reply on Sep 18, 2007 8:58 PM by sergeysmirnov

    jsFunction data problem in 3.1.0

      I receive a JavaScript error: "'data' is undefined" when executing a jsFunction with oncomplete attribute that passes data to a different JavaScript function.
      This happens only in IE. I use IE7. In Firefox, everything seems to be working fine. The same code worked without problems with RichFaces 3.0.1.

        • 1. Re: jsFunction data problem in 3.1.0

          could you post a code snippet, please.

          • 2. Re: jsFunction data problem in 3.1.0

            Here is my jsFunction code:

             <a4j:jsFunction name="loadMapSituations"
             action="#{MainPage.retrieveVisibleMapComponents}"
             data="#{MainPage.visibleMapComponents}"
             oncomplete="processVisibleMapComponents( data )">
             <a4j:actionparam name="viewMode" assignTo="#{MainPage.viewMode}"/>
             <a4j:actionparam name="minLat" assignTo="#{MainPage.viewRectangle.minLat}"/>
             <a4j:actionparam name="minLon" assignTo="#{MainPage.viewRectangle.minLon}"/>
             <a4j:actionparam name="maxLat" assignTo="#{MainPage.viewRectangle.maxLat}"/>
             <a4j:actionparam name="maxLon" assignTo="#{MainPage.viewRectangle.maxLon}"/>
             <a4j:actionparam name="zoomLevel" assignTo="#{MainPage.zoomLevel}"/>
             <a4j:actionparam name="mpp" assignTo="#{MainPage.milesPerPixel}"/>
             </a4j:jsFunction>
            


            Thanks for your help!

            • 3. Re: jsFunction data problem in 3.1.0

              It was a bug:-( . Thank you for your report. The bug has been already fixed in SVN (both 3.1.1 and trunk )

              http://jira.jboss.com/jira/browse/RF-963