| java.lang.Object org.zkoss.seam.DataModelUtil
DataModelUtil | public class DataModelUtil (Code) | | This class helps developers to do thing with Seam's DataModel
author: Dennis.Chen |
Method Summary | |
public static boolean | select(String dataModelName, String selectionName, Object selectedItem, int selectedIndex) Put selectedItem into Seam's context for DataModelSelection.
JSF use row index to identify the selected row in action.However, if data was changed between first request and secondary request (ex, delete or insert). | public static boolean | select(String dataModelName, String selectionName, Object selectedItem) Put selectedItem into Seam's context for DataModelSelection.
This method will find index of selectedItem in DataModel which named dataModelName)
JSF use row index to identify the selected row in action.However, if data was changed between first request and secondary request (ex, delete or insert). |
select | public static boolean select(String dataModelName, String selectionName, Object selectedItem, int selectedIndex)(Code) | | Put selectedItem into Seam's context for DataModelSelection.
JSF use row index to identify the selected row in action.However, if data was changed between first request and secondary request (ex, delete or insert).
when secondary request, that's say a selection clicked, then rowIndex may not equals to actual selectedItem's index.
Parameters: dataModelName - name of DataModel Parameters: selectionName - name of DataModelSelection Parameters: selectedItem - new or updated instance of bean. Parameters: selectedIndex - selected index of selection true if selection is consistent. |
select | public static boolean select(String dataModelName, String selectionName, Object selectedItem)(Code) | | Put selectedItem into Seam's context for DataModelSelection.
This method will find index of selectedItem in DataModel which named dataModelName)
JSF use row index to identify the selected row in action.However, if data was changed between first request and secondary request (ex, delete or insert).
when secondary request, that's say a selection clicked, then rowIndex may not equals to actual selectedItem's index.
Parameters: dataModelName - name of DataModel Parameters: selectionName - name of DataModelSelection Parameters: selectedItem - new or updated instance of bean. true if selection is consistent. |
|
|