org.jboss.seam.faces
Class DataModels

java.lang.Object
  extended by org.jboss.seam.faces.DataModels

@Name(value="org.jboss.seam.faces.dataModels")
@Install(precedence=0,
         classDependencies="javax.faces.context.FacesContext")
@Scope(value=STATELESS)
@BypassInterceptors
public class DataModels
extends Object

Wraps a collection as a JSF DataModel. May be overridden and extended if you don't like the built in collections which are supported: list, map, set, array.

Author:
pmuir

Constructor Summary
DataModels()
           
 
Method Summary
 javax.faces.model.DataModel getDataModel(Object value)
          Wrap the value in a DataModel This implementation supports List, Map, Set and arrays
 javax.faces.model.DataModel getDataModel(Query query)
          Wrap the the Seam Framework Query in a JSF DataModel
static DataModels instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataModels

public DataModels()
Method Detail

getDataModel

public javax.faces.model.DataModel getDataModel(Object value)
Wrap the value in a DataModel This implementation supports List, Map, Set and arrays


getDataModel

public javax.faces.model.DataModel getDataModel(Query query)
Wrap the the Seam Framework Query in a JSF DataModel


instance

public static DataModels instance()