On Nov 2, 4:00 am, jefe <jeffrey.burn...@gmail.com> wrote: > All, > > After reviewing the GWT 2.1 Editor/Driverfeatures I've found uses > fields like TextBox or DoubleBox but nothing pertaining to concepts > such as CheckBox or RadioButton. Are there any specific best practices > for providing binding between a bean and a group of radio buttons or a > checkbox? > > Any insight would be appreciated. > > Thanks, > Jeff
Hi Jeff I can't be authoritative on best practice, however I've got a few widgets that wrap GWT widgets (TextBox and ListBox) which edit simple values such as Strings and Integers. I just make them implement LeafValueEditor<T> and they work in the same way as a GWT widget does with the editor framework. For example : """ public class CharField extends FormRow implements LeafValueEditor<String> { ...... @Override public String getValue() { return tb.getValue(); } @Override public void setValue(String value) { setValue(value, false); } } """ Cheers Will -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.