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:
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]
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;
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
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.
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
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