• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Richfaces TabPanel on tabchange

 
Terry Bailey
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic