Search in sources :

Example 1 with DataModel

use of javax.faces.model.DataModel in project acs-community-packaging by Alfresco.

the class NewEditionWizard method getDataModel.

/**
 * Util metho which construct a data model with rows passed in parameter
 */
private DataModel getDataModel(Object rows) {
    DataModel translationDataModel = new ListDataModel();
    translationDataModel.setWrappedData(rows);
    return translationDataModel;
}
Also used : ListDataModel(javax.faces.model.ListDataModel) DataModel(javax.faces.model.DataModel) ListDataModel(javax.faces.model.ListDataModel)

Aggregations

DataModel (javax.faces.model.DataModel)1 ListDataModel (javax.faces.model.ListDataModel)1