• 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

Create dynamic composite component using custom tag

 
Greenhorn
Posts: 8
Hibernate MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i'm new in JSF. My need is to render dynamic component (that i don't know how many they are at first). I want to do this through a custom component wich will create and render them according to some parameters.

so in my page entry i will have :

and the result would be for instance, multiple inputTexts (mapped to a hashMap of properties) and outputlabels as if i do it through jsf standard components :


is there any good idea to make my custom component ?

Thank you for help or..intention to help

 
Greenhorn
Posts: 13
Oracle Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try to use <ui:repeat> tag in your component and create additional attribute for it that will hold the count.
 
Ghazi Jamal
Greenhorn
Posts: 8
Hibernate MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maks Besida wrote:try to use <ui:repeat> tag in your component and create additional attribute for it that will hold the count.


Thank you, yes that is what i have done (using facelts tag lib with a c:foreach iterator)
i can say that's resolved now.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic