Hi,
hkalyoncu wrote: > > so you are saying that i cannot wrote a custom validation for a selectBox > ? > or i can use only manager.setValidator method for selectBoxes ? > You can write a custom validator for select boxes but you have to use the validator on the manager itself. So its possible but not the way you can do it for textfields for example. hkalyoncu wrote: > > i would be glad if you explain a little bit more of your last sentence: >>Thats why we choose to keep the validation of a select box in the validation method of the manager >itself so it can always access the whole content. > Just ask yourself the question what kind of object you would expect to be handed in to you custom validation function? Do you prefer the selected list item, or the model selection of the selectbox, or the text on the listitem? What about lists which can have no selection or multi selection? What about translations? Its not that easy to do determinate what data the user needs to set the valid state. Regards, Martin -- View this message in context: http://n2.nabble.com/form-validator-custom-required-field-tp4575237p4580878.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
