Add attribute required to Tree
Posted: 01 Jun 2012, 13:31
I have a tree with selectionMode checkbox and i want to define that at least one selection is need.
The attribute required is not available in Primefaces 3.2.
I know i can make the check in the bean, but i want to do the check before calling the bean.
Thanks
The attribute required is not available in Primefaces 3.2.
I know i can make the check in the bean, but i want to do the check before calling the bean.
Code: Select all
<p:tree value="#{treeBean.root}" var="node" id="checkboxTree"
selectionMode="checkbox"
selection="#{treeBean.selectedNodes}"
required="true">
<p:treeNode>
<h:outputText value="#{node}" />
</p:treeNode>
</p:tree>