Re: A bit more info

Martin Gilday <[email protected]> Thu, 28 Dec 2006 14:30:39 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <21299255.1167337869669.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Not exactly amazingly tidy but how about..
Have your select point to person.favoriteCar.id.  Then in your execute call a method that then fills in the rest of the car details from the list.

[code]
private String execute ..

person.setFavouriteCar(carList.get(person.getFavouriteCar.getId()));

dao.save....

[/code]
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=55649&messageID=110889#110889