aspose file tools*
The moose likes JSF and the fly likes HtmlDatatable object being nulled out! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "HtmlDatatable object being nulled out!" Watch "HtmlDatatable object being nulled out!" New topic
Author

HtmlDatatable object being nulled out!

Subash Karuppiah
Greenhorn

Joined: Oct 21, 2011
Posts: 7
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

Joined: Jul 14, 2010
Posts: 754

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?


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Subash Karuppiah
Greenhorn

Joined: Oct 21, 2011
Posts: 7
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!!
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this can help you: http://www.icefaces.org/JForum/posts/list/5400.page
Subash Karuppiah
Greenhorn

Joined: Oct 21, 2011
Posts: 7
Thanks Hebert!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HtmlDatatable object being nulled out!