| java.lang.Object com.icesoft.faces.component.util.CustomComponentUtils
CustomComponentUtils | public class CustomComponentUtils (Code) | | |
Method Summary | |
public static void | addHiddenCommandParameter(UIComponent form, String paramName) | public static Class | classForName(String type) Tries a Class.forName with the context class loader of the current thread
first and automatically falls back to the ClassUtils class loader (i.e. | public static void | copyHtmlInputTextAttributes(HtmlInputText src, HtmlInputText dest) | public static void | decodeUIInput(FacesContext facesContext, UIComponent component) | public static Date | getDateValue(UIComponent component) | public static String | getFormName(UIComponent component, FacesContext context) | public static String | getHiddenCommandLinkFieldName(String formName) | public static String | getHiddenTreeActionFieldName(String componentId, String formName) | public static String | getHiddenTreeExpandFieldName(String componentId, String formName) | public static String | getPathToComponent(UIComponent component) | public static String | getStringValue(FacesContext facesContext, UIComponent component) | public static boolean | isDisabledOrReadOnly(UIComponent component) | public static boolean | isEnabledOnUserRole(UIComponent component) Gets the comma separated list of enabling user roles from the given
component and checks if current user is in one of these roles. | public static boolean | isVisibleOnUserRole(UIComponent component) Gets the comma separated list of visibility user roles from the given
component and checks if current user is in one of these roles. | public static Object | newInstance(Class clazz) | public static Object | newInstance(String type) | public static void | renderChild(FacesContext facesContext, UIComponent child) | public static void | renderChildren(FacesContext facesContext, UIComponent component) | public static void | restoreAncestorState(UIComponent uiComponent) | public static void | restoreDescendentState(UIComponent uiComponent) | public static Class | simpleClassForName(String type) Same as
CustomComponentUtils.classForName(String) , but throws a RuntimeException
(FacesException) instead of a ClassNotFoundException. | public static String[] | splitShortString(String str, char separator) Split a string into an array of strings arround a character separator. | public static String | substring(String str, int begin, int end) | public static String[] | trim(String[] strings) |
EMPTY_STRING_ARRAY | final public static String[] EMPTY_STRING_ARRAY(Code) | | |
FOOTER_CLASS_ATTR | final public static String FOOTER_CLASS_ATTR(Code) | | |
HEADER_CLASS_ATTR | final public static String HEADER_CLASS_ATTR(Code) | | |
HIDDEN_COMMANDLINK_FIELD_NAME | final public static String HIDDEN_COMMANDLINK_FIELD_NAME(Code) | | |
addHiddenCommandParameter | public static void addHiddenCommandParameter(UIComponent form, String paramName)(Code) | | |
classForName | public static Class classForName(String type) throws ClassNotFoundException(Code) | | Tries a Class.forName with the context class loader of the current thread
first and automatically falls back to the ClassUtils class loader (i.e.
the loader of the myfaces.jar lib) if necessary.
Parameters: type - fully qualified name of a non-primitive non-array class the corresponding Class throws: NullPointerException - if type is null throws: ClassNotFoundException - |
copyHtmlInputTextAttributes | public static void copyHtmlInputTextAttributes(HtmlInputText src, HtmlInputText dest)(Code) | | |
decodeUIInput | public static void decodeUIInput(FacesContext facesContext, UIComponent component)(Code) | | |
getDateValue | public static Date getDateValue(UIComponent component)(Code) | | |
getFormName | public static String getFormName(UIComponent component, FacesContext context)(Code) | | |
getHiddenCommandLinkFieldName | public static String getHiddenCommandLinkFieldName(String formName)(Code) | | |
getHiddenTreeActionFieldName | public static String getHiddenTreeActionFieldName(String componentId, String formName)(Code) | | |
getHiddenTreeExpandFieldName | public static String getHiddenTreeExpandFieldName(String componentId, String formName)(Code) | | |
getPathToComponent | public static String getPathToComponent(UIComponent component)(Code) | | |
getStringValue | public static String getStringValue(FacesContext facesContext, UIComponent component)(Code) | | |
isDisabledOrReadOnly | public static boolean isDisabledOrReadOnly(UIComponent component)(Code) | | |
isEnabledOnUserRole | public static boolean isEnabledOnUserRole(UIComponent component)(Code) | | Gets the comma separated list of enabling user roles from the given
component and checks if current user is in one of these roles.
Parameters: component - a user role aware component true if no user roles are defined for this component or user isin one of these roles, false otherwise |
isVisibleOnUserRole | public static boolean isVisibleOnUserRole(UIComponent component)(Code) | | Gets the comma separated list of visibility user roles from the given
component and checks if current user is in one of these roles.
Parameters: component - a user role aware component true if no user roles are defined for this component or user isin one of these roles, false otherwise |
renderChild | public static void renderChild(FacesContext facesContext, UIComponent child) throws IOException(Code) | | |
renderChildren | public static void renderChildren(FacesContext facesContext, UIComponent component) throws IOException(Code) | | |
restoreAncestorState | public static void restoreAncestorState(UIComponent uiComponent)(Code) | | |
restoreDescendentState | public static void restoreDescendentState(UIComponent uiComponent)(Code) | | |
splitShortString | public static String[] splitShortString(String str, char separator)(Code) | | Split a string into an array of strings arround a character separator.
This function will be efficient for short strings, for longer strings,
another approach may be better
Parameters: str - the string to be split Parameters: separator - the separator character array of string subparts |
|
|