? 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
>
>