sebfz1 / wicket-jquery-ui

jQuery UI & Kendo UI integration in Wicket
http://www.7thweb.net/wicket-jquery-ui/
Other
92 stars 58 forks source link

Is possible to have diffrent value and content in MultiSelect <option> #299

Closed VaclavC closed 6 years ago

VaclavC commented 6 years ago

Hello,

I'am using AjaxMultiSelect and currently I'am getting something like this in HTML:

<select ...>
  <option value="Item 1 (10)">Item 1 (10)</option>
  <option value="Item 2 (211)">Item 2 (211)</option>
  ...
</select>

and I want it like this:

<select ...>
  <option value="Item 1">Item 1 (10)</option>
  <option value="Item 2">Item 2 (211)</option>
  ...
</option>

Is this possible?

sebfz1 commented 6 years ago

Hi , you may have a look at the demo that use beans..

VaclavC commented 6 years ago

I'am sorry, but I'am unable to find that demo. Looking here but all three demos there are using multiselect with String and not Genre class.

sebfz1 commented 6 years ago

I will have a look this week-end...

VaclavC commented 6 years ago

Thank you very much.

sebfz1 commented 6 years ago

I added a sample using a custom renderer: http://www.7thweb.net/wicket-jquery-ui/kendo/multiselect/RendererMultiSelectPage