I'm using webwork2 and hibernate and I have a question regarding the select tag. I checked the archives already, but did not find an answer, which is why I send this request for help.
I have a class Employee and a class Location. Both classes are defined in *.hbm.xml files and I can read and write data to these tables. Given an employee I retrieve its location simply by employee.getLocation(). I have designed a simple web form to input employee data and a dropdown select box to select the location. The list is initally filled with all locations (name of the city) from the database plus an empty one to cover the cases where there is no location yet assigned to an employee. Even pre-selecting already existing relations to a location works. However I've found no way yet to modify the location related to an employee. I can't figure out where webwork stores the selected value. My preferred solution would be. The attributes list and listKey identify the object (of class Location) and assigns that object (employee.setLocation(location)) to the employee. But that seems not to work. Any idea or solution? <@ww.select label="'Location'" name="'employee.location'" value="employee.location.id" list="locations" listKey="id" listValue="city" /> thanks Juergen ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork