users@javaserverfaces.java.net

Re: Obtaining Method name of the backing name in a component

From: Jacob Hookom <jacob_at_hookom.net>
Date: Fri, 01 Feb 2008 12:24:10 -0600

If you are using JSF 1.2 and the new EL, then you can pass your own
ELContext and ELResolver into the expression to mine out what's actually
being pointed to via the Visitor pattern. This methodology has been
implemented in the Seam code base for determining what validations need
to be invoked on backing bean properties. As of today, there's no hook
for resolving methods (which sucks), so you may be stuck with just being
able to resolve ValueExpressions instead of MethodExpressions

Harihara Vinayakaram wrote:
> Hi
> I am trying to put up some test cases . I have an encodeEnd for all
> my components and I am printing the name of the id etc. I would like
> to obtain the method name of the backing bean associated with this
> component in the encodeEnd so that I can print the name of the
> annotations associated with this method .
>
> I am not able to figure out how to obtain the name of the Method
> using the ValueExpression .
>
> All help will be appreciated
>
> TIA
>
> Regards
> Hari
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.17/1253 - Release Date: 1/31/2008 9:09 AM
>