public class ProgressiveCommandLinkRenderer extends ProgressiveCommandButtonRenderer
Renderer
for the <sf:commandLink>
tag.
This renderer is unique in that it first renders a button that will still work if JavaScript is disabled on the client, then progressively enhances the button and transforms it into a link if JavaScript is available.
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
ProgressiveCommandLinkRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Renders the opening portion of the tag, prior to any children.
|
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Closes the tag after children have been rendered.
|
protected java.lang.String |
encodeParamsAsArray(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
protected java.util.Map |
getAttributeAliases(javax.faces.component.UIComponent component) |
protected java.util.Map |
getAttributeCallbacks(javax.faces.component.UIComponent component) |
protected java.lang.String[] |
getAttributesToRender(javax.faces.component.UIComponent component) |
protected java.lang.String |
getOnClickNoAjax(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
This is a hook for subclasses to provide special onclick behavior in the non-ajax case
|
protected java.lang.String |
getRenderedTagName(javax.faces.component.UIComponent component) |
boolean |
getRendersChildren() |
protected void |
writeAttributes(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Writes the attributes for this tag.
|
decode, encodeParamsAsObject
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeBegin
in class BaseDojoComponentRenderer
java.io.IOException
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class javax.faces.render.Renderer
java.io.IOException
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
java.io.IOException
public boolean getRendersChildren()
getRendersChildren
in class ProgressiveCommandButtonRenderer
protected java.lang.String[] getAttributesToRender(javax.faces.component.UIComponent component)
getAttributesToRender
in class ProgressiveCommandButtonRenderer
protected java.lang.String getRenderedTagName(javax.faces.component.UIComponent component)
getRenderedTagName
in class ProgressiveCommandButtonRenderer
component
- TODOprotected java.util.Map getAttributeCallbacks(javax.faces.component.UIComponent component)
getAttributeCallbacks
in class ProgressiveCommandButtonRenderer
protected java.lang.String getOnClickNoAjax(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
ProgressiveCommandButtonRenderer
getOnClickNoAjax
in class ProgressiveCommandButtonRenderer
protected java.lang.String encodeParamsAsArray(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void writeAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
context
- the current FacesContext
component
- the UIComponent
being renderedjava.io.IOException
protected java.util.Map getAttributeAliases(javax.faces.component.UIComponent component)