Hey,
> How can I validate (or force the
> validation) of my model? (Problem 1)
The idea behind the model validation is that the model never has an 
inconsistent state because the validator blocks the setting of invalid values. 
When you, as the designer of the model, set an invalid init value, thats not 
true anymore because init values will not be checked. As soon as you set the 
property, the validation takes care of it.

> The second problem is, that I don't want to write the validation twice. I
> have once the validation in the model and in the gui (required), but how do
> I connect them? (Problem 2)
It is possible to use the same validators in the form and in the model. You 
only need to have access to the function in both cases. So maybe its a good 
idea to create a static validation helper which only holds these methods. 

Best,
Martin
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to