2 Replies Latest reply on Aug 3, 2007 10:27 AM by tim_ph

    Use more than 1 DataModel/DataModelSelection in a form?

    tim_ph

      What can I do if I have to use 2 or more DataModel and DataModelSelection in a form? each map to a DataTable and selected item.
      Is it possible?

        • 1. Re: Use more than 1 DataModel/DataModelSelection in a form?
          pmuir

          That should be fine, what problem do you see?

          • 2. Re: Use more than 1 DataModel/DataModelSelection in a form?
            tim_ph

            Ah, never mind. I find the option to assign name of DataModel to DataModelSelection.

             @org.jboss.seam.annotations.datamodel.DataModel("applicationPersonnels")
             private java.util.List<Personnel> applicationPersonnels;
            
             @org.jboss.seam.annotations.Factory("applicationPersonnels")
             public void fillPersonnels()
             {
             if (applicationPersonnels == null)
             {
             applicationPersonnels = getInstance() == null ? null : getInstance().getPersonnels();
             }
             }
             @org.jboss.seam.annotations.datamodel.DataModelSelection("applicationPersonnels")
             private Personnel personnel;
             public Personnel getPersonnel()
             {
             return personnel;
             }
            
             @org.jboss.seam.annotations.datamodel.DataModel("applicationExcludedDrivers")
             private java.util.List<Driver> applicationExcludedDrivers;
            
             @org.jboss.seam.annotations.Factory("applicationExcludedDrivers")
             public void fillExcludedDrivers()
             {
             if (applicationExcludedDrivers == null)
             {
             applicationExcludedDrivers = getInstance() == null ? null : getInstance().getExcludedDrivers();
             }
             }
             @org.jboss.seam.annotations.datamodel.DataModelSelection("applicationExcludedDrivers")
             private Driver driver;
             public Driver getDriver()
             {
             return driver;
             }
            


            Thanks for the help!