Hi everyone
I'm having trouble understanding Editors introduced in GWT 2.1. It
sounds like a nice feature to reduce boilerplate code. The Dev Guide
is very very useful, but I couldn't get all the answers >_<
==========
my first question is about validation and error reporting.
take the Dev Guide example,
public class PersonEditor extends Dialog implements Editor<Person> {
Label nameEditor;
...
}
I wish to detect bad names, create a visual feedback upon error, and
bubble this information up so the caller knows not to proceed further.
I see there is recordError in EditorDelegate. Is it the right method
to tackle this? Can I get an example please? I have a lot fields to
edit. I hope I don't have to create bunch delegates. The less code the
better =)
==============
second question is about "Q: How can I edit objects with a large
number of properties?" from the FAQ section
It has the following example
class BagOfStateBiographicalEditor implements Editor<BagOfState> {
AddressEditor address;
Label name;
}
class BagOfStateUserPreferencesEditor implements Editor<BagOfState> {
CheckBox likesCats;
CheckBox likesDogs;
}
How do I chain up the two editors? Should I use a CompositeEditor? or
a list of drivers?
=============
many thanks
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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.