[jboss-user] [JBoss Seam] - Re: Use more than 1 DataModel/DataModelSelection in a form?

tim_ph do-not-reply at jboss.com
Fri Aug 3 10:27:42 EDT 2007


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!

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

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



More information about the jboss-user mailing list