[jboss-user] [JBoss Seam] - @DataTable, <h:dataTable

Stateless Bean do-not-reply at jboss.com
Tue May 8 10:31:56 EDT 2007


Hi,
I have class with collection like:
@DataModel
List myCollection

@DataModelSelection
MyEntity selectedEntity;

and in view 
<h:dataTable ....

this works for entity, but can I do i with some selected columns from native query, like:

List myList = em.createNativeQuery("SELECT object.A, object.B");

and add this list to @DataModel?
@DataModel
List myList 

So what should be as datamodelSelection?
@DataModelSelection
Object selectedObject?

this wil work?
How can i create list with some objects and select current object from list?
MyEntity selectedEntity;

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043947#4043947

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043947



More information about the jboss-user mailing list