| com.sun.rave.web.ui.faces.ResultSetPropertyResolver
ResultSetPropertyResolver | public class ResultSetPropertyResolver extends PropertyResolver (Code) | | This custom Property Resolver handles the special case of resolving ResultSet columns into editable
data values. This also enables binding to a SelectItem array from a ResultSet for filling lists
and dropdowns.
These expressions are supported:
#{...myResultSet.currentRow['COLUMN_NAME']}
--> binds to the 'COLUMN_NAME' column of the current row of the ResultSet
#(...myResultSet.selectItems['COLUMN_NAME'])
#(...myResultSet.selectItems['VALUE_COLUMN_NAME,LABEL_COLUMN_NAME'])
#(...myResultSet.selectItems['VALUE_COLUMN_NAME,LABEL_COLUMN_NAME,DESC_COLUMN_NAME'])
--> binds to an array of SelectItem generated by iterating through the ResultSet
#(...myResultSet.options['COLUMN_NAME'])
#(...myResultSet.options['VALUE_COLUMN_NAME,LABEL_COLUMN_NAME'])
#(...myResultSet.options['VALUE_COLUMN_NAME,LABEL_COLUMN_NAME,DESC_COLUMN_NAME'])
--> binds to an array of Options generated by iterating through the ResultSet
|
Inner Class :public class RowData | |
Inner Class :public class SelectItemsData | |
Inner Class :public class OptionsData | |
Method Summary | |
public Class | getType(Object base, Object property) | public Class | getType(Object base, int index) | public Object | getValue(Object base, Object property) | public Object | getValue(Object base, int index) | public static void | initResultSet(ResultSet resultSet) | public boolean | isReadOnly(Object base, Object property) | public boolean | isReadOnly(Object base, int index) | public void | setValue(Object base, Object property, Object value) | public void | setValue(Object base, int index, Object value) |
CURRENT_ROW_KEY | final public static String CURRENT_ROW_KEY(Code) | | |
SELECT_ITEMS_KEY | final public static String SELECT_ITEMS_KEY(Code) | | |
nested | protected PropertyResolver nested(Code) | | |
ResultSetPropertyResolver | public ResultSetPropertyResolver(PropertyResolver nested)(Code) | | |
getType | public Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException(Code) | | |
getType | public Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException(Code) | | |
getValue | public Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException(Code) | | |
getValue | public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException(Code) | | |
isReadOnly | public boolean isReadOnly(Object base, Object property) throws EvaluationException, PropertyNotFoundException(Code) | | |
isReadOnly | public boolean isReadOnly(Object base, int index) throws EvaluationException, PropertyNotFoundException(Code) | | |
setValue | public void setValue(Object base, Object property, Object value) throws EvaluationException, PropertyNotFoundException(Code) | | |
setValue | public void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException(Code) | | |
|
|