Boolean properties starting with "is" not working
I have a project that uses JSF 2.1 and PrimeFaces. I tried using a simple link <h:outputText> #{myBean.matriz} , and I got this error:
SEVERE: javax.el.PropertyNotFoundException: ... value="#{myBean.matriz}": Missing Resource in EL implementation: ???propertyNotReadable??? Getter: isMatriz() . Should it be getMatriz() ?
The is prefix only works for boolean , not boolean .
You have apparently the boolean property.
You have 2 options:
- Rename the recipient with the
getprefix. - Replace
booleanwithboolean. Note that by default it will befalseinstead ofnull.
See also:
- JavaBeans Specification - Chapter 8.3.2
- How does the Java expression language solve logical attributes? (in JSF 1.2)
Unconnected to a specific problem, the class path seems useless for the implementation of EL. Message Missing Resource in EL implementation: ???propertyNotReadable??? indicates that EL impl could not find a related error message in its own JAR, which should look like this
Property 'matriz' not found on type com.example.MyBean Make sure you do not arbitrarily download EL JAR files in /WEB-INF/lib . Get rid of them. Servletcontainer already provides its own.