Hello guys,

  I would like to talk to you about validation and the MVP pattern.
Does someone already have implemented it? I checked out some
validation frameworks, some of them are very interesting but I'm
having problems to use them with the MVP pattern. I think that most of
validation feedback screens can be cataloged as:
1. The ones that show messages in some part of the application, all
messages together. Usually you need the same behavior inside a popup
for example.
2. The ones that show messages near the widget that generates the
problem, for example an invalid e-mail address message beside the
TextBox.
3. The ones that are a mix of the two above.

For the the first one the solution is quite simple, I did it creating
two events, ValidationError and ValidationOk, the presenter fire those
events after validation. The ValidationErrorEvent keeps the list of
error messages (or message keys). I didn't find a solution to work
with popups in this case.

For the other two I haven't found a solution. Maybe creating an
interface and adding it to each widget that accepts interface
modifications because of validations. I don't know, I'm using as
reference these two frameworks: http://gwt-validation.googlecode.com
and http://sourceforge.net/projects/gwt-vl/ (you can find a comparison
of them here: http://techblog.maydu.eu/?p=7)

Let's talk about it...

As soon as I get progress I will post here.

Best regards,

-- 
Eduardo S. Nunes
http://e-nunes.com.br

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to