I am using JSF 2.0 btw
I have an attribute X
type Integer, that has default value 0. In my JSF page, I create a component that I want it to be disabled if X
is 0, and enabled otherwise.
<h:selectBooleanCheckbox disabled="#{X}"/>
and I got this error
Cannot convert 0 of type class java.lang.Integer to class java.lang.Boolean