This content has been marked as final.
Show 2 replies
-
1. Re: Looking up a component based on its id in the backing be
nbelaevski May 15, 2009 6:33 AM (in response to lrp)Hi Lars-Remi,
Yes, it's possible: http://www.ermalaev.spb.ru/javaee/5/docs/api/javax/faces/component/UIComponent.html. There are methods findComponent(java.lang.String) and invokeOnComponent(javax.faces.context.FacesContext, java.lang.String, javax.faces.component.ContextCallback). As starting point you can use FacesContext.getViewRoot(), model bound component; or obtain component instance from some sort of FacesEvent, e.g. ActionEvent. -
2. Re: Looking up a component based on its id in the backing be
lrp May 15, 2009 6:34 AM (in response to lrp)Excellent, thank you very much!