On 11/13/06, Rene Guenther <[EMAIL PROTECTED]> wrote:
Over the longer term, keep an eye also on the Unified EL that is used by JSF 1.2 and JSP 2.1. There's a maintenance JSR in progress as we speak to separate this API out into its own specification document, at which point it will be able to be released separately. This API is specifically designed to be useful across all sorts of use cases, so it does not contain any direct references to web APIs (servlet, JSP, or JSF).
JSP 2.1 and JSF 1.2 implementations will be able to use this API to provide _expression_ evaluation services, by implementing resolvers (for example, the managed bean facility that is currently implemented as a JSF 1.1 VariableResolver will become an ELResolver in the new API). But, you will also be able to use this API across any sort of application environment, without dragging along all the web APIs with you (as commons-el will do, because it was based on the _expression_ language in JSP 2.0).
Craig
Thanks. I am going to examine commons-el package then!
The other hint might be helpful too.
Over the longer term, keep an eye also on the Unified EL that is used by JSF 1.2 and JSP 2.1. There's a maintenance JSR in progress as we speak to separate this API out into its own specification document, at which point it will be able to be released separately. This API is specifically designed to be useful across all sorts of use cases, so it does not contain any direct references to web APIs (servlet, JSP, or JSF).
JSP 2.1 and JSF 1.2 implementations will be able to use this API to provide _expression_ evaluation services, by implementing resolvers (for example, the managed bean facility that is currently implemented as a JSF 1.1 VariableResolver will become an ELResolver in the new API). But, you will also be able to use this API across any sort of application environment, without dragging along all the web APIs with you (as commons-el will do, because it was based on the _expression_ language in JSP 2.0).
Regards
René
Craig
On Mon, 13 Nov 2006 17:58:00 +0100
"Martin Marinschek" <[EMAIL PROTECTED]> wrote:
> Hi Rene,
>
> what do you mean by "in a non JSF context"? If you mean
>in your
> managed beans, you can do:
>
>FacesContext.getCurrentInstance().getApplication().getVariableResolver().resolveVariable(FacesContext.getCurrentInstance(),"exprString");
>
> If you mean general _expression_ resolving, you might want
>to use the
> commons-el package directly.
>
> regards,
>
> Martin
>
> On 11/13/06, Rene Guenther
>< [EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I would like to make use of JSF EL in a non JSF context.
>>I
>> d like to do something like:
>>
>> String name = (String) EVALUATE(child,
>> "child.parent.name") instead of
>> String name = child.getParent().getName();
>>
>> Probably there is somewhere the EVALUATE method I am
>> looking for. Anyone knows where?
>>
>> Thanks
>> René
>>
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces

