|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.primefaces.context.RequestContext
org.primefaces.context.DefaultRequestContext
public class DefaultRequestContext
| Constructor Summary | |
|---|---|
DefaultRequestContext(javax.faces.context.FacesContext context)
|
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class org.primefaces.context.RequestContext |
|---|
getCurrentInstance, setCurrentInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRequestContext(javax.faces.context.FacesContext context)
| Method Detail |
|---|
public boolean isAjaxRequest()
isAjaxRequest in class RequestContext
public void addCallbackParam(String name,
Object value)
RequestContext
addCallbackParam in class RequestContextname - name of the parameter.public void execute(String script)
RequestContext
execute 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)
RequestContext
scrollTo in class RequestContextclientId - Client side identifier of the component.public void update(String clientId)
RequestContext
update in class RequestContextclientId - Client side identifier of the component.public void update(Collection<String> collection)
RequestContext
update in class RequestContextcollection - Client side identifiers of the components.public void reset(Collection<String> expressions)
RequestContext
reset in class RequestContextexpressions - A list with with one or multiple search expression to resolve the components.public void reset(String expressions)
RequestContext
reset in class RequestContextexpressions - A string with one or multiple search expression to resolve the components.public void openDialog(String outcome)
RequestContext
openDialog 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)
RequestContext
openDialog 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)
RequestContext
closeDialog in class RequestContextdata - Optional data to pass back to a dialogReturn event.public void showMessageInDialog(javax.faces.application.FacesMessage message)
RequestContext
showMessageInDialog in class RequestContextmessage - FacesMessage to be displayed.public void release()
RequestContext
release 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()
RequestContext
isSecure in class RequestContextpublic boolean isIgnoreAutoUpdate()
isIgnoreAutoUpdate in class RequestContexttrue 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 | |||||||||