|
ICEfaces ACE Components 3.3.0 Java API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.icefaces.ace.util.ComponentUtils
public class ComponentUtils
Constructor Summary | |
---|---|
ComponentUtils()
|
Method Summary | |
---|---|
static java.util.List<javax.faces.model.SelectItem> |
createSelectItems(javax.faces.component.UIComponent component)
|
static void |
decorateAttribute(javax.faces.component.UIComponent component,
java.lang.String attribute,
java.lang.String value)
|
static java.lang.String |
encodeNameSpace(javax.faces.context.FacesContext fc,
java.lang.String id)
Environments like portlets need to namespace the components in order to uniquely identify them on the page in case there are multiple instances of the same portlet or different portlets that use the same ids. |
static java.lang.String |
escapeJQueryId(java.lang.String id)
|
static java.lang.String |
findClientIds(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String list)
|
static javax.faces.component.UIComponent |
findComponent(javax.faces.component.UIComponent base,
java.lang.String id)
|
static java.lang.String |
findComponentClientId(java.lang.String id)
|
static javax.faces.component.UIComponent |
findParentForm(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
static java.lang.String |
getStringValueToRender(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
Algorithm works as follows; - If it's an input component, submitted value is checked first since it'd be the value to be used in case validation errors terminates jsf lifecycle - Finally the value of the component is retrieved from backing bean and if there's a converter, converted value is returned - If the component is not a value holder, toString of component is used to support Facelets UIInstructions. |
static java.lang.String |
getStringValueToRender(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
java.lang.Object value)
Resolves the end text to render by using a specified value |
static java.lang.String |
getWidgetVar(java.lang.String id)
|
static boolean |
isLiteralText(javax.faces.component.UIComponent component)
|
static java.lang.String |
resolveField(javax.el.ValueExpression expression)
Attempts to return the property accessed in a simple EL expression of the form ${someObject.property}. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentUtils()
Method Detail |
---|
public static java.lang.String getStringValueToRender(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
facesContext
- FacesContext instancecomponent
- UIComponent instance whose value will be returned
public static java.lang.String resolveField(javax.el.ValueExpression expression)
expression
- An EL expression to parse the property from.
public static java.lang.String getStringValueToRender(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, java.lang.Object value)
facesContext
- FacesContext instancecomponent
- UIComponent instance whose value will be returned
public static javax.faces.component.UIComponent findParentForm(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
public static void decorateAttribute(javax.faces.component.UIComponent component, java.lang.String attribute, java.lang.String value)
public static java.util.List<javax.faces.model.SelectItem> createSelectItems(javax.faces.component.UIComponent component)
public static java.lang.String escapeJQueryId(java.lang.String id)
public static java.lang.String findClientIds(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String list)
public static java.lang.String encodeNameSpace(javax.faces.context.FacesContext fc, java.lang.String id)
fc
- The current FacesContext instanceid
- The id to encode
public static java.lang.String findComponentClientId(java.lang.String id)
public static javax.faces.component.UIComponent findComponent(javax.faces.component.UIComponent base, java.lang.String id)
public static java.lang.String getWidgetVar(java.lang.String id)
public static boolean isLiteralText(javax.faces.component.UIComponent component)
|
ICEfaces ACE Components 3.3.0 Java API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |