7 Replies Latest reply on Oct 4, 2007 11:43 AM by Florian Duehring

    Problem with jsFunction & IE 6

    Florian Duehring Newbie

      Hi,
      I have a problem with the jsFunction-Tag and IE 6 since I updated to Richrfaces 3.0.1.
      Here is my xhtml-Page(I use Facelets):

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html
       xmlns="http://www.w3.org/1999/xhtml"
       xmlns:jsp="http://java.sun.com/JSP/Page"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
       xmlns:c="http://java.sun.com/jsp/jstl/core"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich"
      >
       <f:view>
       <a4j:form>
       <f:loadBundle basename="resources.application" var="msg" />
       <a4j:jsFunction
       name="mse_checkSavedData"
       data="#{mse.hasMseItemsChanged}"
       oncomplete="alert(data);"
       reRender="mse_mseItems"
       />
       <a4j:region id="mse_all">
       <a4j:commandButton
       oncomplete="javascript:mse_checkSavedData();"
       />
       </a4j:region>
       </a4j:form>
       </f:view>
      </html>

      With Firefox everything works as expected, but when I try it with IE6 i get the following message:
      'data' is undefined

      This is the generated Javascript-Code:
      function mse_checkSavedData(){
       A4J.AJAX.Submit(
       '_id4',
       '_id5',
       null,
       {
       'parameters':{'_id5:_id6':'_id5:_id6'},
       'actionUrl':'/Iza/pages/mse.faces',
       'oncomplete':function(request,event,data){
       alert(data);
       }
       }
       )
      };


      I use the following libs:
      MyFaces 1.1.5
      Tomcat 5.5
      Richfaces 3.1.0
      Facelets 1.0.14
      Does anybody has an idea why this doesn't work???

      Thanks in advance