• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Richfaces TabPanel on tabchange

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic