public class VerbatimBuilder extends Builder
This is the default Builder
that will create a ElementBean
having characteristics like the JSP verbatim tag. All html elements that are
not mapped to a specific Builder
will be handled by the
DefaultBuilderRule
.
Constructor and Description |
---|
VerbatimBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
assignAttributes(Node node,
ComponentBean target)
Skip the processing of attributes for a verbatim node.
|
protected void |
encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Calls to the super implementation to populate the target
ElementBean and then sets the value attribute to the raw text of
the html node. |
protected void |
encodeEnd(Node node,
ElementBean target,
ComponentBean root)
If the html node is well-formed, the create a ending html tag using
another verbatim
ElementBean . |
protected String |
getComponentType(Node node)
Returns a JSF component type of
javax.faces.HtmlOutputText . |
protected String |
getJsfid(Node node)
Returns the
jsfid for the target ElementBean . |
assignNode, createAttribute, createElement, encode, encodeChildren, getBuilder, getBuildNodeBody, getRenderId, isChildrenAllowed
protected String getJsfid(Node node)
Returns the jsfid
for the target ElementBean
.
protected void encodeBegin(Node node, ElementBean target, ComponentBean root)
Calls to the super implementation to populate the target
ElementBean
and then sets the value attribute to the raw text of
the html node. Set the escape
attribute to
false
so that the special html characters will not be
excaped
encodeBegin
in class Builder
node
- markuptarget
- childroot
- parentprotected String getComponentType(Node node)
Returns a JSF component type of javax.faces.HtmlOutputText
.
getComponentType
in class Builder
node
- markupprotected void encodeEnd(Node node, ElementBean target, ComponentBean root)
If the html node is well-formed, the create a ending html tag using
another verbatim ElementBean
.
Set the escape
attribute to false
so that
the special html characters will not be escaped
protected void assignAttributes(Node node, ComponentBean target)
Skip the processing of attributes for a verbatim node. This
was a bug uncovered with JSF RI 1.2. The TextRenderer
is sensitive to pass thru attributes. If it finds a pass thru
attribute, it wraps the text in a HTML span tag.
assignAttributes
in class Builder
node
- markup nodetarget
- config bean built for the markup nodeCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.