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 GraphicImage

 t:dojoInitializer Tomahawk Tag Home t:headerLink 

<t:graphicImage>


Contents

  1. Introduction
  2. Tag Attributes
  3. Example

Introduction

The t:graphicImage tag extends the JSF graphicImage tag but adds attributes for conditional rendering of the tag based on user roles.



Tag Attributes


AttributeDescription   Type    
align The align attribute is a standard HTML attribute that specifies this element's horizontal alignment.String
alt The alt attribute is a standard HTML attribute that sets the alternate textual description rendered by this component.String
binding 123123String
border The border attribute sets the pixel width of the border to be drawn around the table.String
dir The dir attribute is a standard HTML attribute that overrides the default text directionality for this component. The values accepted for this component are "LTR" (left-to-right) and "RTL" (right-to-left). String
enabledOnUserRole The enabledOnUserRole attribute determines if this component will be rendered normally or not depending on the user's roles.String
forceId The forceId attribute expects a boolean value, that when set to true, forces the tag to render its ID exactly as specified in the ID attribute. This allows you to apply CSS styles to the tag and to reference it in JavaScript by ID, which is typically not possible using the default JSF component ID naming system. This attribute is false by default.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
height The height attribute specifies the height of this component.String
hspace The hspace attribute defines the horizontal space around the component.String
id The developer-assigned ID of this component. The ID must be unique within the scope of the tag's enclosing naming container (e.g. h:form or f:subview). This value must be a static value.String
ismap The ismap attribute expects a boolean value that defines if this component uses a server-side image map.String
lang The lang attribute is a standard HTML attribute that sets the code describing the language to be used in the markup generated by this component.String
longdesc The longdesc attribute defines the long descriptive text for this component.String
onblur, onchange,etc., DHTML EventsString
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
titleAn advisory title for this element. Often used by the user agent as a tooltip.String
url The url attribute specifies the image used by this tag. It is an alias for the value attribute.String
usemap The usemap attribute specifies the client-side image map to be used by this tag.String
valueThe URL of the image. If the URL starts with a '/', it is relative to the context path of the web application.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
vspace The vspace attribute defines the vertical space around this component.String
width The width attribute specifies the width of this component.String


Example



<t:commandLink action="#{myManagedBean.myMethod}"
               rendered="#{myManagedBean.mode == 'create'}">
     <t:graphicImage value="/images/save.gif" alt="Save" title="Save"/>
</t:commandLink>

 t:dojoInitializer Tomahawk Tag Home t:headerLink 
Related Links

Tomahawk
t:aliasBean
t:aliasBeansScope
t:buffer
t:checkbox
t:collapsiblePanel
t:column
t:columns
t:commandButton
t:commandLink
t:commandNavigation
t:commandNavigation2
t:commandSortHeader
t:dataList
t:dataScroller
t:dataTable
t:div
t:document
t:documentBody
t:documentHead
t:dojoInitializer
t:graphicImage
t:headerLink
t:htmlTag
t:iconProvider
t:inputCalendar
t:inputDate
t:inputFileUpload
t:inputHidden
t:inputHtml
t:inputSecret
t:inputText
t:inputTextHelp
t:inputTextarea
t:jsValueChangeListener
t:jsValueSet
t:jscookMenu
t:message
t:messages
t:navigationMenuItem
t:navigationMenuItems
t:newspaperTable
t:outputLabel
t:outputText
t:panelGrid
t:panelGroup
t:panelLayout
t:panelNavigation
t:panelNavigation2
t:panelStack
t:panelTab
t:panelTabbedPane
t:popup
t:radio
t:saveState
t:schedule
t:selectBooleanCheckbox
t:selectItems
t:selectManyCheckbox
t:selectManyListbox
t:selectManyMenu
t:selectOneCountry
t:selectOneLanguage
t:selectOneListbox
t:selectOneMenu
t:selectOneRadio
t:stylesheet
t:swapImage
t:tabChangeListener
t:tree
t:tree2
t:treeCheckbox
t:treeColumn
t:treeSelectionListener
t:updateActionListener
t:validateCreditCard
t:validateEmail
t:validateEqual
t:validateRegExpr
Core Tags
f:actionListener
f:attribute
f:converter
f:convertDateTime
f:convertNumber
f:facet
f:loadBundle
f:param
f:selectitem
f:selectitems
f:subview
f:validateDoubleRange
f:validateLength
f:validateLongRange
f:validator
f:valueChangeListener
f:verbatim
f:view
HTML Tags
h:column
h:commandButton
h:commandLink
h:dataTable
h:form
h:graphicImage
h:inputHidden
h:inputSecret
h:inputText
h:inputTextarea
h:message
h:messages
h:outputFormat
h:outputLabel
h:outputLink
h:outputText
h:panelGrid
h:panelGroup
h:selectBooleanCheckbox
h:selectManyCheckbox
h:selectManyListbox
h:selectManyMenu
h:selectOneListbox
h:selectOneMenu
h:selectOneRadio

  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.