wood burning stoves 2.0*
The moose likes JSF and the fly likes UISelectMany and EvaluationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "UISelectMany and EvaluationException" Watch "UISelectMany and EvaluationException" New topic
Author

UISelectMany and EvaluationException

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
I found that if I use UISelectMany, users' multiple selections from a list box will be in an Object[].

But, I got a runtime error: "EvaluationException: Error getting property 'dataFile' from bean of type actions.FileManagementBean: java.lang.NullPointerException'

I have the getter and setter for the property 'dataFile' in my backing bean. In my JSP, I create a list box:

And this is my backing bean:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: UISelectMany and EvaluationException
 
Similar Threads
jsf:datatable with selectManyCheckbox problem
selectManyListbox - IllegalArgumentException
Using dropDown in jsf
EvaluationException: Cannot get value for expression
selectManyListBox to add/remove user Roles