Re: Editor and enumeration or object cast

2018-04-25 Thread Rogelio Flores
You probably need to do what the error message suggests; provide a no-argument constructor, and if you must have a constructor with arguments, use the @UiFactory or @UiField annotations. Search for UiFactory in this page to see how it's used:

Re: Editor and enumeration or object cast

2018-04-24 Thread Larry Kline
Do you know how to use this EnumEditor in a ui.xml file? I tried this: ui.xml: ... ... java: ... @UiField EnumEditor chemoTeachType; ... Where ChemoTeachType is my enum. But I get this error from the GWT compiler: ... [ERROR]

Re: Editor and enumeration or object cast

2010-11-26 Thread Jerome C.
Thanks, This solution works well ! On 17 nov, 23:20, mbmacri mbma...@gmail.com wrote: Hi. Here is my EnumEditor implementation based on a ListBox. It should give you an idea of how to implement it using option buttons: package com.leasingsaas.client.ui.widgets; import java.util.HashMap;

Re: Editor and enumeration or object cast

2010-11-18 Thread mbmacri
Hi. Here is my EnumEditor implementation based on a ListBox. It should give you an idea of how to implement it using option buttons: package com.leasingsaas.client.ui.widgets; import java.util.HashMap; import com.google.gwt.editor.client.LeafValueEditor; import

Re: Editor and enumeration or object cast

2010-11-16 Thread Jerome C.
nobody has an idea on how to manage enum with the new editor framework without rewriting a class for each enum ? I just want to create a RadioButtonGroup which is used to edit enumeration but I don't know how to cast my enum... Any help is welcome. On 12 nov, 11:39, Jerome C.

Re: Editor and enumeration or object cast

2010-11-16 Thread Thomas Broyer
On 16 nov, 11:58, Jerome C. jerome.ca...@gmail.com wrote: nobody has an idea on how to manage enum with the new editor framework without rewriting a class for each enum ? I just want to create a RadioButtonGroup which is used to edit enumeration but I don't know how to cast my enum... How

Editor and enumeration or object cast

2010-11-12 Thread Jerome C.
Hello, I try to create editors with new editor mechanism. How do you do when your bean property is not the same that your editor. For example, how can I have an editor which can edit Enumeration ? I've tried to create a RadioButtonGroup which displays values of an enumeration and try to make