You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Danny Bols <db...@osirion.nl> on 2004/04/22 20:17:38 UTC
[cform] Multi Value Field
Hi Cocoon Committers,
the CFORM-API for MultiValueField is missing the getDataType() method which
means I can't create any selection lists based on iterators in my Beans like
I did to do with the Field class:
StaticSelectionList list = new
StaticSelectionList(myField.getDatatype());
myField.setSelectionList(list);
Anybody willing to add this method to the MultiValueField Class?
Thanks
--
Danny
Re: [cform] Multi Value Field
Posted by Marc Portier <mp...@outerthought.org>.
Bruno Dumon wrote:
> On Fri, 2004-04-23 at 07:43, Marc Portier wrote:
>
>>Danny,
>>
>>you're making sense,
>>
>>pls add this feature-request to bugzilla if you don't mind.
>>
>>by the way: should there be a reason why we don't just provide access to
>>the datatype on every widget?
>
>
> because only fields and multivaluefields know the concept of datatypes.
>
very good reason indeed,
and thx for waking me up :-)
-marc=
--
Marc Portier http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://blogs.cocoondev.org/mpo/
mpo@outerthought.org mpo@apache.org
Re: [cform] Multi Value Field
Posted by Bruno Dumon <br...@outerthought.org>.
On Fri, 2004-04-23 at 07:43, Marc Portier wrote:
> Danny,
>
> you're making sense,
>
> pls add this feature-request to bugzilla if you don't mind.
>
> by the way: should there be a reason why we don't just provide access to
> the datatype on every widget?
because only fields and multivaluefields know the concept of datatypes.
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org bruno@apache.org
Re: [cform] Multi Value Field
Posted by Marc Portier <mp...@outerthought.org>.
Danny,
you're making sense,
pls add this feature-request to bugzilla if you don't mind.
by the way: should there be a reason why we don't just provide access to
the datatype on every widget?
regards,
-marc=
Danny Bols wrote:
> Hi Cocoon Committers,
>
> the CFORM-API for MultiValueField is missing the getDataType() method which
> means I can't create any selection lists based on iterators in my Beans like
> I did to do with the Field class:
>
> StaticSelectionList list = new
> StaticSelectionList(myField.getDatatype());
> myField.setSelectionList(list);
>
>
> Anybody willing to add this method to the MultiValueField Class?
>
> Thanks
>
> --
> Danny
>
--
Marc Portier http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://blogs.cocoondev.org/mpo/
mpo@outerthought.org mpo@apache.org