aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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();
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to find component via code?
 
Similar Threads
How to find componet in jsf table?
Problem with f:validator & f:attribute - EL does not evalute in f:attribute
How to handle checkbox in jsf
java. lang. NoClassDefFoundError: org/richfaces/
setting initial values for SelectOneMenus inside of an HtmlDataTable