On Thu, Mar 13, 2008 at 10:12 AM, Janko Mivšek <
janko.mivsek@...> wrote:
I also have a similar doubt and for now it would be most user friendly
to extend WebFormElement, so that you'll have a code like:
e addInputFieldAspect: #email
for: self observee
validIf: [:value |
(value matches: '*#@#*.#*') & (value endsWith: '.ch')
errorText: 'Invalid E-Mail'
Maybe method could be named better...
I like how simple Aida is, and while "all you had to do" in Magritte to add a new data element to a form was add it's description on the class side, it was still another layer of abstraction which made it more difficult for me.
Your method above is what I was planning on trying to create to make sure my account numbers had the right number of digits, etc...
As for naming methods, I'm still not very good at that myself!
Rob
_______________________________________________
Aida mailing list
Aida@...
http://lists.aidaweb.si/mailman/listinfo/aida