File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes My binding with datatable give me null ate the backing bean, do i miss some thing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "My binding with datatable give me null ate the backing bean, do i miss some thing" Watch "My binding with datatable give me null ate the backing bean, do i miss some thing" New topic
Author

My binding with datatable give me null ate the backing bean, do i miss some thing

Rahul Shivsharan
Ranch Hand

Joined: Jun 17, 2009
Posts: 83
Hi , what i'm trying to do is first to load arraylist of student objects in h:datatable in the jsp, than on submit i want to get those student collection back in backing bean.
The datatable will have student information in columns containing h:inputtext. So user can edit the collection of student .

For this i did binding with HTMLDatatable in backing bean. but this gives me null pointer exception. why?

This is as follows

my backing bean



this is my jsp




i get null pointer exception in method doItRe() of backing bean why ?, did i missed out something
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 198

There are pointers here that could solve your problem --

http://balusc.blogspot.com/2006/06/using-datatables.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My binding with datatable give me null ate the backing bean, do i miss some thing
 
Similar Threads
Not able to submit datatable
h:dataTable binding => duplicate ID
Show HashMap in Datatable. UIColumn with embedded Datatable. Help Needed
Array of Object in DataTable
commandLink not working in datatable+jsf2.0