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
Constructors Constructor Description ResetInputContextCallback(VisitContext visitContext)Constructs a new ResetInputContextCallback with the givenVisitContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvokeContextCallback(FacesContext fc, UIComponent component)Invokes the context callback on the given component.
-
-
-
Constructor Detail
-
ResetInputContextCallback
public ResetInputContextCallback(VisitContext visitContext)
Constructs a new ResetInputContextCallback with the givenVisitContext.- Parameters:
visitContext- the visit context to be used for visiting component trees
-
-
Method Detail
-
invokeContextCallback
public void invokeContextCallback(FacesContext fc, UIComponent component)
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
-
-