Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic inputText  RSS feed

 
Hisouka Devera
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Day,

I will implement a page where I have a List<String> account, then it will populate inputText and its value corresponding of the size of the List.
For example, I have 10 values in List<String> account, it must populate 10 inputText with value on it and an empty inputText beside it (for the user to input some values on it).

Thanks
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried so far? Does the user specify the "size" of the list before the input text boxes show up? How is this value passed from page to page/servlet?

 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can iterate the list using <ui:repeat/> tag to create the dynamic input text in jsf page
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!