public class PrimeFaces extends Object
Modifier and Type | Class and Description |
---|---|
class |
PrimeFaces.Ajax |
class |
PrimeFaces.Dialog |
Modifier | Constructor and Description |
---|---|
protected |
PrimeFaces()
protected constructor to allow CDI proxying
|
Modifier and Type | Method and Description |
---|---|
PrimeFaces.Ajax |
ajax() |
void |
clearTableState(String key) |
void |
clearTableStates() |
static PrimeFaces |
current() |
PrimeFaces.Dialog |
dialog()
Returns the dialog helpers.
|
void |
executeScript(String statement)
Executes a JavaScript statement.
|
protected javax.faces.context.FacesContext |
getFacesContext() |
protected RequestContext |
getRequestContext() |
boolean |
isAjaxRequest()
Shortcut for
PartialViewContext.isAjaxRequest() . |
void |
resetInputs(Collection<String> expressions)
Resets the resolved inputs.
|
void |
resetInputs(String... expressions)
Resets the resolved inputs.
|
void |
scrollTo(String clientId)
Scrolls to a component with the given clientId.
|
public static PrimeFaces current()
protected javax.faces.context.FacesContext getFacesContext()
protected RequestContext getRequestContext()
public boolean isAjaxRequest()
PartialViewContext.isAjaxRequest()
.true
if the current request is a AJAX request.public void executeScript(String statement)
statement
- the JavaScript statement.public void scrollTo(String clientId)
clientId
- clientId of the target component.public void resetInputs(Collection<String> expressions)
expressions
- a list of search expressions.public void resetInputs(String... expressions)
expressions
- a list of search expressions.public void clearTableStates()
public void clearTableState(String key)
public PrimeFaces.Dialog dialog()
public PrimeFaces.Ajax ajax()
Copyright © 2018. All rights reserved.