Not with @DataModel, you could just @Factory e.g.

@Stateful
  | @Name("ListOrder")
  | @Scope(CONVERSATION)
  | public class OrderManager implements OrderManagerLocal, Serializable {
  | 
  | @Factory(value="orders", scope = SESSION)
  |     public void findOrder(){
  |         
  |         Query query;
  |                 
  |                 query = em.createQuery("select o from Order o where 
o.customer=#{currentContact.customer}");
  | 
  |                 
  |         orders = (List<Order>) query.getResultList();
  |         
  |         
  |     }
  | }

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082046
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to