Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

JSF data driven select boxes

Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing my first JSF application. I found "JavaServer Faces in Action," by Kito Mann, to be a great help in getting started.

The application includes a directory listing for families and individuals, and supports multiple organizations. One feature is attribute tables by organization, so that a person can indicate their attributes chosen from a list supplied by the organization. Standard JSF seems to only support fixed contents of list boxes, but I need to be able to include the drop-down content driven by the organization that a person is part of. Can AJAX help me with this? Are there other approaches that would also work, or would be preferred?
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bill,

Take a look at the <f:selectItems> tag in the standard JSF core tag library. This will allow you to specify a data-driven list of select items for any of the <h:selectOne*> or <h:selectMany*> component tags.

Using Ajax to further enhance this type of select-one or select-many component would allow you to update the displayed options at the browser without requiring a traditional full-page submit.

Kind Regards.
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
Garden Master Course kickstarter
    Bookmark Topic Watch Topic
  • New Topic