public class SharedRendererUtils extends Object
| Constructor and Description | 
|---|
| SharedRendererUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Converter | findUIOutputConverter(FacesContext facesContext,
                     UIOutput component) | 
| static Class<?> | getClassFromAttribute(FacesContext facesContext,
                     Object attribute)Gets a Class object from a given component attribute. | 
| static Object | getConvertedUISelectManyValue(FacesContext facesContext,
                             UISelectMany component,
                             String[] submittedValue) | 
| static Object | getConvertedUISelectManyValue(FacesContext facesContext,
                             UISelectMany component,
                             String[] submittedValue,
                             boolean considerValueType)Gets the converted value of a UISelectMany component. | 
| static Converter | getSelectItemsValueConverter(Iterator<SelectItem> iterator,
                            FacesContext facesContext)Iterates through the SelectItems with the given Iterator and tries to obtain
 a by-class-converter based on the Class of SelectItem.getValue(). | 
| static Converter | getValueTypeConverter(FacesContext facesContext,
                     UISelectMany component)Uses the valueType attribute of the given UISelectMany component to
 get a by-type converter. | 
public static Converter findUIOutputConverter(FacesContext facesContext, UIOutput component)
public static Object getConvertedUISelectManyValue(FacesContext facesContext, UISelectMany component, String[] submittedValue) throws ConverterException
ConverterExceptionpublic static Object getConvertedUISelectManyValue(FacesContext facesContext, UISelectMany component, String[] submittedValue, boolean considerValueType) throws ConverterException
facesContext - component - submittedValue - considerValueType - ConverterExceptionpublic static Class<?> getClassFromAttribute(FacesContext facesContext, Object attribute) throws FacesException
facesContext - attribute - FacesException - if the value is a String and the represented
                        class cannot be foundpublic static Converter getValueTypeConverter(FacesContext facesContext, UISelectMany component)
facesContext - component - public static Converter getSelectItemsValueConverter(Iterator<SelectItem> iterator, FacesContext facesContext)
iterator - facesContext - Copyright © 2022 The Apache Software Foundation. All rights reserved.