Package jakarta.faces.component
Interface ContextCallback
-
public interface ContextCallbackA simple callback interace that enables taking action on a specific UIComponent (either facet or child) in the view while preserving any contextual state for that component instance in the view.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinvokeContextCallback(FacesContext context, UIComponent target)This method will be called by an implementation ofUIComponent.invokeOnComponent(jakarta.faces.context.FacesContext, java.lang.String, jakarta.faces.component.ContextCallback)and must be passed the component with theclientIdgiven as an argument toinvokeOnComponent.
-
-
-
Method Detail
-
invokeContextCallback
void invokeContextCallback(FacesContext context, UIComponent target)
This method will be called by an implementation of
UIComponent.invokeOnComponent(jakarta.faces.context.FacesContext, java.lang.String, jakarta.faces.component.ContextCallback)and must be passed the component with theclientIdgiven as an argument toinvokeOnComponent. At the point in time when this method is called, the argumenttargetis guaranteed to be in the proper state with respect to its ancestors in the View.- Parameters:
context- theFacesContextfor this request.target- theUIComponentthat was located byclientIdby a call toUIComponent.invokeOnComponent(jakarta.faces.context.FacesContext, java.lang.String, jakarta.faces.component.ContextCallback).
-
-