| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.primefaces.context.RequestContext
public abstract class RequestContext
A RequestContext is a helper class consisting of several utilities. RequestContext is thread-safe and scope is same as FacesContext. Current instance can be retrieved as;
RequestContext.getCurrentInstance();
| Constructor Summary | |
|---|---|
| RequestContext() | |
| Method Summary | |
|---|---|
| abstract  void | addCallbackParam(String name,
                 Object value)Add a parameter for ajax oncomplete client side callbacks. | 
| abstract  void | execute(String script)Execute a javascript after current ajax request is completed. | 
| abstract  Map<String,Object> | getCallbackParams() | 
| static RequestContext | getCurrentInstance() | 
| abstract  List<String> | getScriptsToExecute() | 
| abstract  WidgetBuilder | getWidgetBuilder() | 
| abstract  boolean | isAjaxRequest() | 
| abstract  void | reset(Collection<String> ids)Reset a collection of editableValueHolders. | 
| abstract  void | reset(String id)Reset an editableValueHolder. | 
| abstract  void | scrollTo(String clientId)Scroll to a component after ajax request is completed. | 
| abstract  void | update(Collection<String> collection)Update components with ajax. | 
| abstract  void | update(String name)Update a component with ajax. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RequestContext()
| Method Detail | 
|---|
public static RequestContext getCurrentInstance()
public abstract boolean isAjaxRequest()
public abstract void addCallbackParam(String name,
                                      Object value)
name - name of the parameter.object - value of the parameter.public abstract Map<String,Object> getCallbackParams()
public abstract List<String> getScriptsToExecute()
public abstract void execute(String script)
script - Javascript statement to execute.public abstract void scrollTo(String clientId)
clientId - Client side identifier of the component.public abstract void update(String name)
name - Client side identifier of the component.public abstract void update(Collection<String> collection)
collection - Client side identifiers of the components.public abstract void reset(String id)
id - Client side identifier of the component.public abstract void reset(Collection<String> ids)
ids - Client side identifiers of the components.public abstract WidgetBuilder getWidgetBuilder()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||