public class DefaultRequestContext extends RequestContext
| Constructor and Description |
|---|
DefaultRequestContext(javax.faces.context.FacesContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallbackParam(String name,
Object value)
Add a parameter for ajax oncomplete client side callbacks.
|
void |
closeDialog(Object data)
Close a dialog.
|
void |
execute(String script)
Execute a javascript after current ajax request is completed.
|
AjaxRequestBuilder |
getAjaxRequestBuilder() |
ApplicationContext |
getApplicationContext() |
Map<Object,Object> |
getAttributes() |
Map<String,Object> |
getCallbackParams() |
CSVBuilder |
getCSVBuilder() |
StringEncrypter |
getEncrypter() |
List<String> |
getScriptsToExecute() |
WidgetBuilder |
getWidgetBuilder() |
boolean |
isAjaxRequest() |
boolean |
isIgnoreAutoUpdate() |
boolean |
isRTL() |
boolean |
isSecure()
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS.
|
void |
openDialog(String outcome)
Open a view in dialog.
|
void |
openDialog(String outcome,
Map<String,Object> options,
Map<String,List<String>> params)
Open a view in dialog.
|
void |
release()
Clear resources.
|
void |
reset(Collection<String> expressions)
Reset a collection of editableValueHolders.
|
void |
reset(String expressions)
Reset an editableValueHolder.
|
void |
scrollTo(String clientId)
Scroll to a component after ajax request is completed.
|
void |
showMessageInDialog(javax.faces.application.FacesMessage message)
Displays a message in a dialog.
|
void |
update(Collection<String> collection)
Update components with ajax.
|
void |
update(String clientId)
Update a component with ajax.
|
getCurrentInstance, releaseThreadLocalCache, setCurrentInstancepublic DefaultRequestContext(javax.faces.context.FacesContext context)
public boolean isAjaxRequest()
isAjaxRequest in class RequestContextpublic void addCallbackParam(String name, Object value)
RequestContextaddCallbackParam in class RequestContextname - name of the parameter.public void execute(String script)
RequestContextexecute in class RequestContextscript - Javascript statement to execute.public Map<String,Object> getCallbackParams()
getCallbackParams in class RequestContextpublic List<String> getScriptsToExecute()
getScriptsToExecute in class RequestContextpublic WidgetBuilder getWidgetBuilder()
getWidgetBuilder in class RequestContextpublic AjaxRequestBuilder getAjaxRequestBuilder()
getAjaxRequestBuilder in class RequestContextpublic CSVBuilder getCSVBuilder()
getCSVBuilder in class RequestContextpublic void scrollTo(String clientId)
RequestContextscrollTo in class RequestContextclientId - Client side identifier of the component.public void update(String clientId)
RequestContextupdate in class RequestContextclientId - Client side identifier of the component.public void update(Collection<String> collection)
RequestContextupdate in class RequestContextcollection - Client side identifiers of the components.public void reset(Collection<String> expressions)
RequestContextreset in class RequestContextexpressions - A list with with one or multiple search expression to resolve the components.public void reset(String expressions)
RequestContextreset in class RequestContextexpressions - A string with one or multiple search expression to resolve the components.public void openDialog(String outcome)
RequestContextopenDialog in class RequestContextoutcome - The logical outcome used to resolve a navigation case.public void openDialog(String outcome, Map<String,Object> options, Map<String,List<String>> params)
RequestContextopenDialog in class RequestContextoutcome - 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 void closeDialog(Object data)
RequestContextcloseDialog in class RequestContextdata - Optional data to pass back to a dialogReturn event.public void showMessageInDialog(javax.faces.application.FacesMessage message)
RequestContextshowMessageInDialog in class RequestContextmessage - FacesMessage to be displayed.public void release()
RequestContextrelease in class RequestContextpublic Map<Object,Object> getAttributes()
getAttributes in class RequestContextpublic ApplicationContext getApplicationContext()
getApplicationContext in class RequestContextpublic StringEncrypter getEncrypter()
getEncrypter in class RequestContextpublic boolean isSecure()
RequestContextisSecure in class RequestContextpublic boolean isIgnoreAutoUpdate()
isIgnoreAutoUpdate in class RequestContexttrue if AutoUpdatable components should not be updated automatically in this request.public boolean isRTL()
isRTL in class RequestContextCopyright © 2015. All rights reserved.