|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.shared_tomahawk.renderkit.RendererUtils
public final class RendererUtils
Field Summary | |
---|---|
static java.lang.String |
ACTION_FOR_LIST
|
static java.lang.String |
ACTION_FOR_PHASE_LIST
|
static java.lang.String |
EMPTY_STRING
|
static java.lang.Object |
NOTHING
|
static java.lang.String |
SELECT_ITEM_LIST_ATTR
|
Method Summary | |
---|---|
static void |
addOrReplaceChild(javax.faces.component.UIInput component,
javax.faces.component.UIComponent child)
|
static void |
checkParamValidity(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
java.lang.Class compClass)
|
static java.util.List |
convertIdsToClientIds(java.lang.String actionFor,
javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
static java.util.List |
convertPhasesToPhasesIds(java.lang.String actionForPhase)
|
static void |
copyHtmlInputTextAttributes(javax.faces.component.html.HtmlInputText src,
javax.faces.component.html.HtmlInputText dest)
|
static javax.faces.component.UIComponent |
findComponent(javax.faces.component.UIComponent headerComp,
java.lang.Class clazz)
|
static FormInfo |
findNestingForm(javax.faces.component.UIComponent uiComponent,
javax.faces.context.FacesContext facesContext)
Find the enclosing form of a component in the view-tree. |
static javax.faces.convert.Converter |
findUIOutputConverter(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIOutput component)
Find the proper Converter for the given UIOutput component. |
static javax.faces.convert.Converter |
findUISelectManyConverter(javax.faces.context.FacesContext facesContext,
javax.faces.component.UISelectMany component)
Find proper Converter for the entries in the associated List or Array of the given UISelectMany as specified in API Doc of UISelectMany. |
static boolean |
getBooleanAttribute(javax.faces.component.UIComponent component,
java.lang.String attrName,
boolean defaultValue)
|
static boolean |
getBooleanValue(java.lang.String attribute,
java.lang.Object value,
boolean defaultValue)
|
static java.lang.Boolean |
getBooleanValue(javax.faces.component.UIComponent component)
|
static java.lang.String |
getClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
java.lang.String forAttr)
|
static java.lang.String |
getConcatenatedId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
static java.lang.String |
getConcatenatedId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent container,
java.lang.String clientId)
|
static java.lang.String |
getConvertedStringValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.convert.Converter converter,
java.lang.Object value)
Convenient utility method that returns the currently given value as String, using the given converter. |
static java.lang.String |
getConvertedStringValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.convert.Converter converter,
javax.faces.model.SelectItem selectItem)
Convenient utility method that returns the currently given SelectItem value as String, using the given converter. |
static java.lang.Object |
getConvertedUIOutputValue(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIOutput output,
java.lang.Object submittedValue)
|
static java.lang.Object |
getConvertedUISelectManyValue(javax.faces.context.FacesContext facesContext,
javax.faces.component.UISelectMany selectMany,
java.lang.Object submittedValue)
|
static java.util.Date |
getDateValue(javax.faces.component.UIComponent component)
|
static int |
getIntegerAttribute(javax.faces.component.UIComponent component,
java.lang.String attrName,
int defaultValue)
|
static java.lang.Object |
getObjectValue(javax.faces.component.UIComponent component)
|
static java.lang.String |
getPathToComponent(javax.faces.component.UIComponent component)
|
static java.util.Set |
getSelectedValuesAsSet(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.convert.Converter converter,
javax.faces.component.UISelectMany uiSelectMany)
Convenient utility method that returns the currently selected values of a UISelectMany component as a Set, of which the contains method can then be easily used to determine if a value is currently selected. |
static java.util.List |
getSelectItemList(javax.faces.component.UISelectMany uiSelectMany)
|
static java.util.List |
getSelectItemList(javax.faces.component.UISelectOne uiSelectOne)
|
static java.lang.String |
getStringValue(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
static java.lang.String |
getStringValue(javax.faces.context.FacesContext context,
javax.faces.el.ValueBinding vb)
|
static java.util.Set |
getSubmittedValuesAsSet(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.convert.Converter converter,
javax.faces.component.UISelectMany uiSelectMany)
Convenient utility method that returns the currently submitted values of a UISelectMany component as a Set, of which the contains method can then be easily used to determine if a select item is currently selected. |
static void |
initPartialValidationAndModelUpdate(javax.faces.component.UIComponent component,
javax.faces.context.FacesContext facesContext)
check for partial validation or model update attributes being set and initialize the request-map accordingly. |
static boolean |
isAdfOrTrinidadForm(javax.faces.component.UIComponent component)
|
static boolean |
isDefaultAttributeValue(java.lang.Object value)
See JSF Spec. |
static java.lang.String |
loadResourceFile(javax.faces.context.FacesContext ctx,
java.lang.String file)
Helper method which loads a resource file (such as css) by a given context path and a file name. |
static void |
renderChild(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent child)
|
static void |
renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SELECT_ITEM_LIST_ATTR
public static final java.lang.String EMPTY_STRING
public static final java.lang.Object NOTHING
public static final java.lang.String ACTION_FOR_LIST
public static final java.lang.String ACTION_FOR_PHASE_LIST
Method Detail |
---|
public static java.lang.String getPathToComponent(javax.faces.component.UIComponent component)
public static java.lang.String getConcatenatedId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent container, java.lang.String clientId)
public static java.lang.String getConcatenatedId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
public static java.lang.Boolean getBooleanValue(javax.faces.component.UIComponent component)
public static java.util.Date getDateValue(javax.faces.component.UIComponent component)
public static java.lang.Object getObjectValue(javax.faces.component.UIComponent component)
public static java.lang.String getStringValue(javax.faces.context.FacesContext context, javax.faces.el.ValueBinding vb)
public static java.lang.String getStringValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
public static boolean isDefaultAttributeValue(java.lang.Object value)
value
-
public static javax.faces.convert.Converter findUIOutputConverter(javax.faces.context.FacesContext facesContext, javax.faces.component.UIOutput component) throws javax.faces.FacesException
javax.faces.FacesException
- if the Converter could not be createdpublic static javax.faces.convert.Converter findUISelectManyConverter(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany component)
javax.faces.FacesException
- if the Converter could not be createdpublic static void checkParamValidity(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Class compClass)
public static void renderChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws java.io.IOException
java.io.IOException
public static void renderChild(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent child) throws java.io.IOException
java.io.IOException
public static java.util.List getSelectItemList(javax.faces.component.UISelectOne uiSelectOne)
uiSelectOne
-
public static java.util.List getSelectItemList(javax.faces.component.UISelectMany uiSelectMany)
uiSelectMany
-
public static java.util.Set getSubmittedValuesAsSet(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.convert.Converter converter, javax.faces.component.UISelectMany uiSelectMany)
uiSelectMany
-
public static java.util.Set getSelectedValuesAsSet(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.convert.Converter converter, javax.faces.component.UISelectMany uiSelectMany)
uiSelectMany
-
public static java.lang.String getConvertedStringValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.convert.Converter converter, java.lang.Object value)
public static java.lang.String getConvertedStringValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.convert.Converter converter, javax.faces.model.SelectItem selectItem)
public static java.lang.Object getConvertedUIOutputValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UIOutput output, java.lang.Object submittedValue) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public static java.lang.Object getConvertedUISelectManyValue(javax.faces.context.FacesContext facesContext, javax.faces.component.UISelectMany selectMany, java.lang.Object submittedValue) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public static boolean getBooleanAttribute(javax.faces.component.UIComponent component, java.lang.String attrName, boolean defaultValue)
public static int getIntegerAttribute(javax.faces.component.UIComponent component, java.lang.String attrName, int defaultValue)
public static FormInfo findNestingForm(javax.faces.component.UIComponent uiComponent, javax.faces.context.FacesContext facesContext)
UIForm
and all known
form-families are searched for.
Currently those are the Trinidad form family,
and the (old) ADF Faces form family.
There might be additional form families
which have to be explicitly entered here.
uiComponent
- facesContext
-
public static boolean getBooleanValue(java.lang.String attribute, java.lang.Object value, boolean defaultValue)
public static void copyHtmlInputTextAttributes(javax.faces.component.html.HtmlInputText src, javax.faces.component.html.HtmlInputText dest)
public static javax.faces.component.UIComponent findComponent(javax.faces.component.UIComponent headerComp, java.lang.Class clazz)
public static void addOrReplaceChild(javax.faces.component.UIInput component, javax.faces.component.UIComponent child)
public static java.lang.String getClientId(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.String forAttr)
public static java.util.List convertIdsToClientIds(java.lang.String actionFor, javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
public static java.util.List convertPhasesToPhasesIds(java.lang.String actionForPhase)
public static java.lang.String loadResourceFile(javax.faces.context.FacesContext ctx, java.lang.String file)
ctx
- FacesContext
object to calculate the context path of the web application.file
- name of the resource file (e.g. foo.css
).
null
if no such file is available.public static void initPartialValidationAndModelUpdate(javax.faces.component.UIComponent component, javax.faces.context.FacesContext facesContext)
public static boolean isAdfOrTrinidadForm(javax.faces.component.UIComponent component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |