users@javaserverfaces.java.net

Re: UIComponent and its associated bean

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 27 Sep 2007 09:42:00 -0700

� wrote:
> Given a UIComponent how can you get the bean that it is associated with?
>
> <h:button ... action="#{sb.action}">...
>
> How can I get the sb instance that is being used? This is during
> Validation...
>
Actually the easiest way to do this is have a binding between the
component and the bean.
Look at the TLD docs for the binding attribute. This will set a
component instance into the
bean that the bean can manipulate.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>
>