Package jakarta.faces.component
Interface ContextCallback
-
public interface ContextCallback
A 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 void
invokeContextCallback(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 theclientId
given 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 theclientId
given as an argument toinvokeOnComponent
. At the point in time when this method is called, the argumenttarget
is guaranteed to be in the proper state with respect to its ancestors in the View.- Parameters:
context
- theFacesContext
for this request.target
- theUIComponent
that was located byclientId
by a call toUIComponent.invokeOnComponent(jakarta.faces.context.FacesContext, java.lang.String, jakarta.faces.component.ContextCallback)
.
-
-