my dog learned polymorphism
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

Richfaces TabPanel on tabchange

Terry Bailey

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,

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

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).

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Richfaces TabPanel on tabchange
It's not a secret anymore!