Meaningless Drivel is fun!*
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: 15956
    
  19

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Richfaces TabPanel on tabchange
 
Similar Threads
Tab Panel not rendering properly in a template
RichFaces TabPanle problem
richfaces tab and jsp:include problem
richfaces tabPanel problem
Rich Faces Tab