Hello Stefan,

this is by design as you see in the API docs:

     * The form item has to implement at least two interfaces:
     * <ol>
     *   <li>The {...@link qx.ui.form.IForm} Interface</li>
     *   <li>One of the following interfaces:
     *     <ul>
     *       <li>{...@link qx.ui.form.IBooleanForm}</li>
     *       <li>{...@link qx.ui.form.IColorForm}</li>
     *       <li>{...@link qx.ui.form.IDateForm}</li>
     *       <li>{...@link qx.ui.form.INumberForm}</li>
     *       <li>{...@link qx.ui.form.IStringForm}</li>
     *     </ul>
     *   </li>
     * </ol>

SelectBox doe's not implement one of the primitive data interfaces which is why 
it has to be validated in the manager context itself.

Regards,
Martin


Am 29.08.2010 um 22:54 schrieb Stefan Andersson:

This code creates an error:

      var validator = this.__validator = new qx.ui.form.validation.Manager();

      validator.add(this.__subjectSB, this.__validateSubject, this);

while doing this it works:

      manager.setValidator(function(formItems) {
        var validSB = this.__subjectSB.getSelection()[0] !== dummyItem;
        this.__subjectSB.setValid(validSB);
        return validSB;
      });

It seems to be a bug to me! Is there another explanation?

Stefan
<ATT00001..txt><ATT00002..txt>

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to