|FRAMES NO FRAMES|
Render the markup for a
<script> element that renders the script
Resource specified by the optional
name attribute and
The implementation of this renderer must
@ListenerFor annotation attached to it, at the class level,
PostAddToViewEvent.class as the value of the
systemEventClass attribute. The presence of this annotation on a
renderer implies the renderer implements
ComponentSystemEventListener, which this
renderer must do. The implementation of
processEvent() must extract
UIComponent from the argument event and look for the presence
of the key "
target" in the component's attribute
If and only if such a key is present, the implementation of
processEvent() must pass the component to
No action is required during decode for this renderer.
This algorithm is
used by all resource renderers to obtain a
Resource instance which
is then rendered in a specific way depending on what kind of renderer is doing
Look in the component attribute
for a value under the key name.
Look in the component
Map for a value under the key library. This
attribute is optional, therefore, library may be
Create the resource by calling
This algorithm is used by all resource renderers to render the resource.
encodeBegin() must take no action.
Because this renderer
encodeChildren() method must take the following action.
If there is no name attribute, and the argument
component has no children, and
ProjectStage is not
ProjectStage.Production, add a
FacesMessage for this
component's clientId to the
FacesContext stating that if no name
attribute is present, and no body content is present either, then the user
should take action to correct this problem. In this case,
encodeChildren() must take no further action.
there is no name attribute and the argument
does have children, the renderer must ensure that those children are
encoded as usual.
If there is a name attribute
and the argument
component does have children, the renderer
must log a descriptive localized message stating that the child content will be
ignored. The resource referenced by the name attribute will be rendered
If there is a name
attribute and the argument
component does not have
encodeChildren() must take no action.
encodeEnd() must take specific action based on the specific kind
of resource being rendered.
Use the algorithm Common Encode
encodeEnd(), use the
algorithm Common Algorithm for Obtaining A Resource to Render above to
obtain a reference to the
Resource to be encoded.
If this is
NOT the first time this
Resource has been referenced on this
request take no action and return.
Render a script element. Use the
result from calling
resource.getRequestPath() as the value of the
"src" attribue and the result from calling
resource.getContentType() as the value of the "type" attribute.
(must evaluate to
|Converter instance registered with this component.|
|id||false||true||The component identifier for this component. This value must be unique within the closest parent component that is a naming container.|
|rendered||false||false||Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.|
|value||false||false||The current value of this component.|
The libraryName for this resource.
The resourceName for this resource.
The target area for which this resource will be rendered. For example, target="head" would cause the resource to be rendered within the head element.
|binding||false||false||The ValueExpression linking this component to a property in a backing bean|
|Variables||No Variables Defined.|
|FRAMES NO FRAMES|