myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek" <martin.marinsc...@gmail.com>
Subject Re: JSF EL
Date Mon, 13 Nov 2006 16:58:00 GMT
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 <innflow-guenther@innflow.com> 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

Mime
View raw message