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 TypeMethodDescriptionvoidinvokeContextCallback(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.ResetInputVisitCallbackinstance.- Specified by:
invokeContextCallbackin interfaceContextCallback- Parameters:
fc- the currentFacesContextcomponent- the component on which to invoke the context callback
-