> I've got a problem with the select tag. I am declaring the select tag like > this: > > <ww:select ... name="'affiliateTransport.affiliateCategories'" > list="valueStore.allCategories" ... />
This usage seems wrong to me. The 'name' attribute will be mapped to the 'name' attribute of the resulting HTML <select> tag (you will get <select name="affiliateTransport.affiliateCategories"></select>). What you are looking for ist something like <ww:select name="'selectedCategories'" list="valueStore.allCategories" value="affiliateTransport.affiliateCategories"/>, assuming that valueStore.allCategories contains the list of choices and affiliateTransport.affiliateCategories the list of preselected ids. Please note that I do not know if the <ww:select> tag does indeed support preselecting multiple entries, i.e. accepts a list for the 'value' attribute. Yet judging from 'select.vm', the velocity template file for the <select> tag, it might do so. > Am I simply using the select incorrectly, is it simply not possible to > supply a list of "preselected" IDs. Isn't it possible to handle Longs and > finally: will multiselect really create a List of selected IDs or > will only > one ID be returned no matter how many items are selected. Unfortunately, I do not know whether Longs will be handled correctly. My (limited) experience thus far is that WebWork almost always does what I expect it to do. Hope this helps, Olaf ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork