You need to define encoder in your tml file, this is my: <td><select t:type="t5components/MultipleSelect" size="10" encoder="selectModel" model="selectModel" value="selectedDistricts"/> </td>
zack1403 wrote: > > Hmm, still getting the error: > > Render queue error in > BeforeRenderTemplate[survey/contact/Upload:multipleselect]: Failure > reading parameter 'encoder' of component > survey/contact/Upload:multipleselect: Could not find a coercion from type > org.apache.tapestry.internal.services.StringValueEncoder to type > org.apache.tapestry.commons.encoder.MultipleValueEncoder. > > I know encoder is specified in the error but it shouldnt be required > right? > > I am also just using a set of strings as the value. What should I use for > labelField and idField? > > Thanks for your help, > Zack > > Weisu wrote: >> >> Hi Zack, I think you need to define your getSelectModel(), this is my >> getSelectModel method. Hope this helps. >> public GenericMultipleSelectModel<EllipseDistrict> getSelectModel() >> { >> _districtList = _editService.getDistricts(); >> _selectModel = new >> GenericMultipleSelectModel<EllipseDistrict>(_districtList, >> EllipseDistrict.class, "districtName", "districtCode", _propertyAccess); >> return _selectModel; >> } >> >> >> > > -- View this message in context: http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17550557.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]