I have the following tree node class:
public abstract class DocumentTreeNode extends TreeNodeImpl implements javax.swing.tree.TreeNode
{
private Boolean isToC;
...
public Boolean isToC()
{
return isToC;
}
public void setToC(Boolean isToC)
{
this.isToC = isToC;
}
}
This is a simple check box indicating whether the document is to be included in whatever or not. However, when trying to reference this from within JSF 2 EL
...
<h:selectBooleanCheckbox value="#{node.isToC}" />
...
I get an exception:
Caused by: javax.el.PropertyNotFoundException: /main.xhtml @541,64 value="#{node.isToC}": The class 'ChapterTreeNode' does not have the property 'isToC'.
(I think I tried almost every combination, at least I felt this way... ;-) )
How do I resolve that boolean property? What needs to be changed?
isToC
in the class, but the getter's name is supposed to beisToC()
, too. In JSF XHTML this would be#{file.toC}
. This now throws another exception:The class 'de.poyry.pqgenerator.pqtree.ChapterTreeNode' does not have a readable property 'toC'.
I guess I have to give up on naming my booleans the same as the fields? – Eirene