|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UIOutput javax.faces.component.UIInput org.apache.shale.component.Token
public class Token
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 $
Field Summary |
---|
Fields inherited from class javax.faces.component.UIInput |
---|
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Constructor Summary | |
---|---|
Token()
Create a default instance of this component. |
Method Summary | |
---|---|
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. |
Methods inherited from class javax.faces.component.UIInput |
---|
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, validateValue |
Methods inherited from class javax.faces.component.UIOutput |
---|
getConverter, getLocalValue, getValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, 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, setValueBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.ValueHolder |
---|
getConverter, getLocalValue, getValue, setConverter |
Constructor Detail |
---|
public Token()
Create a default instance of this component.
Method Detail |
---|
public 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.UIInput
public 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.UIInput
context
- 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.StateHolder
restoreState
in class javax.faces.component.UIInput
context
- 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.StateHolder
saveState
in class javax.faces.component.UIInput
context
- FacesContext for the current request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |