Hi Derrell,
thanks, I tested your example on Windows7 with IE9, FF6, Opera 11.5,
Safari 5.1 and Chrome 13.
Your described issue occurs with all my tested browser, so it is not a
browser issue. :(
I found a workaround to get the value. The first trick is to call a blur
on the input field. This works for all browsers, but not for Opera.
Opera needs a timeout :(
<snip>
ok.addListener(
"execute",
function(e)
{
// blur input field to sync value with TextField
input.getContentElement().getDomElement().blur();
// Opera needs a timeout to sync the value
qx.event.Timer.once(function()
{
// Retrieve the entered info
var info = qx.util.Serializer.toNativeObject(this._model);
alert("Text field contains '" + info.txtInput + "'");
}, this, 0);
},
this);
</snip>
For me is is more a qooxdoo bug, the TextField doesn't get the value,
because the "input" event is not fired because of the command execution.
I trigger the "input" event by calling the blur on the input field.
Could you please open a bug report and add your example app with my
workaround.
Thanks,
Chris
Am 18.08.2011 19:17, schrieb Derrell Lipman:
BTW, this problem is seen in both Firefox 5.0 and Chrome 12.0.742.100
on Linux.
Derrell
On Thu, Aug 18, 2011 at 13:01, Derrell Lipman
<[email protected]
<mailto:[email protected]>> wrote:
On Thu, Aug 18, 2011 at 11:22, Christian Hagendorn
<[email protected]
<mailto:[email protected]>> wrote:
Hi Derrell,
it seems to me that the native "input" event is not fired from the
wrapped input field. This sounds like a bug or a browser
problem. Could
you please provide a playground example to reproduce the issue.
Interesting. It's not possible to do a playground app that uses
qx.ui.core.Command("Enter") because it becomes impossible to
further edit the application after running it. (Pressing Enter no
longer affects Ace.)
Attached is a shell archive (extract with "sh modeltest.shar")
containing an example of the problem. If you enter text in the
text field and *click* on the Ok button, the alert will show the
text from the field. If instead (on the first attempt after
loading the application) you enter text and then press Enter, the
alert shows that the model has not synced with the text field; the
txtInput value is null.
Derrell
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel