• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HtmlDatatable object being nulled out!

 
Subash Karuppiah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, JSF beginner here. I had been trying to add checkbox to a column in datatable and allow users to select rows and do operations based on those selected values, say edit or delete. Am done with code, but the HTMLdatatable object in the backing bean is always null. Can someone help me with this, if you do have code for the same scenario please share!! Thanks!!
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using any framework like primefaces or richfaces? They can do you work very easy.

http://www.primefaces.org/showcase/ui/datatableEditing.jsf

Is your session bean, that holds de datatable information, as session bean?
 
Subash Karuppiah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya, am using icefaces Hebert and its a session bean too. Thanks for the link, it got some nice ideas. I like having checkbox allowing users to select multiple rows and should be able to delete or so on. Please let me know how this can be done. Thanks!!
 
Subash Karuppiah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Hebert!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic