Convert DataModel to List in Java -
can tell me if possible convert datamodel
arraylist
?
and how can it? please have know possible!!!
i can convert arraylist
listdatamodel
using new listdatamodel(list list)
, don't know how inverse!
ex:
public void filtrarcamadaporcategoriaefabricante(){ this.listadecamadasparaescolha = new listdatamodel<camada>(this.service.getservicecomponentesconstrutivos().filtrarcamadaporcategoriaefabricante(idcategoriadecamadaaseradicionada, idfabricantedecamadaaseradicionada)); }
looks datamodel has iterator http://docs.oracle.com/javaee/6/api/javax/faces/model/datamodel.html#iterator()
you should able use iterator iterate contents on datamodel , create arraylist.
Comments
Post a Comment