I’m using JSF 2.0. I have a managed bean which I can access through my xhtml page. Inside the bean I declared an inner class. I can access ArrayList<String> of managed bean but not ArrayList<InnerClass> and I get the error that the InnerClass does not have a readable property. Anyone know what’s wrong?
I’m using JSF 2.0. I have a managed bean which I can access through
Share
That can happen if the inner class is not
public. It will then be invisible to other classes outside the package (like as JSF/EL itself!). Make sure that the inner class ispublicwhenever you need to access it by JSF/EL.Otherwise it will be interpreted as
Stringand you’ll get confusing exceptions likewhen you want to access
#{innerClass.someProperty}.