This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 200
    
    1

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