org.jboss.seam.faces
Class DataModels
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataModels
public DataModels()
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()