UIParameter
to implement ValueHolder
and thus support a Converter
to convert the supplied value to string, if necessary.
You can use it the same way as <f:param>
, you only need to change f:
into
o:
to get the extra support for a Converter
by usual means via the converter
attribute of the tag, or the nested <f:converter>
tag, or just automatically if a converter is
already registered for the target class.
Also, if no value is specified, but children are present, then the encoded output of children will be returned as
value. This is useful when you want to supply JSF components or HTML as parameter of an unescaped
<h:outputFormat>
. For example,
<h:outputFormat value="#{bundle.paragraph}" escape="false"> <o:param><h:link outcome="contact" value="#{bundle.contact}" /></o:param> </h:outputFormat>
with this bundle
paragraph = Please {0} for more information. contact = contact us
will result in the link being actually encoded as output format parameter value.
Info | Value |
---|---|
Component Type | org.omnifaces.component.output.Param |
Handler Class | None |
Renderer Type | None |
Description | None |
Name | Required | Type | Description |
---|---|---|---|
id | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The component identifier for this component. This value must be unique within the closest parent component that is a naming container. |
binding | false | javax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent )
|
The ValueExpression linking this component to a property in a backing bean.
|
name | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Name of the parameter to be created. |
value | false | javax.el.ValueExpression
(must evaluate to java.lang.Object )
| Value of the parameter to be set. |
converter | false | javax.el.ValueExpression
(must evaluate to javax.faces.convert.Converter )
| Converter instance registered with this component. |
disable | false | javax.el.ValueExpression
(must evaluate to boolean )
| Flag enabling or disabling the inclusion of the parameter. |
Output generated by Vdldoc View Declaration Language Documentation Generator.