0 Replies Latest reply on Jul 26, 2008 12:43 AM by Steven Headley

    Seam Remoting problems in IE

    Steven Headley Newbie
      I am having problems with seam remoting only in Internet Explorer.

      I have defined the following in my facelet file:



      <script type="text/javascript" src="/jmat/seam/resource/remoting/resource/remote.js"></script>
                      <script type="text/javascript" src="/jmat/seam/resource/remoting/interface.js?chartDojo"></script>
                      <script type="text/javascript" src="/jmat/static/scripts/charts.js"></script>




      and the following in my EJB:


      @Stateful
      @Name("chartDojo")
      @Scope(ScopeType.SESSION)
      public class ChartProcessorDOJO implements ChartProcessorDOJOLocal, Serializable {...
      }


      @WebRemote
              public ArrayList<ArrayList<Long>> drawReason(int index) {...
      }


      then in my web.xml I have the following:
      <!-- Seam Remoting Servlet -->
             
      <servlet>
                      <servlet-name>Seam Resource Servlet</servlet-name>
                      <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
              </servlet>
              <servlet-mapping>
                      <servlet-name>Seam Resource Servlet</servlet-name>
                      <url-pattern>/seam/resource/*</url-pattern>
              </servlet-mapping>


      in my javascript code I have the following:

      Seam.Component.getInstance("chartDojo").drawReason(endDays, displayReason);


      in IE with visual studio installed I get the following error in interface.js:

      Microsoft JScript runtime error: 'Seam' is undefined

      the debugger stops here:


      Seam.Remoting.type.chartDojo = function() {
        this.__callback = new Object();
        Seam.Remoting.type.chartDojo.prototype.drawReason = function(p0, callback) {
          return Seam.Remoting.execute(this, "drawReason", [p0], callback);
        }
      }

      Any help would be apprciated.


      Regards,


      Steven Headley