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)); }
Try
Expressions.instance().createActionExpression("#{foo.bar}");