On Tue, 2003-12-02 at 14:34, Leszek Gawron wrote: > I have a selection list for integer field: > <wd:selection-list xmlns:wd="http://apache.org/cocoon/woody/definition/1.0"> > <wd:item value="66588"><wd:label>Asco</wd:label></wd:item> > <wd:item value="65753"><wd:label>Displaye</wd:label></wd:item> > [...] > </wd:selection-list> > > the problem is that if the field is of type string everything is ok but when I > change it to "integer" this is the output: > <wi:multivaluefield id="groups"> > <wi:values/> > <wi:label>Grupy</wi:label> > <wi:selection-list xmlns:wd="http://apache.org/cocoon/woody/definition/1.0"> > <wi:item value="66 588"><wi:label>Asco</wi:label></wi:item> > <wi:item value="65 753"><wi:label>Displaye</wi:label></wi:item> > <wi:item value="65 756"><wi:label>Gifty</wi:label></wi:item> > > The 0xA0 character gets inserted into every value!
This is done by the datatype's convertor. The selection list definition is translated to a list of Integer objects, which are then translated by the convertor to strings, so that when the values are read from the request, they are recognized again by the convertor. If you want just the plain numbers without any formatting applied, specify the "plain" convertor: <wd:convertor type="plain"/> inside the wd:datatype element. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED]
