Surely something like

  | @Stateless
  | @Name("employeeManager")
  | public class EmployeeManagerBean implements EmployeeManager {
  | 
  |    @DataModel(scope=PAGE)
  |    private List<Employee> employees;
  | 
  |    @In(required=false)
  |    private Boolean internal;
  | 
  |    @In(required=false)
  |    private Branch status;
  | 
  |    ...
  | 
  |    @Factory("employees")
  |    public void employeeFactory() {
  |       employees = em.createQuery(...).getResultList();
  |    }
  | 
  | }
  | 

should work.  The bean is stateless so the list will be rebuilt each time the 
employees variable is accessed per page but the datamodel is outjected to the 
PAGE scope so that clickable lists work. You shouldn't need to null the 
employees list manually here I think but I may be wrong as I haven't tried it 
yet myself.

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

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


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to