3 Replies Latest reply on Oct 3, 2007 8:56 AM by Pete Muir

    Migrating seam 1.0.1 to 1.2.1 GA

    Jayaranga Subasinghe Newbie

      Hi all,
      we were using seam 1.0.1. now we decided to upgrade seam to its newer GA version 1.2.1.
      we used seam-remoting for ajax functionalities.
      i have following issues when migrate to 1.2.1GA

      1. seam 1.0.1 remoting configuration is different with respect to 1.2.1
      eg.


      <servlet>
       <servlet-name>Seam Remoting</servlet-name>
       <servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class>
      </servlet>
      
      <servlet-mapping>
       <servlet-name>Seam Remoting</servlet-name>
       <url-pattern>/seam/remoting/*</url-pattern>
      </servlet-mapping>
      

      <script type="text/javascript" src="seam/remoting/interface.js?customerAction">
      <!--
      // This space intentionally left blank
      //-->
      </script>
      

      <script type="text/javascript" src="seam/remoting/interface.js?customerAction&accountAction">
      <!--
      // This space intentionally left blank
      //-->
      </script>


      VS
      <servlet>
      <servlet>
      <servlet-name>Seam Resource Servlet</servlet-name>
      <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
      </servlet>
      <servlet-mapping>
      <servlet-name>Seam Resource Servlet</servlet-name>
      <url-pattern>/seam/resource/*</url-pattern>
      </servlet-mapping>
      


      
      <script type="text/javascript" src="seam/resource/remoting/resource/remote.js"></script>
      
      <script type="text/javascript" src="seam/resource/remoting/interface.js?customerAction"></script>
      
      


      Here, the 2 script calls are different. how can i manage backward compatibility with seam 1.0.1 ??

      2. in 1.0.1 raiseEvent signature was
       public void raiseEvent(String type)
      


      but in 1.2.1 this is no longer there in seam. raise event has the signature
       public void raiseEvent(String type, Object... parameters)
      


      Can somebody explain me what are the drawbacks of the first method and why that method removed completely from 1.2.1??