Class ResetValuesUtils.ResetInputContextCallback
java.lang.Object
org.apache.myfaces.core.api.shared.ResetValuesUtils.ResetInputContextCallback
- All Implemented Interfaces:
ContextCallback
- Enclosing class:
- ResetValuesUtils
public static class ResetValuesUtils.ResetInputContextCallback
extends Object
implements ContextCallback
-
Constructor Summary
ConstructorsConstructorDescriptionResetInputContextCallback
(VisitContext visitContext) Constructs a new ResetInputContextCallback with the givenVisitContext
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
invokeContextCallback
(FacesContext fc, UIComponent component) Invokes the context callback on the given component.
-
Constructor Details
-
ResetInputContextCallback
Constructs a new ResetInputContextCallback with the givenVisitContext
.- Parameters:
visitContext
- the visit context to be used for visiting component trees
-
-
Method Details
-
invokeContextCallback
Invokes the context callback on the given component. If the component is an instance ofEditableValueHolder
, its value is reset. Otherwise, the component's tree is visited using theResetValuesUtils.ResetInputVisitCallback
instance.- Specified by:
invokeContextCallback
in interfaceContextCallback
- Parameters:
fc
- the currentFacesContext
component
- the component on which to invoke the context callback
-