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, encodeParamsAsObjectpublic void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeBegin in class BaseDojoComponentRendererjava.io.IOExceptionpublic void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeChildren in class javax.faces.render.Rendererjava.io.IOExceptionpublic void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
java.io.IOExceptionpublic boolean getRendersChildren()
getRendersChildren in class ProgressiveCommandButtonRendererprotected java.lang.String[] getAttributesToRender(javax.faces.component.UIComponent component)
getAttributesToRender in class ProgressiveCommandButtonRendererprotected java.lang.String getRenderedTagName(javax.faces.component.UIComponent component)
getRenderedTagName in class ProgressiveCommandButtonRenderercomponent - TODOprotected java.util.Map getAttributeCallbacks(javax.faces.component.UIComponent component)
getAttributeCallbacks in class ProgressiveCommandButtonRendererprotected java.lang.String getOnClickNoAjax(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
ProgressiveCommandButtonRenderergetOnClickNoAjax in class ProgressiveCommandButtonRendererprotected 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 FacesContextcomponent - the UIComponent being renderedjava.io.IOExceptionprotected java.util.Map getAttributeAliases(javax.faces.component.UIComponent component)