wood burning stoves 2.0*
The moose likes JSF and the fly likes how to find component via code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to find component via code?" Watch "how to find component via code?" New topic
Author

how to find component via code?

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I have something like this and want to find a component via code;



You see, it does not work. What is missing?

(I do not want to use binding-property)
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
findComponent() is a method of UIViewRoot.
nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
oh okay, now it works, thanks!

UIViewRoot view = context.getViewRoot();
 
 
subject: how to find component via code?