Could someone please tell me how to use negation in the value of a component say checkbox to enable and disable it?
I have to disable a checkbox when the value of a property (somevalue) in bean is false.
like in
<h:selectBooleanCheckbox id="smthing" disabled="#{!somevalue}"></h:selectBooleanCheckbox>
For bean property
boolean somevalue;
should be diabled but it doesnt work. Maybe I am doing something wrong.
Also could someone please clarify if no value is assigned to the boolean what will be the case then.
h:selectBooleanCheckbox
? That is<input type="checkbox" data-checked="4" />
. Heredata-checked
is attribute to be added in JSF tag. – Langsyne