jQuery in Action, 3rd edition
The moose likes JSF and the fly likes jsf Datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf Datatable" Watch "jsf Datatable" New topic
Author

jsf Datatable

Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39

Datatable


HomeBean.java



HomeDataListData.java




i am getting this error

Error Rendering View[/WebPagesAdmin/Home.xhtml]: javax.el.ELException: /WebPagesAdmin/Home.xhtml @36,59 value="#{HomeBean.list}": java.lang.NullPointerException

Please help..!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17168
    
  27

You cannot cache the FacesContext. The FacesContext is created and destroyed for each HTTP request. For non-JSF requests, such as requests to Servlets, the FacesContext does not exist at all.

Also, HomeBean is the name of the class The proper capitalization of the instance of that bean is "homeBean".


An IDE is no substitute for an Intelligent Developer.
Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39

I resolved my problem. I carelessly forgot to initialize the arraylist.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsf Datatable
 
It's not a secret anymore!