Java Jester

Saturday, October 18, 2008

Allow parameters on jsf expression

The expression factory from sun and apache doesn't allow parameters to be passed on jsf expression. For example:


#{bean.delete(id)}

Being able to do this allows more flexibility because you won't need to pass your id params as hidden input field.

This expression can only be enabled with the use of jboss el expression factory. To enable it, add the following to your web.xml:


<context-param>
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
</context-param>

 


recommended books
Jester Cap Logo by Vonn reyjexter.com | Valid XHTML & CSS | 2008 | Design & Devt. by: vonnhugo

powered by:

django framework python google app engine