ArticlesTutorialsInterview Questions & AnswersCertificationsFree Books & Sample ChaptersTechnical Discussions  Your Account | Advertise with us | Feedback |
Few pages of this site are under construction and we are constantly trying to improve it. If you have any suggestions or ideas about how to improve the site, please Let us know.
Tomahawk TreeCheckbox

 t:tree2 Tomahawk Tag Home t:treeColumn 

<t:treeCheckbox>


Contents

  1. Introduction
  2. Tag Attributes
  3. Example

Introduction

The t:treeCheckbox tag generates an HTML checkbox that can be used inside a tree node. It is associated with a particular f:selectItem component through the "for" attribtue. The selectItem must be contained by a t:selectManyCheckbox tag.



Tag Attributes


AttributeDescription   Type    
binding The value-binding expression linking this component tag to a backing bean property (of type UIComponent or appropriate subclass) String
for(required) for tag is id of the referenced extended selectManyCheckbox component String
id The component identifier for this component. This value must be unique within the closest parent component that is a naming container.String
itemDescription The itemDescription attribute defines the textual description of the items rendered by this component.String
itemDisabled The itemDisabled attribute expects a boolean value that, when true, causes this component to be excluded from UI component state saving during the JSF request processing lifecycle.String
itemLabel The itemLabel attribute defines the text label displayed to the user by this component.String
itemValue The itemValue attribute defines the value associated with this component.String
rendered A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered..String
value The value attribute takes a value-binding EL expression (e.g.,"#{myBean.myProperty}") that identifies the object or literal String value (e.g.,"foo") to assign to the alias.String


Example


<t:tree id="tree" value="#{treeTable.treeModel}"
var="treeItem"
styleClass="tree"
nodeClass="treenode"
headerClass="treeHeader"
footerClass="treeFooter"
rowClasses="a, b"
columnClasses="col1, col2"
selectedNodeClass="treenodeSelected"
expandRoot="true">
.......
<f:facet name="person">
<h:panelGroup>
<t:selectManyCheckbox id="selectManyCheckbox"
value="#{selectCheckList.checked}"
layout="spread">
<f:facet name="expand">
<t:graphicImage value="images/yellow-folder-open.png"
rendered="#{t.nodeExpanded}"/>
</f:facet>
<t:treeCheckbox for="selectManyCheckbox"
itemValue="#{node.description}"
value="#{selectCheckList.newsletters}"/>

<f:facet name="collapse">
<t:graphicImage value="images/yellow-folder-closed.png"
rendered="#{!t.nodeExpanded}"/>
</f:facet>
<h:outputText value="#{node.description}"
styleClass="nodeFolder"/>
</t:selectManyCheckbox>
</h:panelGroup>
</f:facet> ...(anyComponent)...
</t:tree>
 t:tree2 Tomahawk Tag Home t:treeColumn 
Test

  ALSO SEE :

About Us | Our Mission | Terms of use | Author Terms |    Search        | Contact Us | Advertise With Us | Link to Us | Sitemap
Copyright © 2016 developersBOOK.COM. All rights reserved.