Wiki

Clone wiki

Oracle JSF Expert 1Z0-896 / JSF Tag libraries

#JSF Tag libraries: h:, f:, ui:, composite:

Core <f:...> http://java.sun.com/jsf/core

Attribute tags

  • <f:attribute>
    • name
    • value
  • <f:param>
    • id
    • binding
    • name
    • value

Event tags

  • <f:actionListener>
    • type
    • binding
    • for
  • <f:setPropertyActionListener>
    • value
    • target
    • for
  • <f:valueChangeListener>
    • type
    • binding
    • for
  • <f:phaseListener>
    • type
    • binding
  • <f:event>
    • type
      • preRenderComponent
      • postAddToView
      • preRenderView
      • preValidate
      • postValidate
    • listener

Conversion tags

  • <f:converter>
    • converterId
    • binding
    • for
  • <f:convertDateTime>
    • dateStyle
      • default
      • short
      • medium
      • long
      • full
    • locale
    • pattern
    • timeStyle
      • default
      • short
      • medium
      • long
      • full
    • timeZone
    • type
      • date
      • time
      • both
    • binding
    • for
  • <f:convertNumber>
    • currencyCode
    • currencySymbol
    • groupingUsed
    • integerOnly
    • locale
    • maxFractionDigits
    • maxIntegerDigits
    • minFractionDigits
    • minIntegerDigits
    • pattern
    • type
      • number
      • currency
      • percent
    • binding
    • for

Validation tags

  • <f:validator>
    • disabled
    • validatorId
    • binding
    • for
  • <f:validateDoubleRange>
    • disabled
    • maximum
    • minimum
    • binding
    • for
  • <f:validateLength>
    • disabled
    • maximum
    • minimum
    • binding
    • for
  • <f:validateLongRange>
    • disabled
    • maximum
    • minimum
    • binding
    • for
  • <f:validateRequired>
    • disabled
    • binding
    • for
  • <f:validateRegex>
    • disabled
    • pattern
    • binding
    • for
  • <f:validateBean>
    • validationGroups
    • disabled
    • binding
    • for

Component tags

  • <f:facet>
    • name
  • <f:selectItem>
    • binding
    • id
    • itemDescription
    • itemDisabled
    • itemLabel
    • escapeItem
    • itemValue
    • value
    • noSelectionOption
  • <f:selectItems>
    • binding
    • id
    • value
    • var
    • itemValue
    • itemLabel
    • itemDescription
    • itemDisabled
    • itemLabelEscaped
    • noSelectionValue

View tags

  • <f:viewParam>
    • converter
    • converterMessage
    • id
    • required
    • requiredMessage
    • validator
    • validatorMessage
    • value
    • name
    • valueChangeListener
    • maxLength
    • binding
    • for
  • <f:metaData>
  • <f:view>
    • locale
    • renderKitId
    • contentType
    • encoding
    • beforePhase
    • afterPhase
  • <f:subview>
    • binding
    • id
    • rendered

Misc tags

  • <f:verbatim>
    • escape
    • rendered
  • <f:ajax>
    • disabled
    • event
    • execute
    • immediate
    • onevent
    • listener
    • onerror
    • render
  • <f:loadBundle>
    • basename
    • var

HTML <h:...> http://java.sun.com/jsf/html

Common attributes

  • HTML Pages
  • Outputs
  • Inputs
  • Commands
  • Errors and messages
  • Selections
  • Layouts
  • Data Table
  • All

Basic attributes

Attribute Name Applies to tags Description
id A Identifier for a component
binding A Link this component with a backing bean property
rendered A A Boolean; false suppresses rendering
value I, O, C A component's value, typically a value expression
valueChangeListener I A method expression to a method that responds to value changes
converter I, O Converter class name
validator I Class name of a validator that is created and attached to a component
required I A Boolean; if true, requires a value to be entered
converterMessage I A custom conversion error message
validatorMessage I A custom validation error message
requiredMessage I A custom message for required input missing

HTML Pass-Through attributes

Attribute Name Applies to tags
accessKey h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:commandLink, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
accept h:form
acceptcharset h:form
alt h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
border I
charset h:outputLink
coords h:commandLink, h:link, h:outputLink
dir h:panelGrid, h:body, h:head, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:outputText, h:outputFormat, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
disabled h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:commandButton, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
hreflang h:commandLink, h:link, h:outputLink
lang h:panelGrid, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:outputText, h:outputFormat, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
maxlength h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden
readonly h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
rel h:commandLink, h:link, h:outputLink
rev h:commandLink, h:link, h:outputLink
rows I
shape h:commandLink, h:link, h:outputLink
style h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:outputText, h:outputFormat, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
size h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
styleClass h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:outputText, h:outputFormat, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
tabindex h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
target h:body, h:form, h:commandLink, h:link, h:outputLink
title h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:outputText, h:outputFormat, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
type h:outputLink
width h:panelGrid, h:graphicImage

DHTML event attributes

Attribute Name Applies to tags
onblur h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onchange h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onclick h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
ondblclick h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onfocus h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onkeydown h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onkeypress h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onkeyup h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onload h:body
onmousedown h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onmousemove h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onmouseout h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onmouseover h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onmouseup h:panelGrid, h:body, h:form, h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:graphicImage, h:commandButton, h:commandLink, h:button, h:link, h:outputLink, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onreset h:form
onselect h:inputText, h:inputSecret, h:inputTextArea, h:inputHidden, h:selectBooleanCheckbox, h:selectManyCheckbox, h:selectOneRadio, h:selectOneListBox, h:selectManyListbox, h:selectOneMenu, h:selectManyMenu
onsubmit h:form
onunload h:body

HTML

  • <h:head>
  • <h:body>
  • <h:form>
  • <h:outputStyleSheet>
  • <h:outputScript>

Inputs

  • <h:inputText>
  • <h:inputTextarea>
  • <h:inputSecret>
  • <h:inputHidden>

Outputs

  • <h:outputLabel>
  • <h:outputLink>
  • <h:outputFormat>
  • <h:outputText>
  • <h:graphicImage>

Commands

  • <h:commandButton>
  • <h:commandLink>

GET components

  • <h:button>
  • <h:link>

Error

  • <h:message>
  • <h:messages>

Selection

  • <h:selectOneListBox>
  • <h:selectOneMenu>
  • <h:selectOneRadio>
  • <h:selectBooleanCheckbox>
  • <h:selectManyCheckbox>
  • <h:selectManyListbox>
  • <h:selectManyMenu>

Layout

  • <h:panelGrid>
  • <h:panelGroup>

Data

  • <h:dataTable>
  • <h:column>

Facelets <ui:...> http://java.sun.com/jsf/facelets

  • <ui:include>
    • src
  • <ui:composition>
    • template
  • <ui:decorate>
    • template
  • <ui:define>
    • name
  • <ui:insert>
    • name
  • <ui:param>
    • name
    • value
  • <ui:component>
    • id
    • binding
    • rendered
  • <ui:fragment>
    • id
    • binding
    • rendered
  • <ui:debug>
    • hotkey
    • rendered
  • <ui:remove>
  • <ui:repeat>
    • offset
    • size
    • step
    • value
    • var
    • varStatus

Composite <composite:...> http://java.sun.com/jsf/composite

  • <composite:actionSource>
    • name
    • targets
    • hidden
  • <composite:attribute>
    • name
    • targets
    • targetAttributeName
    • default
    • displayName
    • required
    • preferred
    • expert
    • shortDescription
    • method-signatue
    • type
    • hidden
  • <composite:clientBehavior>
  • <composite:editableValueHolder>
  • <composite:extension>
  • <composite:facet>
  • <composite:implementation>
  • <composite:insertChildren>
  • <composite:insertFacet>
  • <composite:interface>
  • <composite:renderFacet>
  • <composite:valueHolder>

Updated