This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf Datatable" Watch "jsf Datatable" New topic

jsf Datatable

Avik Mazunder
Ranch Hand

Joined: Jun 27, 2012
Posts: 39


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: 15961

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".

Customer surveys are for companies who didn't pay proper attention to begin with.
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:
subject: jsf Datatable
Similar Threads
Why not refresh jsf page
A Very little problem in h:dataTable implementation
Passing parameters with h: link
Problem in stateless session bean with JSF
MyFaces Data Table didn't work