public class TokenRenderer
extends javax.faces.render.Renderer
Renderer for a Token
component, dealing with a transaction
token used to catch duplicate form submits.
Constructor and Description |
---|
TokenRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Save the submitted value if this component was actually rendered.
|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render the start of a hidden input element containing the transaction
token value for this component.
|
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render the end of a hidden input element containing the transaction
token value for this component.
|
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Save the submitted value if this component was actually rendered.
decode
in class javax.faces.render.Renderer
context
- FacesContext
for the current requestcomponent
- UIComponent
to be decodedpublic void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
Render the start of a hidden input element containing the transaction token value for this component.
encodeBegin
in class javax.faces.render.Renderer
context
- FacesContext
for the current requestcomponent
- UIComponent
to be decodedIOException
- if an input/output error occurspublic void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
Render the end of a hidden input element containing the transaction token value for this component.
encodeEnd
in class javax.faces.render.Renderer
context
- FacesContext
for the current requestcomponent
- UIComponent
to be decodedIOException
- if an input/output error occursCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.