I guess i've found a bug on Opera 11 (on Linux, i guess it's the same on
windows too).

Here's the code to reproduce the bug on the playground:

var doc = this.getRoot();

var form = new qx.ui.form.Form();
form.add(new qx.ui.form.TextField(), "text", null, "text");

var model = new qx.data.controller.Form(null, form).createModel();

var button = new qx.ui.form.Button("Go");
button.addListener("execute", function(){
  alert(model.getText());
},this);

form.addButton(button);

doc.add(new qx.ui.form.renderer.Single(form), { top: 50, left: 50});

To reproduce the bug do this:

1. Put some random text into the field and then press "Go", you'll see your
input so everything is fine.
2. Remove the text and leave it empty then press "Go" again. You'll see the
old input and not an empty string.
3. Then from now on you will always see the old input and not the actual one
when "Go" is pressed.

It seems that the model on opera gets messed up if is entered an empty
string like this: "".

I've posted just to have some info about other browsers, in my latest
version of firefox and chrome i've not encountered this problem.

I'll post a workaround soon, I'll check if the bug has already been posted
on bugzilla, or if someone who is more active in developing qooxdoo can tell
it's not i'll post it.

-----
La coincidenza non ha madre.
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Bug-Form-model-updating-on-Opera-11-tp5951082p5951082.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to