|
||||||||||
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 RequestContext
name
- name of the parameter.public void execute(String script)
RequestContext
execute
in class RequestContext
script
- Javascript statement to execute.public Map<String,Object> getCallbackParams()
getCallbackParams
in class RequestContext
public List<String> getScriptsToExecute()
getScriptsToExecute
in class RequestContext
public WidgetBuilder getWidgetBuilder()
getWidgetBuilder
in class RequestContext
public AjaxRequestBuilder getAjaxRequestBuilder()
getAjaxRequestBuilder
in class RequestContext
public CSVBuilder getCSVBuilder()
getCSVBuilder
in class RequestContext
public void scrollTo(String clientId)
RequestContext
scrollTo
in class RequestContext
clientId
- Client side identifier of the component.public void update(String clientId)
RequestContext
update
in class RequestContext
clientId
- Client side identifier of the component.public void update(Collection<String> collection)
RequestContext
update
in class RequestContext
collection
- Client side identifiers of the components.public void reset(Collection<String> expressions)
RequestContext
reset
in class RequestContext
expressions
- A list with with one or multiple search expression to resolve the components.public void reset(String expressions)
RequestContext
reset
in class RequestContext
expressions
- A string with one or multiple search expression to resolve the components.public void openDialog(String outcome)
RequestContext
openDialog
in class RequestContext
outcome
- 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 RequestContext
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 void closeDialog(Object data)
RequestContext
closeDialog
in class RequestContext
data
- Optional data to pass back to a dialogReturn event.public void showMessageInDialog(javax.faces.application.FacesMessage message)
RequestContext
showMessageInDialog
in class RequestContext
message
- FacesMessage to be displayed.public void release()
RequestContext
release
in class RequestContext
public Map<Object,Object> getAttributes()
getAttributes
in class RequestContext
public ApplicationContext getApplicationContext()
getApplicationContext
in class RequestContext
public StringEncrypter getEncrypter()
getEncrypter
in class RequestContext
public boolean isSecure()
RequestContext
isSecure
in class RequestContext
public boolean isIgnoreAutoUpdate()
isIgnoreAutoUpdate
in class RequestContext
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 |