• 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

Adding JSF components and binding them at Runtime

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a requirement of creating a JSF page which should have components dynamically created on satisfying some pre-conditions.

ALso after creating the components I need to bind them for further processing.

Any pointers to the above would be very helpful.

Thanks in advance.

regards,
Lakshmi
 
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you can create a jsf form that has all the components and then use the "rendered" property to determine whether to display a particular component or not.

Ex:



In my User Backing Bean, I have declared a boolean called receivedVisible and have added getters and setters to it.

I initialize this boolean in the constructor of my backing bean,

ie.,



Hope this helps.
 
reply
    Bookmark Topic Watch Topic
  • New Topic