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;
}
zack1403 wrote:
>
> Hey All,
>
> Using tapestry-components, I'm trying to utilize the Mutiple Select
> component but am getting: 'Could not find a coercion from type
> org.apache.tapestry.internal.services.StringValueEncoder to type
> org.apache.tapestry.commons.encoder.MultipleValueEncoder'. Does anyone
> have an example of how this component is used?
>
> tml:
>
> <select t:type="t5components/MultipleSelect"
> model="selectModel"
> value="confirmedComps"/>
>
> java:
>
> private Set<String> confirmedComps;
>
> private GenericMultipleSelectModel<String> selectModel;
>
>
> I have getters and setters for these two attributes but I only set
> confirmedComps. Should selectModel be null?
>
> Thanks,
> Zack
>
--
View this message in context:
http://www.nabble.com/t5-components-MultipleSelect-use-tp17524086p17526137.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]