Package javax.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
Modifier and TypeMethodDescriptionvoid
invokeContextCallback
(FacesContext context, UIComponent target) This method will be called by an implementation ofUIComponent.invokeOnComponent(javax.faces.context.FacesContext, java.lang.String, javax.faces.component.ContextCallback)
and must be passed the component with theclientId
given as an argument toinvokeOnComponent
.
-
Method Details
-
invokeContextCallback
This method will be called by an implementation of
UIComponent.invokeOnComponent(javax.faces.context.FacesContext, java.lang.String, javax.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(javax.faces.context.FacesContext, java.lang.String, javax.faces.component.ContextCallback)
.
-