Hello Jean-Noel,
I gave my example code a try in a 0.8.2 environment and as you said it
didn't work. As a workaround i thought of patching the textfield to
handle null values. That way you could leave the binding without a
converter and the problem is solved. There are two ways you could
achieve that.
1. You path the qooxdoo class qx.ui.form.AbstractField by adding this
to the members section:
/**
* Resets the value to the default
*/
resetValue : function() {
this.setValue("");
},
2. You use an evil JavaScript trick to patch the class from your own
code:
// patch the textfield
qx.ui.form.TextField.prototype.resetValue = function() {
this.setValue("");
}
I would prefer option one because is a much nicer solution. And if you
upgrade to the next release, exactly these lines will come in
automatically.
Best,
Martin
Am 17.06.2009 um 11:57 schrieb Jean-Noël Rivasseau:
Hi Martin, I am still not 100% sure it's a complete duplicate. Your
bug reproduces OK but that does not necessarily mean your fix will
take care of my original bug. I am waiting for your workaround to test
jean-Noel
On Wed, Jun 17, 2009 at 11:50 AM, Martin Wittemann <[email protected]
> wrote:
Hi,
thats good to hear. So i close the bug as a dulicate and take a look
at a workaround after im done with my current task and come back to
you later. I hope i could find a solution for you.
Best,
Martin
Am 17.06.2009 um 11:20 schrieb Jean-Noël Rivasseau:
Hi,
I reproduced the test you gave me in the bug and yes, it fails. I
am on 0.8.2 and would prefer not to update to trunk... is there
some workaround I can apply until I upgrade to 0.8.3 ?
Btw, it would be *very* nice if there was a roadmap posted
somewhere regarding new releases shipping dates and their features.
Currently I have no idea when 0.8.3 will be out and what will be in
it.
Jean-Noel
On Wed, Jun 17, 2009 at 9:46 AM, Martin Wittemann <[email protected]
> wrote:
Hi,
It really looks like the bug I fixed yesterday. Jean-Noel, could you
please check the code snipped in the bug report to verify that the
code is reproducing your bug?
Best,
Martin
Am 17.06.2009 um 05:26 schrieb Vincent Vandenschrick:
> Hi Jean-Noel,
> It seems to me a duplicate of the bug #2457 that Martin fixed
> yesterday
> in the trunk.
> http://bugzilla.qooxdoo.org/show_bug.cgi?id=2457
>
> The symptom is that the property resetter method of the target
> object is
> called independently of the converter result (in your case the null
> value should never make its way to the target object).
>
> On which version are you working ?
>
> Regards,
> Vincent
>
> Jean-Noël Rivasseau a écrit :
>> Hi all and especially Martin,
>>
>> Can anyone suggest a temporary workaround for bug 2478 or quickly
>> come
>> with a patch for the problem? My application deeply suffers of
>> this...
>>
>>
>> Thanks
>>
>> Jean-Noel
>
> --
> Vincent Vandenschrick
> Jspresso Framework
> http://www.jspresso.org
>
>
>
------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
unlimited
> royalty-free distribution of the report engine for externally
facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Jean-Noël Rivasseau
Directeur
Kameleoon - morph the web
http://www.kameleoon.com/
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel