public class OutputLinkBuilder extends Builder
This Builder
will create a target
ElementBean
for a "<a>"
Node
. The mapping between the html and the builder is handled by the
AnchorBuilderRule
.
Constructor and Description |
---|
OutputLinkBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
encodeBegin(Node node,
ElementBean target,
ComponentBean root)
Calls super to populate the
target config bean with the
html node 's values. |
protected String |
getComponentType(Node node)
Returns a JSF component type of
javax.faces.HtmlOutputLink . |
protected String |
getJsfid(Node node)
Returns a
jsfid that will populate the target
ElementBean . |
boolean |
isChildrenAllowed()
Returns
true meaning that the target JSF component can
have children. |
assignAttributes, assignNode, createAttribute, createElement, encode, encodeChildren, encodeEnd, getBuilder, getBuildNodeBody, getRenderId
protected String getComponentType(Node node)
Returns a JSF component type of javax.faces.HtmlOutputLink
.
getComponentType
in class Builder
node
- markupprotected String getJsfid(Node node)
Returns a jsfid
that will populate the target
ElementBean
.
public boolean isChildrenAllowed()
Returns true
meaning that the target JSF component can
have children.
isChildrenAllowed
in class Builder
true
protected void encodeBegin(Node node, ElementBean target, ComponentBean root)
Calls super to populate the target
config bean with the
html node
's values. The "href" attribute doesn't have a
corresponding outputLink value so it will become a symbol. If there
is a "value" attribute, connect the component's "value" to the
"@href" symbol.
encodeBegin
in class Builder
node
- markup nodetarget
- config beanroot
- parent config beanCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.