java.lang.Object
org.omnifaces.util.AjaxLocal
Collection of utility methods for the Faces API with respect to working with PartialViewContext.
The difference with Ajax is that no one method of AjaxLocal obtains the FacesContext
from the current thread by FacesContext.getCurrentInstance(). This job is up to the caller. This is more
efficient in situations where multiple utility methods needs to be called at the same time. Invoking
FacesContext.getCurrentInstance() is at its own an extremely cheap operation, however as it's to be obtained
as a ThreadLocal variable, it's during the call still blocking all other running threads for some nanoseconds
or so.
- Since:
- 4.6
- Author:
- Bauke Scholtz
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddata(FacesContext context, Object... namesValues) static voiddata(FacesContext context, String name, Object value) static voiddata(FacesContext context, Map<String, Object> data) static PartialViewContextgetContext(FacesContext context) static booleanisExecuted(FacesContext context, String clientId) static voidload(FacesContext context, String libraryName, String resourceName) static voidoncomplete(FacesContext context, String... scripts) static voidupdate(FacesContext context, String... clientIds) static voidupdateAll(FacesContext context) static voidupdateColumn(FacesContext context, UIData table, int index) static voidupdateRow(FacesContext context, UIData table, int index)
-
Method Details
-
getContext
- See Also:
-
update
- See Also:
-
updateAll
- See Also:
-
updateRow
- See Also:
-
updateColumn
- See Also:
-
load
- See Also:
-
oncomplete
- See Also:
-
data
- See Also:
-
data
- See Also:
-
data
- See Also:
-
isExecuted
- See Also:
-