Method Summary |
|
public static UIComponent | addChildComponent(UIComponent parent, String componentType) Add a child component of the given type to the parent component. |
public static void | addMessage(FacesMessage message) |
public static List<SelectItem> | asIdSelectList(List<? extends SelectableObjectWithName> items) Convert a list of SelectableObjects to JSF SelectItems. |
public static List<SelectItem> | asIdSelectListWithLabel(List<? extends SelectableObjectWithLabel> items) Convert a list of SelectableObjectWithLabels to JSF SelectItems. |
public static List<SelectItem> | asSelectList(List<? extends SelectableObjectWithName> items, boolean addEmptyElement) Convert a list of SelectableObjects to JSF SelectItems. |
public static List<SelectItem> | asSelectList(FxSelectList list) Converts the given flexive select list to a list of JSF SelectItems. |
public static List<SelectItem> | asSelectList(List<String[]> list) Converts a list of String arrays (2 dim, containing value and display) to a list of JSF SelectItems. |
public static List<SelectItem> | asSelectListWithLabel(List<? extends SelectableObjectWithLabel> items) Convert a list of SelectableObjectsWithLabel to JSF SelectItems. |
public static List<SelectItem> | asSelectListWithLabel(List<? extends SelectableObjectWithLabel> items, boolean addEmptyElement) Convert a list of SelectableObjectsWithLabel to JSF SelectItems. |
public static void | checkMultiplicity(int min, int max) |
public static void | clearAllMessages(String clientId) Clears all faces messages (optional: for the given client id). |
public static UIComponent | createComponent(String componentType) Create a new component of the given type.
Parameters: componentType - the component type, e.g. |
public static String | decodeJSFIdentifier(String identifier) |
public static String | encodeJSFIdentifier(String identifier) |
public static List<SelectItem> | enumsAsSelectList(T[] values) Convert the values of an enum to a select list. |
public static Integer | evalInt(String el) Evaluate the integer value of a JSF expression. |
public static Object | evalObject(String el) Evaluate the value of a JSF expression. |
public static String | evalString(String el) Evaluate the string value of a JSF expression. |
public static T | findAncestor(UIComponent component, Class<T> cls) Find a parent of the given class. |
public static T | findChild(UIComponent component, Class<T> childType) Recursively search for the first child of the given class type for the component. |
public static Application | getApplication() |
public static boolean | getBooleanParameter(String name, boolean defaultValue) |
public static boolean | getBooleanParameter(String name) |
public static ArrayList<FxFacesMessage> | getFxMessages() |
public static List<FxFacesMessages> | getGroupedFxMessages() Gets all faces messages grouped by a equal summary and wrapped as
FxFacesMessage (which gives access to the clientId). |
public static long | getId(String parameterName) Gets the id of the given parameter name. |
public static int | getIntParameter(String name, int defaultValue) |
public static int | getIntParameter(String name) |
public static String | getJsonServletUri() |
public static String | getLocalizedMessage(String messageKey, Object... args) Return the localized message for the given key and replace all parameters with the given args. |
public static long | getLongParameter(String name, long defaultValue) |
public static long | getLongParameter(String name) |
public static Object | getManagedBean(String beanName) Get managed beans based on the beans name. |
public static T | getManagedBean(Class<T> beanClass) Returns the managed beans of the given class. |
public static ArrayList<FacesMessage> | getMessages(String clientId) Gets all faces messages (optional: for the given client id).
Parameters: clientId - the client id to work on, or null to remove all messages. |
public static String | getParameter(String name) |
public static FxRequest | getRequest() Gets the request from the faces context. |
public static String | getRequestParameter(String name) Get parameter value from request scope. |
public static FxResponseWrapper | getResponse() Gets the response from the faces context. |
public static ServletContext | getServletContext() Returns the servlet context. |
public static HttpSession | getSession() Gets the session from the faces context. |
public static Object | getSessionAttribute(String key) |
public static boolean | hasParameter(String name) |
public static boolean | isAjaxRequest() Return true if the current request has been submitted via Ajax4JSF. |
public static boolean | isValueReference(String value) Source: SHALE-305.
Return true if the specified string contains an EL expression. |
public static void | removeSessionAttribute(String key) |
public static void | replaceManagedBean(String beanName, Object bean) Replace the managed beans based on the beans name. |
public static void | resetFaceletsComponent(String componentId) Workaround for facelets component tree update problems - deletes
the given component and its children so they can be recreated
when the component tree is rendered again
Parameters: componentId - the complete component ID, e.g. |
public static void | resetManagedBean(String beanName) Remove the managed beans based on the beans name. |
public static void | setManagedBeanInSession(String beanName, Object managedBean) Store the managed beans inside the session scope. |
public static void | setSessionAttribute(String key, Object value) |