public class PrimeFaces extends Object
Modifier and Type | Class and Description |
---|---|
class |
PrimeFaces.Ajax |
class |
PrimeFaces.Dialog |
class |
PrimeFaces.MultiViewState |
Modifier | Constructor and Description |
---|---|
protected |
PrimeFaces()
Protected constructor to allow CDI proxying - and also allow customizations, or setting a mock.
|
Modifier and Type | Method and Description |
---|---|
PrimeFaces.Ajax |
ajax() |
void |
clearDataListState(String key)
Deprecated.
Use
PrimeFaces.MultiViewState.clear(String, String) instead |
void |
clearDataListStates()
Deprecated.
Use
PrimeFaces.MultiViewState.clearAll() instead |
void |
clearTableState(String key)
Deprecated.
Use
PrimeFaces.MultiViewState.clear(String, String) instead |
void |
clearTableStates()
Deprecated.
Use
PrimeFaces.MultiViewState.clearAll() instead |
static PrimeFaces |
current() |
PrimeFaces.Dialog |
dialog()
Returns the dialog helpers.
|
void |
executeInitScript(String statement)
Executes a JavaScript statement before all other PrimeFaces scripts are executed.
|
void |
executeScript(String statement)
Executes a JavaScript statement.
|
void |
focus(String expression)
Resolves the search expression, starting from the viewroot, and focus the resolved component.
|
void |
focus(String expression,
javax.faces.component.UIComponent base)
Resolves the search expression and focus the resolved component.
|
protected javax.faces.context.FacesContext |
getFacesContext() |
protected PrimeRequestContext |
getRequestContext() |
boolean |
isAjaxRequest()
Shortcut for
PartialViewContext.isAjaxRequest() . |
PrimeFaces.MultiViewState |
multiViewState()
Returns the MultiViewState helpers.
|
void |
resetInputs(Collection<String> expressions)
Resolves the search expressions, starting from the viewroot and resets all found
UIInput components. |
void |
resetInputs(String... expressions)
Resolves the search expressions, starting from the viewroot and resets all found
UIInput components. |
void |
scrollTo(String clientId)
Scrolls to a component with the given clientId.
|
static void |
setCurrent(PrimeFaces primeFaces) |
protected PrimeFaces()
public static PrimeFaces current()
public static void setCurrent(PrimeFaces primeFaces)
protected javax.faces.context.FacesContext getFacesContext()
protected PrimeRequestContext getRequestContext()
public boolean isAjaxRequest()
PartialViewContext.isAjaxRequest()
.true
if the current request is a AJAX request.public void executeInitScript(String statement)
statement
- the JavaScript statement.public void executeScript(String statement)
statement
- the JavaScript statement.public void scrollTo(String clientId)
clientId
- clientId of the target component.public void focus(String expression)
expression
- The search expression.public void focus(String expression, javax.faces.component.UIComponent base)
expression
- the search expression.base
- the base component from which we will start to resolve the search expression.public void resetInputs(Collection<String> expressions)
UIInput
components.expressions
- a list of search expressions.public void resetInputs(String... expressions)
UIInput
components.expressions
- a list of search expressions.@Deprecated public void clearTableStates()
PrimeFaces.MultiViewState.clearAll()
instead@Deprecated public void clearTableState(String key)
PrimeFaces.MultiViewState.clear(String, String)
insteadkey
- Key of the DataTable. See DataTable.getMultiViewState(boolean)
for the namebuild of this key.@Deprecated public void clearDataListStates()
PrimeFaces.MultiViewState.clearAll()
instead@Deprecated public void clearDataListState(String key)
PrimeFaces.MultiViewState.clear(String, String)
insteadkey
- Key of the DataList. See DataList.getMultiViewState(boolean)
} for the namebuild of this key.public PrimeFaces.Dialog dialog()
public PrimeFaces.Ajax ajax()
public PrimeFaces.MultiViewState multiViewState()
Copyright © 2020. All rights reserved.