I don't know how to make a playground example. The code in my original post exhibits the problem.
I'll be happy to make a playground example if someone can give me a bit of guidance. Scott On Tue, Apr 10, 2012 at 12:32 PM, Mustafa Sak <mustafa....@1und1.de> wrote: > So please provide a playground example and open a bug for it. > > Regards Sak > > Von meinem iPhone gesendet > > Am 10.04.2012 um 20:37 schrieb "Scott Chapman" <sc...@mischko.com>: > >> I've tried the input event, the changeValue event, and the blur event. >> All behave the same. >> The problem is not fixed by calling the validate() more often. >> Somehow the validate is only keeping the value of the first time it >> was called for the messages. >> >> >> On Tue, Apr 10, 2012 at 9:33 AM, Mustafa Sak <mustafa....@1und1.de> wrote: >>> Try input event instead: >>> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.form.AbstractField~input!event >>> >>> >>> -----Ursprüngliche Nachricht----- >>> Von: Scott Chapman [mailto:sc...@mischko.com] >>> Gesendet: Dienstag, 10. April 2012 18:27 >>> An: qooxdoo Development >>> Betreff: Re: [qooxdoo-devel] Form validator bug? >>> >>> I'm not clear what you mean. I'm running validate every time a field >>> loses focus so the messages should stay current all the time. ?? >>> >>> Scott >>> >>> On Tue, Apr 10, 2012 at 1:53 AM, Mustafa Sak <mustafa....@1und1.de> wrote: >>>> Hi Scott, >>>> >>>> this is not actually a bug. The validation manager is computing just on >>>> calling validate() function. The invalid messages will be computed at this >>>> time. You should listen to input events and run validate() function if >>>> focused field is invalid to update red markers and invalid messages. >>>> >>>> Regards Sak >>>> >>>> -----Ursprüngliche Nachricht----- >>>> Von: Scott Chapman [mailto:sc...@mischko.com] >>>> Gesendet: Sonntag, 8. April 2012 03:54 >>>> An: qooxdoo Development >>>> Betreff: [qooxdoo-devel] Form validator bug? >>>> >>>> The attached image shows an error that's occuring with my form validation. >>>> I think it might be a bug. >>>> When you tab out of the field the first time, it has "0644" in the text >>>> box, which matches the regular expression and everything looks good. >>>> Then you go back to the text box and change the contents to "033" and tab >>>> out of the field. Now the field is highlighted in red as it should be but >>>> the hover popup shows "0644 doesn't fit....". >>>> >>>> The hover popup doesn't reflect the current value of the text field like >>>> it should. >>>> >>>> Am I doing something wrong or is this really a bug? >>>> >>>> Thanks! >>>> Scott >>>> >>>> >>>> qx.Class.define("kiosk_portal.TabUploadFile", >>>> { >>>> extend : qx.ui.tabview.Page, >>>> members : >>>> { >>>> host_id : null, >>>> __blur_handler: function() { >>>> console.log("blur handler"); >>>> this.valid = this.__manager.validate(); >>>> console.log(this.valid); >>>> if (this.valid) { >>>> this.__uploadButton.setEnabled(true); >>>> } else { >>>> this.__uploadButton.setEnabled(false); >>>> } >>>> } >>>> }, >>>> construct : function() >>>> { >>>> this.base(arguments, 'UPLOAD'); >>>> this.setLayout(new qx.ui.layout.VBox().set({spacing: 4})); >>>> >>>> this.__uploadForm = new >>>> kiosk_portal.uploadwidget.UploadForm('uploadFrm','/file_upload'); >>>> this.__uploadForm.setPadding(8); >>>> >>>> this.__uploadForm.setLayout(new qx.ui.layout.VBox(10)); >>>> >>>> this.__uploadButton = new qx.ui.form.Button("Upload"); >>>> this.__uploadButton.set({ marginTop : 10, allowGrowX : false, >>>> enabled: false }); >>>> this.__uploadForm.add(this.__uploadButton); >>>> >>>> this.__uploadButton.addListener('execute', function(e) { >>>> console.log("executing"); >>>> }, this); >>>> >>>> this.__form = new qx.ui.form.Form(); >>>> >>>> this.__file_permissions = new qx.ui.form.TextField().set({width: >>>> 50, value: '0644'}); >>>> this.__file_permissions.setRequired(true); >>>> >>>> this.__manager = new qx.ui.form.validation.Manager(); >>>> this.__manager.add(this.__file_permissions, >>>> qx.util.Validate.regExp(new RegExp("^\\d\\d\\d\\d$"))); >>>> this.__form.add(this.__file_permissions, "Permission", null, >>>> "permission"); >>>> this.__file_permissions.addListener( "blur", this.__blur_handler, >>>> this); >>>> >>>> this.__controller = new qx.data.controller.Form(null, this.__form); >>>> this.__model = this.__controller.createModel(); >>>> >>>> this.__renderer = new qx.ui.form.renderer.Single(this.__form); >>>> this.__renderer.setAllowGrowX(false); >>>> this.add(this.__renderer); >>>> >>>> this.add(this.__uploadForm); >>>> >>>> this.setShowCloseButton(true); >>>> } >>>> }); >>>> >>>> ------------------------------------------------------------------------------ >>>> Better than sec? Nothing is better than sec when it comes to >>>> monitoring Big Data applications. Try Boundary one-second >>>> resolution app monitoring today. Free. >>>> http://p.sf.net/sfu/Boundary-dev2dev >>>> _______________________________________________ >>>> qooxdoo-devel mailing list >>>> qooxdoo-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>> >>> ------------------------------------------------------------------------------ >>> Better than sec? Nothing is better than sec when it comes to >>> monitoring Big Data applications. Try Boundary one-second >>> resolution app monitoring today. Free. >>> http://p.sf.net/sfu/Boundary-dev2dev >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> qooxdoo-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >>> >>> ------------------------------------------------------------------------------ >>> Better than sec? Nothing is better than sec when it comes to >>> monitoring Big Data applications. Try Boundary one-second >>> resolution app monitoring today. Free. >>> http://p.sf.net/sfu/Boundary-dev2dev >>> _______________________________________________ >>> qooxdoo-devel mailing list >>> qooxdoo-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> ------------------------------------------------------------------------------ >> Better than sec? Nothing is better than sec when it comes to >> monitoring Big Data applications. Try Boundary one-second >> resolution app monitoring today. Free. >> http://p.sf.net/sfu/Boundary-dev2dev >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel