com.sun.faces.metadata.taglib.faces.html.taglib.xml Maven / Gradle / Ivy
Show all versions of jakarta.faces Show documentation
Jakarta Faces HTML Tag Library
This tag library contains Jakarta Faces component tags for all
UIComponent + HTML RenderKit Renderer combinations as defined in
section 9.5 "Standard HTML RenderKit Tag Library" of the Jakarta Faces Specification Document.
]]>
jakarta.faces.html
Render an HTML "input" element of type "button".
The value of the component is rendered as the button text and the outcome of the
component is used to determine the target URL which is activated by onclick. If
"image" attribute is specified, render it as the value of the "src" attribute after
passing it to the getResourceURL()
method of the ViewHandler
for this application, and passing the result through the encodeResourceURL()
method of the ExternalContext
. Any child UIParameter
components
are appended to the String to be used as the target URL as query parameters before rendering.
The entire target URL string must be passed through a call to the encodeResourceURL()
method of the ExternalContext
. The name of the UIParameter
goes on the
left hand side, and the value of the UIParameter
on the right hand side. The name
and the value must be URLEncoded. Each UIParameter
instance is separeted by an
ampersand, as dictated in the URL spec. The final encoded result will be written out to the
onclick attribute of the button as "window.location.href = ''".
If the developer has specified a custom onlclick the window.location.href name/value
pair will be appended at the end of the developer specified script.
If the "fragment" attribute is specified, the value will be included at the end
of the resulting URL preceded by a hash mark. If the "styleClass" attribute is specified,
render its value as the value of the "class" attribute. If the "id" attribute is specified,
follow the same steps as mentioned in the "General
Notes on Encoding" regarding the "id" attribute for UIInput components. If the
"disabled" attribute is specified, do not render the "onclick" element and assign the
"disabled" attribute a value of true.