Hi Alexandr,

On Tuesday 09 August 2011 13:03:39 alexandr wrote:
> Is this qooxdoo bug?
As far as I can say this is more a thing of program flow. The point here is  
that you use the "changeValue" event to check for the user input and - if 
necessary - reset the value. So you're reacting on the user input and the 
value is already synced with the textfield.
A better approach would be to check the input value of the user *before* the 
value is synced with the textfield. So you're in an active role and can hold 
back the changes you don't allow.

Check out the "qx.ui.form.AbstractField" class (which is the base class of the 
"qx.ui.form.TextField" class) and try to overwrite the "_onHtmlInput" method. 
Maybe this will solve your problems (just a hint, since I didn't wrote a line 
of code)

Regards,
  Alex
 
> alexandr wrote:
> > Thanks Derrel and Fritz!
> > 
> > I tried to implement what Derrell said, below is my code. At first glance
> > all works fine, but sometimes changeValue event isn't raised, I think it
> > because of I change the value inside handler of changeValue event (maybe
> > not...). For example, try to input "12...". Can you help me?
> 
> -----
> __
> Cheers,
> Alexandr

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to