learn java
The moose likes JSF and the fly likes Accessing backing beans from the controller class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Accessing backing beans from the controller class" Watch "Accessing backing beans from the controller class" New topic
Author

Accessing backing beans from the controller class

Brian Nice
Ranch Hand

Joined: Nov 02, 2000
Posts: 195
Sorry, this is probably really basic, but I'm just starting out. As a simple example, if i have a page that has a name input field, along with a button that is for a different bean:



In the controller:



I forsee us having multiple beans that back one page, and then a controller class that needs access to all those beans. Thanks for the help
Brian
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
This will help you: http://wiki.apache.org/myfaces/AccessingOneManagedBeanFromAnother
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Accessing backing beans from the controller class