• Post Reply Bookmark Topic Watch Topic
  • New Topic

Add Rows Functionality in JSF

 
Syed Jaffar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I want to add the rows one by one using datatable on click of the button in jsf.
As i am a newbie to this, i dunno this functionality.

Please help me and give me the proper way to fix this.

I need it very urgent.

Thanks in advance,
~ Jaffar.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a h:commandButton to the page and let it add new empty row to the list of rows.
If your bean is request scoped, you need to make sure that it pre-adds as many empty rows to the list.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!