Sometimes it is necessary to change/restore value of TextField that has liveUpdate=false and is not left (focused out). It would be useful to have a public method that refreshes TextField's value. Let's consider the following code.
var sInitValue = "some value"; var txt = new qx.ui.form.TextField(sInitValue); txt.set({ left : 10, top : 10, liveUpdate : false, width : 200 }); txt.addToDocument(); txt.addEventListener("keypress", function(oEvent) { if (oEvent.getKeyIdentifier() === "Escape") { txt.setValue(sInitValue + " "); txt.setValue(sInitValue); } }, this); By pressing "Escape", the TextField's value will be restored to its initial state. But two setValue calls is made to realize this because only txt.setValue(sInitValue); does not work as TextField's value did not really change. As an impact of two setValue calls, _applyValue is called twice and changeValue event is fired twice. Any suggestions? Best regards, Dioc -- View this message in context: http://www.nabble.com/How-to-change-restore-TextField%27s-value-without-liveUpdate-and-leaving-TextField--tf4479306.html#a12772302 Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel