You could set the regex for the field

E.g.

<the field morph> converter regexString: '.+'

That would hilight any invalid fields. Still need to check on "OK", or make that button's enablement
depend on whether the model is valid.

Regards, Gary

----- Original Message ----- From: "Jeff Gray" <j...@rogerthedog.com>
To: <pharo-project@lists.gforge.inria.fr>
Sent: Monday, July 25, 2011 2:09 PM
Subject: [Pharo-project] Polymorph validation


Just playing with Laurent's example contact manager.
So next logical step - how to validate the fields?
E.g. both first name and surname must have a value.
Is there a method to override? Something I need to implement in the model
class?
Got any hints? :-)

--
View this message in context: http://forum.world.st/Polymorph-validation-tp3692714p3692714.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Reply via email to