#{m...">

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() ?

+6
source share
1 answer

The is prefix only works for boolean , not boolean .

You have apparently the boolean property.

You have 2 options:

  • Rename the recipient with the get prefix.
  • Replace boolean with boolean . Note that by default it will be false instead of null .

See also:


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.

+19
source

All Articles