|
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
javax.faces.component Class UIInput
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
- 所有已实现的接口:
- EditableValueHolder, StateHolder, ValueHolder
- 直接已知子类:
- HtmlInputHidden, HtmlInputSecret, HtmlInputText, HtmlInputTextarea, UISelectBoolean, UISelectMany, UISelectOne
public class UIInput
- extends UIOutput
- implements EditableValueHolder
UIInput is a UIComponent that represents
a component that both displays output to the user (like
UIOutput components do) and processes request parameters on the
subsequent request that need to be decoded. There are no restrictions
on the data type of the local value, or the object referenced by the
value binding expression (if any); however, individual
Renderers will generally impose restrictions
on the type of data they know how to display.
During the Apply Request Values phase of the request
processing lifecycle, the decoded value of this component, usually
but not necessarily a String, must be stored - but not yet converted -
using setSubmittedValue(). If the component wishes
to indicate that no particular value was submitted, it can either
do nothing, or set the submitted value to null.
By default, during the Process Validators phase of the
request processing lifecycle, the submitted value will be converted
to a typesafe object, and, if validation succeeds, stored as a
local value using setValue(). However, if the
immediate property is set to true, this
processing will occur instead at the end of the
Apply Request Values phase.
During the Render Response phase of the request processing
lifecycle, conversion for output occurs as for UIOutput.
When the validate() method of this UIInput
detects that a value change has actually occurred, and that all validations
have been successfully passed, it will queue a
ValueChangeEvent. Later on, the broadcast()
method will ensure that this event is broadcast to all interested
listeners. This event will be delivered by default in the
Process Validators phase, but can be delivered instead
during Apply Request Values if the immediate
property is set to true.
By default, the rendererType property must be set to
"Text". This value can be changed by calling the
setRendererType() method.
| 字段摘要 | |
|---|---|
static String |
COMPONENT_FAMILY
The standard component family for this component. |
static String |
COMPONENT_TYPE
The standard component type for this component. |
static String |
CONVERSION_MESSAGE_ID
The message identifier of the FacesMessage to be created if
a conversion error occurs, and neither the page author nor
the ConverterException provides a message. |
static String |
REQUIRED_MESSAGE_ID
The message identifier of the FacesMessage to be created if
a required check fails. |
static String |
UPDATE_MESSAGE_ID
The message identifier of the FacesMessage to be created if
a model update error occurs, and the thrown exception has
no message. |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| 构造器摘要 | |
|---|---|
UIInput()
Create a new UIInput instance with default property
values. |
|
| 方法摘要 | |
|---|---|
void |
addValidator(Validator validator)
Add a Validator instance to the set associated with
this UIInput. |
void |
addValueChangeListener(ValueChangeListener listener)
Add a new ValueChangeListener to the set of listeners
interested in being notified when ValueChangeEvents occur. |
protected boolean |
compareValues(Object previous,
Object value)
Return true if the new value is different from the
previous value. |
void |
decode(FacesContext context)
Decode any new state of this UIComponent from the
request contained in the specified FacesContext, and store
this state as needed. |
protected Object |
getConvertedValue(FacesContext context,
Object newSubmittedValue)
Convert the submitted value into a "local value" of the appropriate data type, if necessary. |
String |
getConverterMessage()
If there has been a call to setConverterMessage(java.lang.String) on this
instance, return the message. |
String |
getFamily()
Return the identifier of the component family to which this component belongs. |
String |
getRequiredMessage()
If there has been a call to setRequiredMessage(java.lang.String) on this
instance, return the message. |
Object |
getSubmittedValue()
Return the submittedValue value of this UIInput component. |
MethodBinding |
getValidator()
Deprecated. getValidators() should be used instead. |
String |
getValidatorMessage()
If there has been a call to setRequiredMessage(java.lang.String) on this
instance, return the message. |
Validator[] |
getValidators()
Return the set of registered Validators for this
UIInput instance. |
MethodBinding |
getValueChangeListener()
If EditableValueHolder.setValueChangeListener(javax.faces.el.MethodBinding) was not previously called
for this instance, this method must return null. |
ValueChangeListener[] |
getValueChangeListeners()
Return the set of registered ValueChangeListeners for this
UIInput instance. |
boolean |
isImmediate()
Return the "immediate" state for this component. |
boolean |
isLocalValueSet()
Return the "local value set" state for this component. |
boolean |
isRequired()
Return the "required field" state for this component. |
boolean |
isValid()
Return a flag indicating whether the local value of this component is valid (no conversion error has occurred). |
void |
processDecodes(FacesContext context)
Specialized decode behavior on top of that provided by the superclass. |
void |
processUpdates(FacesContext context)
In addition to the standard processUpdates behavior
inherited from UIComponentBase, calls
updateModel(). |
void |
processValidators(FacesContext context)
In addition to the standard processValidators behavior
inherited from UIComponentBase, calls validate()
if the immediate property is false (which is the
default); if the component is invalid afterwards, calls
FacesContext.renderResponse(). |
void |
removeValidator(Validator validator)
Remove a Validator instance from the set associated with
this UIInput, if it was previously associated. |
void |
removeValueChangeListener(ValueChangeListener listener)
Remove an existing ValueChangeListener (if any) from the
set of listeners interested in being notified when
ValueChangeEvents occur. |
void |
resetValue()
Convenience method to reset this component's value to the un-initialized state. |
void |
restoreState(FacesContext context,
Object state)
Perform any processing required to restore the state from the entries in the state Object. |
Object |
saveState(FacesContext context)
Gets the state of the instance as a Serializable Object. |
void |
setConverterMessage(String message)
Override any ValueExpression set for the "converterMessage"
with the literal argument provided to this method. |
void |
setImmediate(boolean immediate)
Set the "immediate" state for this component. |
void |
setLocalValueSet(boolean localValueSet)
Sets the "local value set" state for this component. |
void |
setRequired(boolean required)
Set the "required field" state for this component. |
void |
setRequiredMessage(String message)
Override any ValueExpression set for the "requiredMessage"
with the literal argument provided to this method. |
void |
setSubmittedValue(Object submittedValue)
Set the submittedValue value of this UIInput component. |
void |
setValid(boolean valid)
Set a flag indicating whether the local value of this component is valid (no conversion error has occurred). |
void |
setValidator(MethodBinding validatorBinding)
Deprecated. Use addValidator(javax.faces.validator.Validator) instead, obtaining the
argument Validator by creating an instance of MethodExpressionValidator. |
void |
setValidatorMessage(String message)
Override any ValueExpression set for the "validatorMessage"
with the literal argument provided to this method. |
void |
setValue(Object value)
Set the value of this UIComponent (if any). |
void |
setValueChangeListener(MethodBinding valueChangeListener)
Deprecated. Use addValueChangeListener(javax.faces.event.ValueChangeListener) instead, obtaining the
argument ValueChangeListener by creating an instance of MethodExpressionValueChangeListener. |
void |
updateModel(FacesContext context)
Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. |
void |
validate(FacesContext context)
Perform the following algorithm to validate the local value of this UIInput. |
protected void |
validateValue(FacesContext context,
Object newValue)
Set the "valid" property according to the below algorithm. |
| 类方法继承 javax.faces.component.UIOutput |
|---|
getConverter, getLocalValue, getValue, setConverter |
| 类方法继承 javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
| 类方法继承 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 |
| 字段详细信息 |
|---|
COMPONENT_TYPE
public static final String COMPONENT_TYPE
The standard component type for this component.
- 另请参见:
- 常量字段
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
The standard component family for this component.
- 另请参见:
- 常量字段
CONVERSION_MESSAGE_ID
public static final String CONVERSION_MESSAGE_ID
The message identifier of the
FacesMessageto be created if a conversion error occurs, and neither the page author nor theConverterExceptionprovides a message.- 另请参见:
- 常量字段
REQUIRED_MESSAGE_ID
public static final String REQUIRED_MESSAGE_ID
The message identifier of the
FacesMessageto be created if a required check fails.- 另请参见:
- 常量字段
UPDATE_MESSAGE_ID
public static final String UPDATE_MESSAGE_ID
The message identifier of the
FacesMessageto be created if a model update error occurs, and the thrown exception has no message.- 另请参见:
- 常量字段
| 构造器详细信息 |
|---|
UIInput
public UIInput()
Create a new
UIInputinstance with default property values.
| 方法详细信息 |
|---|
getFamily
public String getFamily()
- Description copied from class:
UIComponent Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the
rendererTypeproperty, may be used to select the appropriateRendererfor this component instance.
getSubmittedValue
public Object getSubmittedValue()
Return the submittedValue value of this
UIInputcomponent. This method should only be used by thedecode()andvalidate()method of this component, or its correspondingRenderer.- 规范说明:
getSubmittedValuein interfaceEditableValueHolder
setSubmittedValue
public void setSubmittedValue(Object submittedValue)
Set the submittedValue value of this
UIInputcomponent. This method should only be used by thedecode()andvalidate()method of this component, or its correspondingRenderer.- 规范说明:
setSubmittedValuein interfaceEditableValueHolder
- 参数:
submittedValue- The new submitted value
setValue
public void setValue(Object value)
- Description copied from interface:
ValueHolder Set the value of this
UIComponent(if any).- 规范说明:
setValuein interfaceValueHolder- 重写:
setValuein classUIOutput
- 参数:
value- The new local value
resetValue
public void resetValue()
Convenience method to reset this component's value to the un-initialized state. This method does the following:
Call
setValue(java.lang.Object)passingnull.Call
setSubmittedValue(java.lang.Object)passingnull.Call
setLocalValueSet(boolean)passingfalse.Call
setValid(boolean)passingtrue.Upon return from this call if the instance had a
ValueBindingassociated with it for the "value" property, this binding is evaluated whenUIOutput.getValue()is called. Otherwise,nullis returned fromgetValue().
isLocalValueSet
public boolean isLocalValueSet()
- Return the "local value set" state for this component.
Calls to
setValue()automatically reset this property totrue. - 规范说明:
isLocalValueSetin interfaceEditableValueHolder
setLocalValueSet
public void setLocalValueSet(boolean localValueSet)
- Sets the "local value set" state for this component.
- 规范说明:
setLocalValueSetin interfaceEditableValueHolder
isRequired
public boolean isRequired()
Return the "required field" state for this component.
- 规范说明:
isRequiredin interfaceEditableValueHolder
getRequiredMessage
public String getRequiredMessage()
If there has been a call to
setRequiredMessage(java.lang.String)on this instance, return the message. Otherwise, callUIComponent.getValueExpression(java.lang.String)passing the key "requiredMessage", get the result of the expression, and return it. AnyELExceptions thrown during the call togetValue()must be wrapped in aFacesExceptionand rethrown.
setRequiredMessage
public void setRequiredMessage(String message)
Override any
ValueExpressionset for the "requiredMessage" with the literal argument provided to this method. Subsequent calls togetRequiredMessage()will return this value;- 参数:
message- the literal message value to be displayed in the event the user hasn't supplied a value and one is required.
getConverterMessage
public String getConverterMessage()
If there has been a call to
setConverterMessage(java.lang.String)on this instance, return the message. Otherwise, callUIComponent.getValueExpression(java.lang.String)passing the key "converterMessage", get the result of the expression, and return it. AnyELExceptions thrown during the call togetValue()must be wrapped in aFacesExceptionand rethrown.
setConverterMessage
public void setConverterMessage(String message)
Override any
ValueExpressionset for the "converterMessage" with the literal argument provided to this method. Subsequent calls togetConverterMessage()will return this value;- 参数:
message- the literal message value to be displayed in the event conversion fails.
getValidatorMessage
public String getValidatorMessage()
If there has been a call to
setRequiredMessage(java.lang.String)on this instance, return the message. Otherwise, callUIComponent.getValueExpression(java.lang.String)passing the key "requiredMessage", get the result of the expression, and return it. AnyELExceptions thrown during the call togetValue()must be wrapped in aFacesExceptionand rethrown.
setValidatorMessage
public void setValidatorMessage(String message)
Override any
ValueExpressionset for the "validatorMessage" with the literal argument provided to this method. Subsequent calls togetValidatorMessage()will return this value;- 参数:
message- the literal message value to be displayed in the event validation fails.
isValid
public boolean isValid()
- Description copied from interface:
EditableValueHolder Return a flag indicating whether the local value of this component is valid (no conversion error has occurred).
- 规范说明:
isValidin interfaceEditableValueHolder
setValid
public void setValid(boolean valid)
- Description copied from interface:
EditableValueHolder Set a flag indicating whether the local value of this component is valid (no conversion error has occurred).
- 规范说明:
setValidin interfaceEditableValueHolder
- 参数:
valid- The new valid flag
setRequired
public void setRequired(boolean required)
Set the "required field" state for this component.
- 规范说明:
setRequiredin interfaceEditableValueHolder
- 参数:
required- The new "required field" state
isImmediate
public boolean isImmediate()
- Description copied from interface:
EditableValueHolder Return the "immediate" state for this component.
- 规范说明:
isImmediatein interfaceEditableValueHolder
setImmediate
public void setImmediate(boolean immediate)
- Description copied from interface:
EditableValueHolder Set the "immediate" state for this component. When set to true, the component's value will be converted and validated immediately in the Apply Request Values phase, and
ValueChangeEvents will be delivered in that phase as well. The default value for this property must befalse.- 规范说明:
setImmediatein interfaceEditableValueHolder
- 参数:
immediate- The new "immediate" state
getValidator
public MethodBinding getValidator()
- Deprecated.
getValidators()should be used instead. Return a
MethodBindingpointing at a method that will be called during Process Validations phase of the request processing lifecycle, to validate the current value of this component.- 规范说明:
getValidatorin interfaceEditableValueHolder
setValidator
public void setValidator(MethodBinding validatorBinding)
- Deprecated. Use
addValidator(javax.faces.validator.Validator)instead, obtaining the argumentValidatorby creating an instance ofMethodExpressionValidator. Set a
MethodBindingpointing at a method that will be called during Process Validations phase of the request processing lifecycle, to validate the current value of this component.Any method referenced by such an expression must be public, with a return type of
void, and accept parameters of typeFacesContext,UIComponent, andObject.- 规范说明:
setValidatorin interfaceEditableValueHolder
- 参数:
validatorBinding- The newMethodBindinginstance
getValueChangeListener
public MethodBinding getValueChangeListener()
- Description copied from interface:
EditableValueHolder If
EditableValueHolder.setValueChangeListener(javax.faces.el.MethodBinding)was not previously called for this instance, this method must returnnull. If it was called, this method must return the exactMethodBindinginstance that was passed toEditableValueHolder.setValueChangeListener(javax.faces.el.MethodBinding).- 规范说明:
getValueChangeListenerin interfaceEditableValueHolder
setValueChangeListener
public void setValueChangeListener(MethodBinding valueChangeListener)
- Deprecated. Use
addValueChangeListener(javax.faces.event.ValueChangeListener)instead, obtaining the argumentValueChangeListenerby creating an instance ofMethodExpressionValueChangeListener. Wrap the argument
valueChangeMethodin an implementation ofValueChangeListenerand store it in the internal data structure that backs theEditableValueHolder.getValueChangeListeners()method, taking care to over-write any instance that was stored by a previous call tosetValueChangeListener.This argument method will be called during the Process Validations or Apply Request Values phases (depending on the value of the
immediateproperty).Any method referenced by such an expression must be public, with a return type of
void, and accept a parameter of typeValueChangeEvent.- 规范说明:
setValueChangeListenerin interfaceEditableValueHolder
- 参数:
valueChangeListener- The new method binding instance
processDecodes
public void processDecodes(FacesContext context)
Specialized decode behavior on top of that provided by the superclass. In addition to the standard
processDecodesbehavior inherited fromUIComponentBase, callsvalidate()if the theimmediateproperty is true; if the component is invalid afterwards or aRuntimeExceptionis thrown, callsFacesContext.renderResponse().- 重写:
processDecodesin classUIComponentBase
- 参数:
context-FacesContextfor the request we are processing- 抛出异常:
NullPointerException- ifcontextisnull
processValidators
public void processValidators(FacesContext context)
In addition to the standard
processValidatorsbehavior inherited fromUIComponentBase, callsvalidate()if theimmediateproperty is false (which is the default); if the component is invalid afterwards, callsFacesContext.renderResponse(). If aRuntimeExceptionis thrown during validation processing, callsFacesContext.renderResponse()and re-throw the exception.- 重写:
processValidatorsin classUIComponentBase
- 参数:
context-FacesContextfor the request we are processing- 抛出异常:
NullPointerException- ifcontextisnull
processUpdates
public void processUpdates(FacesContext context)
In addition to the standard
processUpdatesbehavior inherited fromUIComponentBase, callsupdateModel(). If the component is invalid afterwards, callsFacesContext.renderResponse(). If aRuntimeExceptionis thrown during update processing, callsFacesContext.renderResponse()and re-throw the exception.- 重写:
processUpdatesin classUIComponentBase
- 参数:
context-FacesContextfor the request we are processing- 抛出异常:
NullPointerException- ifcontextisnull
decode
public void decode(FacesContext context)
- Description copied from class:
UIComponent Decode any new state of this
UIComponentfrom the request contained in the specifiedFacesContext, and store this state as needed.During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling
queueEvent().- 重写:
decodein classUIComponentBase
- 参数:
context-FacesContextfor the request we are processing- 抛出异常:
NullPointerException- ifcontextisnull
updateModel
public void updateModel(FacesContext context)
Perform the following algorithm to update the model data associated with this
UIInput, if any, as appropriate.- If the
validproperty of this component isfalse, take no further action. - If the
localValueSetproperty of this component isfalse, take no further action. - If no
ValueExpressionforvalueexists, take no further action. - Call
setValue()method of theValueExpressionto update the value that theValueExpressionpoints at. - If the
setValue()method returns successfully: - If the
setValue()method call fails:- Enqueue an error message by calling
addMessage()on the specifiedFacesContextinstance. - Set the
validproperty of thisUIInputtofalse.
- Enqueue an error message by calling
- If the
- 参数:
context-FacesContextfor the request we are processing- 抛出异常:
NullPointerException- ifcontextisnull
validate
public void validate(FacesContext context)
Perform the following algorithm to validate the local value of this
UIInput.- Retrieve the submitted value with
getSubmittedValue(). If this returns null, exit without further processing. (This indicates that no value was submitted for this component.) - Convert the submitted value into a "local value" of the
appropriate data type by calling
getConvertedValue(javax.faces.context.FacesContext, java.lang.Object). - Validate the property by calling
validateValue(javax.faces.context.FacesContext, java.lang.Object). - If the
validproperty of this component is stilltrue, retrieve the previous value of the component (withgetValue()), store the new local value usingsetValue(), and reset the submitted value to null. If the local value is different from the previous value of this component, fire aValueChangeEventto be broadcast to all interested listeners.
Application components implementing
UIInputthat wish to perform validation with logic embedded in the component should perform their own correctness checks, and then call thesuper.validate()method to perform the standard processing described above.- Retrieve the submitted value with
- 参数:
context- TheFacesContextfor the current request- 抛出异常:
NullPointerException- ifcontextis null
getConvertedValue
protected Object getConvertedValue(FacesContext context, Object newSubmittedValue) throws ConverterException
Convert the submitted value into a "local value" of the appropriate data type, if necessary. Employ the following algorithm to do so:
- If a
Rendereris present, callgetConvertedValue()to convert the submitted value. - If no
Rendereris present, and the submitted value is a String, locate aConverteras follows:- If
getConverter()returns a non-nullConverter, use that instance. - Otherwise, if a value binding for
valueexists, callgetType()on it.- If this call returns
null, assume the output type isStringand perform no conversion. - Otherwise, call
Application.createConverter(Class)to locate any registeredConvertercapable of converting data values of the specified type.
- If this call returns
- If
- If a
Converterinstance was located, call itsgetAsObject()method to perform the conversion. If conversion fails:- Enqueue an appropriate error message by calling the
addMessage()method on theFacesContext. - Set the
validproperty on this component tofalse
- Enqueue an appropriate error message by calling the
- Otherwise, use the submitted value without any conversion
- If a
This method can be overridden by subclasses for more specific behavior.
- 抛出异常:
ConverterException
validateValue
protected void validateValue(FacesContext context, Object newValue)
Set the "valid" property according to the below algorithm.
- If the
validproperty on this component is stilltrue, and therequiredproperty is also true, ensure that the local value is not empty (where "empty" is defined asnullor a zero-length String. If the local value is empty:- Enqueue an appropriate error message by calling the
addMessage()method on theFacesContextinstance for the current request. If thegetRequiredMessage()returns non-null, use the value as thesummaryanddetailin theFacesMessagethat is enqueued on theFacesContext, otherwise use the message for theREQUIRED_MESSAGE_ID. - Set the
validproperty on this component tofalse.
- Enqueue an appropriate error message by calling the
- If the
validproperty on this component is stilltrue, and the local value is not empty, call thevalidate()method of eachValidatorregistered for thisUIInput, followed by the method pointed at by thevalidatorBindingproperty (if any). If any of these validators or the method throws aValidatorException, catch the exception, add its message (if any) to theFacesContext, and set thevalidproperty of this component to false.
- If the
compareValues
protected boolean compareValues(Object previous, Object value)
Return
trueif the new value is different from the previous value.- 参数:
previous- old value of this component (if any)value- new value of this component (if any)
addValidator
public void addValidator(Validator validator)
Add a
Validatorinstance to the set associated with thisUIInput.- 规范说明:
addValidatorin interfaceEditableValueHolder
- 参数:
validator- TheValidatorto add- 抛出异常:
NullPointerException- ifvalidatoris null
getValidators
public Validator[] getValidators()
Return the set of registered
Validators for thisUIInputinstance. If there are no registered validators, a zero-length array is returned.- 规范说明:
getValidatorsin interfaceEditableValueHolder
removeValidator
public void removeValidator(Validator validator)
Remove a
Validatorinstance from the set associated with thisUIInput, if it was previously associated. Otherwise, do nothing.- 规范说明:
removeValidatorin interfaceEditableValueHolder
- 参数:
validator- TheValidatorto remove
addValueChangeListener
public void addValueChangeListener(ValueChangeListener listener)
Add a new
ValueChangeListenerto the set of listeners interested in being notified whenValueChangeEvents occur.- 规范说明:
addValueChangeListenerin interfaceEditableValueHolder
- 参数:
listener- TheValueChangeListenerto be added- 抛出异常:
NullPointerException- iflistenerisnull
getValueChangeListeners
public ValueChangeListener[] getValueChangeListeners()
Return the set of registered
ValueChangeListeners for thisUIInputinstance. If there are no registered listeners, a zero-length array is returned.- 规范说明:
getValueChangeListenersin interfaceEditableValueHolder
removeValueChangeListener
public void removeValueChangeListener(ValueChangeListener listener)
Remove an existing
ValueChangeListener(if any) from the set of listeners interested in being notified whenValueChangeEvents occur.- 规范说明:
removeValueChangeListenerin interfaceEditableValueHolder
- 参数:
listener- TheValueChangeListenerto be removed- 抛出异常:
NullPointerException- iflistenerisnull
saveState
public Object saveState(FacesContext context)
- Description copied from interface:
StateHolder Gets the state of the instance as a
SerializableObject.If the class that implements this interface has references to instances that implement StateHolder (such as a
UIComponentwith event handlers, validators, etc.) this method must call theStateHolder.saveState(javax.faces.context.FacesContext)method on all those instances as well. This method must not save the state of children and facets. That is done via theStateManagerThis method must not alter the state of the implementing object. In other words, after executing this code:
Object state = component.saveState(facesContext);
componentshould be the same as before executing it.The return from this method must be
Serializable- 规范说明:
saveStatein interfaceStateHolder- 重写:
saveStatein classUIOutput
restoreState
public void restoreState(FacesContext context, Object state)
- Description copied from interface:
StateHolder Perform any processing required to restore the state from the entries in the state Object.
If the class that implements this interface has references to instances that also implement StateHolder (such as a
UIComponentwith event handlers, validators, etc.) this method must call theStateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)method on all those instances as well.- 规范说明:
restoreStatein interfaceStateHolder- 重写:
restoreStatein classUIOutput
|
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.
