Alexander Steitz wrote:
On Tuesday 17 November 2009 skar wrote:
That really wonders me. Are the values also "undefined" at your apply
method?
They are false or true in the apply method.
Then this is a bug. If the values are given correctly in the apply method the
data event gets it wrong.
Can you post a more extensive code snippet or open a bug report for this?
The class in question is this:
qx.Class.define("NewTextArea",
{
extend : qx.ui.form.TextArea,
events :
{
"changeReadOnly" : "qx.event.type.Data"
},
members :
{
_applyReadOnly : function(value, old)
{
this.base(arguments, value, old);
this.debug("Apply readonly value:" + value + " old:" + old + "
...");
this.fireDataEvent("changeReadOnly", {value: value, old: old});
}
}
});
And my text field creation code:
//create the text area
this.input_field = new NewTextArea().set({
padding: 15,
enabled: false
});
this.input_field.addListener("changeReadOnly",function(e){
var newval = e.getData();
var oldval = e.getOldData(); }, this);
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel