This content has been marked as final.
Show 2 replies
-
1. Re: ShortCut for findComponent
dan.j.allen Jul 8, 2008 9:50 PM (in response to accless)The built-in component named uiComponent provides a magic map of UI components. If you were looking for the component id register:nameField:name, you would use the following EL expression:
#{uiComponent['register:nameField:name']}
You could also inject this component as a Map
@In Map<String, UIComponent> uiComponent; UIComponent c = uiComponent.get("register:nameField:name");
As for a convenience method in Seam, yes, it would be helpful if there were a couple of more utility methods for more sophisticated lookup. Check the RichFaces API for such a helper class.
-
2. Re: ShortCut for findComponent
accless Jul 9, 2008 1:03 PM (in response to accless)Thx for your help Dan!
Greetings