public class FormRenderer extends AbstractRenderer
Renderer
implementation for the form
tag
from the Struts-Faces Integration Library.
Constructor and Description |
---|
FormRenderer() |
Modifier and Type | Method and Description |
---|---|
protected String |
action(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Calculate and return the value to be specifed for the
action attribute on the |
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Perform setup processing that will be required for decoding the
incoming request.
|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render the beginning of an HTML
<form>
control. |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render the ending of an HTML
<form>
control. |
protected boolean |
isXhtml(javax.faces.component.UIComponent component)
Return
true if we should render as XHTML. |
encodeChildren, encodeRecursive, getAsString, isDisabled, isReadOnly, renderAttributes, renderBoolean, renderEnd, renderPassThrough, renderStart, setSubmittedValue
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Perform setup processing that will be required for decoding the incoming request.
decode
in class AbstractRenderer
context
- FacesContext for the request we are processingcomponent
- UIComponent to be processedNullPointerException
- if context
or component
is nullpublic void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
Render the beginning of an HTML <form>
control.
encodeBegin
in class AbstractRenderer
context
- FacesContext for the request we are processingcomponent
- UIComponent to be renderedIOException
- if an input/output error occurs while renderingNullPointerException
- if context
or component
is nullpublic void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
Render the ending of an HTML <form>
control.
encodeEnd
in class AbstractRenderer
context
- FacesContext for the request we are processingcomponent
- UIComponent to be renderedIOException
- if an input/output error occurs while renderingNullPointerException
- if context
or component
is nullprotected String action(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Calculate and return the value to be specifed for the
action attribute on the
<form>
element to be rendered.
context
- FacesContext for the current requestcomponent
- Component being processedprotected boolean isXhtml(javax.faces.component.UIComponent component)
Return true
if we should render as XHTML.
component
- The component we are renderingCopyright © 2000–2017 Apache Software Foundation. All rights reserved.