Apache MyFaces
Documentation
Foundation

Tag reference sheet

Tag library reference for the following tag libraries:

Myfaces Commons Components Tag Library 2.0. - version 1.1.7

MyFaces subproject that contains non rendering components to be used with any JSF implementation.

Namespace definition: xmlns:mc="http://myfaces.apache.org/commons/components"

Tags

  • exporterActionListener Export datatable contents to an excel file or a pdf file
  • outputClientId Output the clientId of a component specified by for property
  • renderOne Tag that allows rendering the first child either by index or the first rendered one

Required attributes are marked with a*

<mc:exporterActionListener>

Export datatable contents to an excel file or a pdf file. This class is acting as the tag handler for the Exporter ActionListener.

Can contain:JSP

Attributes

NameDescriptionType
fileType"PDF" or "XLS"String
filenameDefault name of the generated excel or pdf file, if not specified value of the "for" attribute will be usedString
forId of the datatable component whose values to be exportedString

<mc:outputClientId>

Output the clientId of a component specified by for property.

Can contain:JSP

Attributes

NameDescriptionType
bindingIdentifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.String
forThe ID of the component that should be rendered.String
idGet a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.String
renderedA boolean value that indicates whether this component should be rendered. Default value: true.String

<mc:renderOne>

Tag that allows rendering the first child either by index or the first rendered one. <p> A component that only renders the first child either by index or the first visible one.. </p>

Can contain:JSP

Attributes

NameDescriptionType
bindingIdentifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.String
idGet a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.String
renderedA boolean value that indicates whether this component should be rendered. Default value: true.String
typeThe filter type: first|index. first: the first list value should evaluate to a Number or a value that can be parsed into an integer. index: A collection, array or comma-separated list of numbers. (Default: "first")String
valueThe value valid for the type. If this evaluates to null, the first child will be rendered. If the type is "first", this value will be ignored, as "first" always renders the first rendered item. If the type is "index", the value must be a number.String