Hi Josh, i tried your code, here is my version: private HashMap<String, String> _schoolModel; private String _schoolId;
public HashMap<String, String> getschoolModel() { return _schoolModel; } void setupRender() { _schoolModel.put("1", "student 1"); _schoolModel.put("2", "student 2"); } <t:select t:id="schoolId" t:model="schoolModel"/> but I got an error: Parameter(s) value are required for org.apache.tapestry.corelib.components.Select, but have not been bound. looks like I have to add a t:value, but how? thanks. A.C. Josh Canfield-2 wrote: > > You can grab the the parameters directly from the request > > Although, if this is for your selection list problem from earlier I > believe > a better solution might be to create a map and use that as the model for > your the t:select component. > > Create a property: > private HashMap<String, String> _schoolModel; > private String _schoolId; > > in setup render: > > for ( School school : getSchools() ) { > String value = school.getName() + " - " + school.getLocation(); > String key = school.getId().toString(); > _schoolModel.put(key, value); > } > > in your template: > > School: <t:select t:id="schoolId" t:model="schoolModel"/> > > I haven't compiled this code, so there might be typos/bugs, but that's the > gist. > > Josh > > > On 10/12/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> So I have a form that has several elements. A few of the elements are not >> done using the tapestry components and use regular HTML because the >> required >> steps to make things work as needed with the components is simply not a >> suitable solution. So how do I get these regular form elements to save >> properly? >> >> Jean-Philippe >> > > > > -- > -- > TheDailyTube.com. Sign up and get the best new videos on the internet > delivered fresh to your inbox. > > -- View this message in context: http://www.nabble.com/T5%3A-Form-not-saving-all-elements-tf4616073.html#a13238297 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]