Using EL 2.2 with Tomcat 6.0.24

前端 未结 4 2012
慢半拍i
慢半拍i 2020-12-05 03:13

With JSF 2 you should be able to do this:


which would then call the act

4条回答
  •  不思量自难忘°
    2020-12-05 03:46

    You can use JBoss EL.

    It's an implementation of Expression Language 2.1. But it has extensions to allow method parameters as in your example:

    
    

    The advantage is that you only have to change your webapp and not Tomcat's lib directory.

    Instructions

    1. Download the latest version of Seam 2
    2. Extract lib/jboss-el.jar
    3. Copy it to WEB-INF/lib/jboss-el.jar
    4. In your web.xml set:

      
          com.sun.faces.expressionFactory
          org.jboss.el.ExpressionFactoryImpl
      
      

    See also Invoke direct methods or methods with parameters in EL.

提交回复
热议问题