Sound reasonable.  Can you open an issue to create a ValueSelectionCell that
takes an arbitrary type T and a SafeHtmlRenderer to convert the type T to a
String.

Thanks,
John LaBanca
[email protected]


On Wed, Oct 13, 2010 at 11:06 AM, Ed M <[email protected]> wrote:

> The current implementation of 'SelectionCell' only accepts a
> 'List<String>' to be used in the creation of the drop down 'select'
> menu.
>
> ie:
> List<string> options = new ArrayList<String>()
> options.add("option1");
> options.add("option2");
>
> SelectionCell cell = new SelectionCell(options);
>
> When rendered this results in
> <select....>
> <option value="option1">Option1</option>
> ....
> </select>
>
> Given that in most cases, the human readable value does not match the
> value submitted to the server, this class should allow for the more
> traditional practice of having one value for the 'value' attribute of
> the option element, and another value for the display value.
>
> ie:
> <select...>
> <option value='ServerVal'> DisplayVal</option>
> </select>
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to