Hi,

I have a custom widget that implements ValueAwareEditor[1].

In what order are the methods setEditorDelegate(), setValue(), subscribe() 
and flush() called ?

Are they called before or after methods setValue in the sub-editors are 
called, for each property of the bean ?

More specifically, my editor contains fields for a Person object, and there 
are two Radio buttons to select his/her gender (Male or Female). This is 
method setValue in my editor:

@Override
public void setValue(Person person) {
    if (person.getGender() == null) {
        person.setGender(MALE);
    }
}

Is this code safe ? Is there any combination of calls to setValue in the 
subeditors or in the editor itself that may cause the bean's property gender 
to be null or the radio buttons not selected ?

Thanks,
Leonel


  
[1]: 
http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html#ValueAwareEditor

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5B_XmKguVuIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to