public abstract class RequestContext extends Object
RequestContext.getCurrentInstance();
Modifier and Type | Field and Description |
---|---|
static String |
INSTANCE_KEY |
Constructor and Description |
---|
RequestContext() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addCallbackParam(String name,
Object value)
Add a parameter for ajax oncomplete client side callbacks.
|
abstract void |
clearTableState(String clientId) |
abstract void |
clearTableStates() |
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 |
isRTL() |
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.
|
static void |
releaseThreadLocalCache() |
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,
javax.faces.context.FacesContext facesContext) |
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.
|
public static final String INSTANCE_KEY
public static RequestContext getCurrentInstance()
public static void setCurrentInstance(RequestContext context, javax.faces.context.FacesContext facesContext)
public static void releaseThreadLocalCache()
public abstract boolean isAjaxRequest()
public abstract void addCallbackParam(String name, Object value)
name
- name of the parameter.value
- 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.public abstract boolean isRTL()
public abstract void clearTableStates()
public abstract void clearTableState(String clientId)
Copyright © 2017. All rights reserved.