1 Reply Latest reply on Dec 20, 2007 9:01 AM by pmuir

    EL changes according to JSF 1.2

      Hi,

      since the JBoss Tools 2 are available we decided to upgrade our Seam 1.2.1 based application to Seam 2.0.

      I had and still have to fiddle with JBossTools to deploy my app, but this is another problem.

      I made all the changes described in seam2migration.txt regarding the configuration files. Now I'm stuck on the coding part. With JSF 1.2 the EL is changed and the class MethodBinding was replaced by MethodExpression. I use a menu provided by ICEfaces for the navigation in my app. Since I have normal links that return navigation strings AND menu items that should invoke a method I wrote sth like this:

      if(link.charAt(0) == '#' && facesContext != null) {
       menuItem.setAction(new ActionParamMethodBinding(facesContext.getApplication(), link));
      } else {
       menuItem.setAction(new ActionMethodBinding(link));
      }

      All links that had to invoke a method have a preceding '#'. if this is the case the action of this link is an object of the Seam class ActionParamMethodBinding.

      But as you can guess this class is gone. How can I implement the behaviour I had with the new versions of Seam and JSF?

      BTW: Is there any document where one can see how to create a Seam Dynamic Web Project with Eclipse, which jars have to be included and how to deploy and test it? And how to configure Seam 2.0 with ICEfaces 1.6.2?