You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by XMaNIaC <jo...@gmail.com> on 2008/08/07 12:08:00 UTC
Replacing expression factory
Hi,
In JSF-RI you can:
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
</context-param>
to use JBOSS-EL and have method invocation. Is this possible in MyFaces?
Regards
--
View this message in context: http://www.nabble.com/Replacing-expression-factory-tp18867420p18867420.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Replacing expression factory
Posted by Matthias Wessendorf <ma...@apache.org>.
On Sat, Aug 9, 2008 at 1:53 PM, Christian Kaltepoth <li...@kaltepoth.de> wrote:
> On Saturday 09 August 2008 12:30:22 Matthias Wessendorf wrote:
>> > Very interesting question. I just did some code research to find out if
>> > there is some possibility to define a custom ExpressionFactory
>> > implementation.
>> >
>> > I found the context parameter 'org.apache.myfaces.EXPRESSION_FACTORY'.
>> > But to my surprise this parameter is only evaluated in a JSP 2.0
>> > environment. It was introduced in order to make MyFaces 1.2.x work with
>> > JSP 2.0. See MYFACES-1693 for details.
>> >
>> > I think it would be a great improvement for MyFaces to support this
>> > parameter in a JSP 2.1 environment as well. This feature would allow to
>> > use other EL implementations like JBoss EL.
>>
>> +1
>> Christian, can you create a jira ticket for such an enhancement?
>
> OK, done :-)
>
> https://issues.apache.org/jira/browse/MYFACES-1902
thanks. I assigned it to, but:
http://markmail.org/message/4kh32h6uaxtgu5lv?q=list:org%2Eapache%2Emyfaces%2Edev
this is my "show-stopper" :)
Greetings,
Matthias
>
--
Matthias Wessendorf
Need JSF and Web 2.0?
http://code.google.com/p/facesgoodies
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org
Re: Replacing expression factory
Posted by Christian Kaltepoth <li...@kaltepoth.de>.
On Saturday 09 August 2008 12:30:22 Matthias Wessendorf wrote:
> > Very interesting question. I just did some code research to find out if
> > there is some possibility to define a custom ExpressionFactory
> > implementation.
> >
> > I found the context parameter 'org.apache.myfaces.EXPRESSION_FACTORY'.
> > But to my surprise this parameter is only evaluated in a JSP 2.0
> > environment. It was introduced in order to make MyFaces 1.2.x work with
> > JSP 2.0. See MYFACES-1693 for details.
> >
> > I think it would be a great improvement for MyFaces to support this
> > parameter in a JSP 2.1 environment as well. This feature would allow to
> > use other EL implementations like JBoss EL.
>
> +1
> Christian, can you create a jira ticket for such an enhancement?
OK, done :-)
https://issues.apache.org/jira/browse/MYFACES-1902
Re: Replacing expression factory
Posted by Matthias Wessendorf <ma...@apache.org>.
On Sat, Aug 9, 2008 at 11:28 AM, Christian Kaltepoth <li...@kaltepoth.de> wrote:
> On Thursday 07 August 2008 12:08:00 XMaNIaC wrote:
>> Hi,
>>
>> In JSF-RI you can:
>>
>> <context-param>
>> <param-name>com.sun.faces.expressionFactory</param-name>
>> <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
>> </context-param>
>>
>> to use JBOSS-EL and have method invocation. Is this possible in MyFaces?
>>
>> Regards
>
> Very interesting question. I just did some code research to find out if
> there is some possibility to define a custom ExpressionFactory implementation.
>
> I found the context parameter 'org.apache.myfaces.EXPRESSION_FACTORY'.
> But to my surprise this parameter is only evaluated in a JSP 2.0 environment.
> It was introduced in order to make MyFaces 1.2.x work with JSP 2.0. See
> MYFACES-1693 for details.
>
> I think it would be a great improvement for MyFaces to support this parameter
> in a JSP 2.1 environment as well. This feature would allow to use other EL
> implementations like JBoss EL.
+1
Christian, can you create a jira ticket for such an enhancement?
Greetings,
Matthias
>
> See:
>
> http://www.ilikespam.com/blog/el-function-parameters-with-jboss-el
>
>
--
Matthias Wessendorf
Need JSF and Web 2.0?
http://code.google.com/p/facesgoodies
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org
Re: Replacing expression factory
Posted by Christian Kaltepoth <li...@kaltepoth.de>.
On Thursday 07 August 2008 12:08:00 XMaNIaC wrote:
> Hi,
>
> In JSF-RI you can:
>
> <context-param>
> <param-name>com.sun.faces.expressionFactory</param-name>
> <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
> </context-param>
>
> to use JBOSS-EL and have method invocation. Is this possible in MyFaces?
>
> Regards
Very interesting question. I just did some code research to find out if
there is some possibility to define a custom ExpressionFactory implementation.
I found the context parameter 'org.apache.myfaces.EXPRESSION_FACTORY'.
But to my surprise this parameter is only evaluated in a JSP 2.0 environment.
It was introduced in order to make MyFaces 1.2.x work with JSP 2.0. See
MYFACES-1693 for details.
I think it would be a great improvement for MyFaces to support this parameter
in a JSP 2.1 environment as well. This feature would allow to use other EL
implementations like JBoss EL.
See:
http://www.ilikespam.com/blog/el-function-parameters-with-jboss-el