public class Token
extends javax.faces.component.UIInput
Component that renders a transaction token input field, and then validates it on a subsequent form submit. The token component must be the last input component child of the parent form to be processed.
$Id: Token.java 472288 2006-11-07 21:41:16Z rahul $| Constructor and Description |
|---|
Token()
Create a default instance of this component.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFamily()
Return the component family for this component.
|
String |
getMessageDetail()
Returns the validation
messageDetail used to create a
FacesMessage.SEVERITY_ERROR. |
String |
getMessageSummary()
Returns the validation
messageSummary used to create a
FacesMessage.SEVERITY_ERROR. |
String |
getToken()
Return the transaction token value to be rendered for this occcurrence
of this component.
|
void |
restoreState(javax.faces.context.FacesContext context,
Object obj)
Restores the components state.
|
Object |
saveState(javax.faces.context.FacesContext context)
Saves the components state.
|
void |
setMessageDetail(String message)
Sets a
messageDetail override used when reporting
a token verification failure. |
void |
setMessageSummary(String message)
Sets a
messageSummary override used when reporting
a token verification failure. |
void |
validate(javax.faces.context.FacesContext context)
Perform superclass validations, then ensure that the specified input
value is acceptable at this point in time.
|
addValidator, addValueChangeListener, broadcast, compareValues, decode, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validateValuegetConverter, getLocalValue, getValue, setConverteraddFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingpublic String getMessageSummary()
Returns the validation messageSummary used to create a
FacesMessage.SEVERITY_ERROR.
public void setMessageSummary(String message)
Sets a messageSummary override used when reporting
a token verification failure.
message - The new message summarypublic String getMessageDetail()
Returns the validation messageDetail used to create a
FacesMessage.SEVERITY_ERROR.
public void setMessageDetail(String message)
Sets a messageDetail override used when reporting
a token verification failure.
message - The new message detailpublic String getFamily()
Return the component family for this component.
getFamily in class javax.faces.component.UIInputpublic void validate(javax.faces.context.FacesContext context)
Perform superclass validations, then ensure that the specified input value is acceptable at this point in time.
validate in class javax.faces.component.UIInputcontext - FacesContext for the current requestpublic String getToken()
Return the transaction token value to be rendered for this occcurrence of this component. As a side effect, the transaction token value will be saved for verification on a subsequent submit.
public void restoreState(javax.faces.context.FacesContext context,
Object obj)
Restores the components state.
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIInputcontext - FacesContext for the current requestobj - State to be restoredpublic Object saveState(javax.faces.context.FacesContext context)
Saves the components state.
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIInputcontext - FacesContext for the current requestCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.