This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes Richfaces TabPanel on tabchange Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "Richfaces TabPanel on tabchange" Watch "Richfaces TabPanel on tabchange" New topic
Author

Richfaces TabPanel on tabchange

Terry Bailey
Greenhorn

Joined: Nov 17, 2010
Posts: 14
Hi everyone,

Another newbie question.

I have a richfaces 4 tabpanel. When I change tab panels I want to call my backing bean to load data for the tabpanel. For some reason the bean is not firing any ideas how to achieve this goal would be very welcome



The bean method to call, for example, should just read from a data base and populate lists. I could eaily create a new list for each tab page, but if I can parameterize the bean method then the code would be a lot neater...



Thanks in advance,
Terry

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16101
    
  21

Terry Bailey wrote: if I can parameterize the bean method then the code would be a lot neater...


Actually, I'd argue the opposite.

First, because there would be a 1-to-1 correspondence between the tabs and methods, which would make more sense to maintenance personnel.

Second, because although there would be more methods, each method would be simpler.

Third, because the more conditional statements you code, the more potentials for wrong turns, missed code (or the opposite - code that shouldn't be executed).


Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: Richfaces TabPanel on tabchange