ArticlesTutorialsInterview Questions & AnswersCertificationsFree Books & Sample ChaptersTechnical Discussions  Your Account | Advertise with us | Feedback |
Tomahawk HtmlTag

 t:headerLink Tomahawk Tag Home t:iconProvider 



  1. Introduction
  2. Tag Attributes
  3. Example


t:htmlTag tag creates an arbitrary HTML tag that wraps any child components. The value attribute specifies the name of the HTML tag to be generated. If the value is empty then no tag will be generated, but child tags will still be rendered. When the rendered attribute is false, no child components are rendered. This tag does not provide a way to set attributes for the generated HTML tag, other than via the attributes already supported by this tag.

Tag Attributes

AttributeDescription   Type    
binding The value-binding expression linking this component tag to a backing bean property.String
enabledOnUserRole If user is in given role, this component will be rendered normally. If not, no hyperlink is rendered but all nested tags (=body) are rendered.String
forceId A boolean value;If true, this component will force the use of the specified id when rendering.String
forceIdIndex The forceIdIndex attribute effects the component ID name when this component is rendered at runtime. It expects a boolean value that, when true, causes the component to display an index number in its ID value if the component is in a list. It has a default value of true. String
id The unique identifier value for this component. The value must be unique within the closest naming container (e.g.,h:form or f:subview).This value must be a static value.String
renderedA boolean value that indicates whether this component should be rendered.Default value: true.String
styleThe style attribute sets the CSS style definition to be applied to this component when it is rendered.String
styleClassThe styleClass attribute sets the CSS class to apply to this component when it is rendered.String
valueThe value attribute sets the current value for this component.String
visibleOnUserRoleIf user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped. String


<t:htmlTag value="div" styleClass="myStyleClass">
  <h:panelGroup styleClass="button_block">
  <t:commandLink action="#{myBackingBean.cancelMethod}"
   <h:graphicImage value="/images/cancel.gif" alt="Exit" title="Exit"/>
  <t:commandLink action="#{myBackingBean.saveMethod}">
   <h:graphicImage value="/images/save.gif" alt="Save" title="Save"/>


 t:headerLink Tomahawk Tag Home t:iconProvider 


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.