|
||||||||||
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 |
closeDialog(Object data)
Close a dialog. |
abstract void |
execute(String script)
Execute a javascript after current ajax request is completed. |
abstract AjaxRequestBuilder |
getAjaxRequestBuilder()
|
abstract ApplicationContext |
getApplicationContext()
|
abstract Map<Object,Object> |
getAttributes()
|
abstract Map<String,Object> |
getCallbackParams()
|
abstract CSVBuilder |
getCSVBuilder()
|
static RequestContext |
getCurrentInstance()
|
abstract StringEncrypter |
getEncrypter()
|
abstract List<String> |
getScriptsToExecute()
|
abstract WidgetBuilder |
getWidgetBuilder()
|
abstract boolean |
isAjaxRequest()
|
abstract boolean |
isIgnoreAutoUpdate()
|
abstract boolean |
isSecure()
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
abstract void |
openDialog(String outcome)
Open a view in dialog. |
abstract void |
openDialog(String outcome,
Map<String,Object> options,
Map<String,List<String>> params)
Open a view in dialog. |
abstract void |
release()
Clear resources. |
abstract void |
reset(Collection<String> expressions)
Reset a collection of editableValueHolders. |
abstract void |
reset(String expressions)
Reset an editableValueHolder. |
abstract void |
scrollTo(String clientId)
Scroll to a component after ajax request is completed. |
static void |
setCurrentInstance(RequestContext context)
|
abstract void |
showMessageInDialog(javax.faces.application.FacesMessage message)
Displays a message in a dialog. |
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 static void setCurrentInstance(RequestContext context)
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 expressions)
expressions
- A string with one or multiple search expression to resolve the components.public abstract void reset(Collection<String> expressions)
expressions
- A list with with one or multiple search expression to resolve the components.public abstract WidgetBuilder getWidgetBuilder()
public abstract AjaxRequestBuilder getAjaxRequestBuilder()
public abstract CSVBuilder getCSVBuilder()
public abstract Map<Object,Object> getAttributes()
public abstract void openDialog(String outcome)
outcome
- The logical outcome used to resolve a navigation case.public abstract void openDialog(String outcome, Map<String,Object> options, Map<String,List<String>> params)
outcome
- The logical outcome used to resolve a navigation case.options
- Configuration options for the dialog.params
- Parameters to send to the view displayed in a dialog.public abstract void closeDialog(Object data)
data
- Optional data to pass back to a dialogReturn event.public abstract void showMessageInDialog(javax.faces.application.FacesMessage message)
message
- FacesMessage to be displayed.public abstract ApplicationContext getApplicationContext()
public abstract StringEncrypter getEncrypter()
public abstract void release()
public abstract boolean isSecure()
public abstract boolean isIgnoreAutoUpdate()
true
if AutoUpdatable
components should not be updated automatically in this request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |