Project Documentation
Foundation

Summary

Tag name: <s:renderOne>
UIComponent class: org.apache.myfaces.custom.renderOne.UIRenderOne
Tag class: org.apache.myfaces.custom.renderOne.UIRenderOneTag
Component type: org.apache.myfaces.UILimitRendered
Component family: javax.faces.Data

Tag that allows rendering the first child either by index or the first rendered one.

A component that only renders the first child either by index or the first visible one..

Attributes

Name Type Supports EL? Description
binding org.apache.myfaces.custom.renderOne.UIRenderOne Only EL Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.
id String Yes 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.
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.
type String Yes 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")
value Integer Yes 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.