users@javaserverfaces.java.net

Re: UIComponent and its associated bean

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 27 Sep 2007 09:35:26 -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...
>

For an action, look at the javadocs for
javax.faces.component.ActionSource2 that the command? button component
would implement (specifically, getActionExpression()).

http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/index.html


>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net
>
>