cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Brant" <pmbr...@gmx.at>
Subject Re: DO NOT REPLY [Bug 30351] - [PATCH] BooleanField - Convert String to Boolean in setValue
Date Wed, 28 Jul 2004 00:40:24 GMT
Thanks.  That does work.  I'll close the bug.

However, it's rather a pain in the neck to have to a specify a converter
(excuse me, convertor) for all the non-string form fields.  A patch to fix
that is attached (should I open another Bugzilla bug?).  

ValueJXPathBinding has been modified so that if the Widget implements
DataWidget and no converter is defined on the binding, the converter from
the Widget is used.  BooleanField now also implements DataWidget.  

I can't say I'm familiar enough with the code to know if this is the best
solution, but it works for me.  

Pete

> ------- Additional Comments From joerg.heinicke@gmx.de  2004-07-27 22:09
> -------
> Isn't this the task of the convertor? See
> http://cocoon.apache.org/2.1/userdocs/forms/binding.html#fb%3Avalue for
> more
> info. If my assumption is correct, please close this bug marking it
> "INVALID".
> 
> Jörg
> 

-- 
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
Mime
View raw message