📄 struts-faces.tld
字号:
<name>html</name>
<tag-class>org.apache.struts.faces.taglib.HtmlTag</tag-class>
<body-content>JSP</body-content>
<description><![CDATA[
<p>Renders an HTML <code><html></code> element with language
attributes extracted from the user's current Locale object, if there
is one.</p>
]]>
</description>
<attribute>
<name>binding</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Value binding expression to bind this component to
a backing bean property.</p>
]]>
</description>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>
Component id of this component.
</description>
</attribute>
<attribute>
<name>locale</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Set to <code>true</code> in order to record a <code>Locale</code>
based on the current request's <code>Accept-Language</code> header
(if any), if none has currently been set.</p>
]]>
</description>
</attribute>
<attribute>
<name>rendered</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>
Boolean attribute indicating whether this component should be
rendered or not.
</description>
</attribute>
<attribute>
<name>xhtml</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Set to <code>true</code> to render an <code>xml:lang</code>
element on the generated <code>html</code> element. It also causes
nested Struts HTML tags (although not JavaServer Faces component
tags) to render themselves as xhtml.</p>
]]>
</description>
</attribute>
</tag>
<tag>
<name>javascript</name>
<tag-class>
org.apache.struts.faces.taglib.JavascriptValidatorTag
</tag-class>
<description><![CDATA[
<p>
<strong>IMPLEMENTATION NOTE</strong> - Unlike other tags in this
tag library, this does not correspond to a JavaServer Faces
user interface component. It is based on the tag implementation
class used in the <code>struts-html</code> tag library.</p>
<p>Render JavaScript validation based on the
validation rules loaded by the <code>ValidatorPlugIn</code>.
The set of validation rules that should be generated is based
on the formName attribute passed in, which should match
the name attribute of the form element in the xml file.</p>
<p>The dynamicJavascript and staticJavascript attributes
default to true, but if dynamicJavascript is set to <code>true</code>
and staticJavascript is set to <code>false</code> then only
the dynamic JavaScript will be rendered. If dynamicJavascript
is set to <code>false</code>
and staticJavascript is set to <code>true</code> then only
the static JavaScript will be rendered which can then be put in
separate JSP page so the browser can cache the static JavaScript.</p>
]]>
</description>
<attribute>
<name>cdata</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[
<p>If set to "true" and XHTML has been enabled, the JavaScript will
be wrapped in a CDATA section to prevent XML parsing. The default is
"true" to comply with the W3C's recommendation.</p>
]]>
</description>
</attribute>
<attribute>
<name>dynamicJavascript</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Whether or not to render the dynamic JavaScript.
Defaults to <code>true</code>.</p>
]]>
</description>
</attribute>
<attribute>
<name>formName</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[
<p>The key (form name) to retrieve a specific
set of validation rules.</p>
]]>
</description>
</attribute>
<attribute>
<name>htmlComment</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[
<p>Whether or not to enclose the javascript
with HTML comments. This attribute is ignored in XHTML
mode because the script would be deleted by the XML parser. See
the cdata attribute for details on hiding scripts from XML
parsers. Defaults to <code>true</code>.</p>
]]>
</description>
</attribute>
<attribute>
<name>method</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[
<p>The alternate JavaScript method name to be used
instead of the of the default. The default is
'validate' concatenated in front of
the key (form name) passed in (ex: validateRegistrationForm).</p>
]]>
</description>
</attribute>
<attribute>
<name>page</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[
<p>The current page of a set of validation rules
if the page attribute for the field element
in the xml file is in use.</p>
]]>
</description>
</attribute>
<attribute>
<name>src</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[
<p>The src attribute's value when defining
the html script element.</p>
]]>
</description>
</attribute>
<attribute>
<name>staticJavascript</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Whether or not to render the static JavaScript.
Defaults to <code>true</code>.</p>
]]>
</description>
</attribute>
</tag>
<tag>
<name>loadMessages</name>
<tag-class>org.apache.struts.faces.taglib.LoadMessagesTag</tag-class>
<body-content>empty</body-content>
<description><![CDATA[
<p>Create a Map wrapping the specified MessageResources instance, which
will return localized messages based on the Locale stored in the
view root component of the current view.</p>
]]>
</description>
<attribute>
<name>messages</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Application scope key containing the MessageResources instance
to be exposed. If not specified, the default MessageResources
instance for the current application module is exposed.</p>
]]>
</description>
</attribute>
<attribute>
<name>var</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Request scope key under which the Map will be stored.</p>
]]>
</description>
</attribute>
</tag>
<tag>
<name>message</name>
<tag-class>org.apache.struts.faces.taglib.MessageTag</tag-class>
<body-content>JSP</body-content>
<description><![CDATA[
<p>Render the message text looked up from a message resources bundle,
based on our current locale. The message key must be specified by
exactly one of the following attributes:</p>
<p>The <code>MessageResources</code> bundle to be used is specified
by the <code>bundle</code> attribute, as follows:</p>
<p>Substitution parameters for the message may be nested inside this
tag by using the <code>parameter</code> tag from the standard
HTML RenderKit tag library.</p>
<p>Additional control over the rendering process is specified by the
following optional attributes, with default values as indicated:</p>
]]>
</description>
<attribute>
<name>binding</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Value binding expression to bind this component to
a backing bean property.</p>
]]>
</description>
</attribute>
<attribute>
<name>bundle</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Name of the servlet context attribute under which the desired
<code>MessageResources</code> bundle is stored. If not specified,
the default bundle for this sub-application will be used.</p>
]]>
</description>
</attribute>
<attribute>
<name>filter</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Should we filter the output for characters that are sensitive
in HTML? The default value is <code>true</code>.</p>
]]>
</description>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Component identifier of the component corresponding to this tag.</p>
]]>
</description>
</attribute>
<attribute>
<name>key</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Literal value of the message key to look up. Exactly one of
<code>key</code> and <code>value</code> must be specified.
</p>
]]>
</description>
</attribute>
<attribute>
<name>rendered</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>
Boolean attribute indicating whether this component should be
rendered or not.
</description>
</attribute>
<attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>CSS styles used to render this component.</p>
]]>
</description>
</attribute>
<attribute>
<name>styleClass</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Name of the CSS style class used to render this component.</p>
]]>
</description>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Value reference expression used to retrieve a dynamic value for
the message key to look up. Exactly one of <code>key</code> and
<code>value</code> must be specified.</p>
]]>
</description>
</attribute>
</tag>
<tag>
<name>stylesheet</name>
<tag-class>org.apache.struts.faces.taglib.StylesheetTag</tag-class>
<description><![CDATA[
<p>Renders an HTML <code><link></code> element with a
relative reference to a <code>text/css</code> stylesheet at
the specified context-relative path.</p>
]]>
</description>
<attribute>
<name>binding</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Value binding expression to bind this component to
a backing bean property.</p>
]]>
</description>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>
Component id of this component.
</description>
</attribute>
<attribute>
<name>path</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<description>
Context-relative path to the resource for this relative link.
</description>
</attribute>
<attribute>
<name>rendered</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>
Boolean attribute indicating whether this component should be
rendered or not.
</description>
</attribute>
</tag>
<tag>
<name>write</name>
<tag-class>org.apache.struts.faces.taglib.WriteTag</tag-class>
<body-content>empty</body-content>
<description><![CDATA[
<p>Render the text associated with the specified model object or
text string, optionally performing filtering and formatting tasks
described by the optional attributes described below. The text to be
rendered is specified in exactly one of the following attributes:</p>
<p>Additional control over the rendering process is specified by the
following optional attributes, with default values as indicated:</p>
]]>
</description>
<attribute>
<name>binding</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Value binding expression to bind this component to
a backing bean property.</p>
]]>
</description>
</attribute>
<attribute>
<name>filter</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Should we filter the output for characters that are sensitive
in HTML? The default value is <code>true</code>.</p>
]]>
</description>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Component identifier of the component corresponding to this tag.</p>
]]>
</description>
</attribute>
<attribute>
<name>rendered</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description>
Boolean attribute indicating whether this component should be
rendered or not.
</description>
</attribute>
<attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>CSS styles used to render this component.</p>
]]>
</description>
</attribute>
<attribute>
<name>styleClass</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Name of the CSS style class used to render this component.</p>
]]>
</description>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[
<p>Literal text to be rendered, or value reference expression
to retrieve the text to be rendered.</p>
]]>
</description>
</attribute>
</tag>
</taglib>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -