Tag reference sheet
Tag library reference for the following tag libraries:
- Myfaces Commons Components Tag Library 2.0. (mc.tld) - uri:http://myfaces.apache.org/commons/components
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
<mc:outputClientId>
Output the clientId of a component specified by for property.
Can contain:JSP
Attributes
Name | Description | Type |
---|---|---|
binding | Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression. | String |
for | The ID of the component that should be rendered. | String |
id | Get 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 |
rendered | A 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
Name | Description | Type |
---|---|---|
binding | Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression. | String |
id | Get 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 |
rendered | A boolean value that indicates whether this component should be rendered. Default value: true. | String |
type | The 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 |
value | The 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 |