This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "UISelectMany and EvaluationException" Watch "UISelectMany and EvaluationException" New topic

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:
subject: UISelectMany and EvaluationException
It's not a secret anymore!