Thank you very much - this fixed it. Of the three solutions suggested (how lucky one is to have the list!) I went with the plain convertor as that seemed to be closest to the root cause ;-)
Wonder why this problem doesn't show up for other widgets such as a simple field styled as drop-down, but appears to show up only for multivalue widgets --Paul --- Bruno Dumon <[EMAIL PROTECTED]> wrote: > On Thu, 2004-10-07 at 05:36, Joe Latty wrote: > > I think you will find that the value is being > formatted with 1,000 > > (hence no match) try adding this to your > multivaluefield > > > > <fd:datatype base="decimal"> > > <fd:convertor type="formatting" > datatype="number"> > > <fd:patterns> > > <fd:pattern>###</fd:pattern> > > </fd:patterns> > > </fd:convertor> > > </fd:datatype> > > > or simply use the "plain" convertor, which is > locale-independent: > > <fd:datatype base="decimal"> > <fd:convertor type="plain"/> > </fd:datatype> > > The source of the problem however is that the > formstransformer uses a > different locale then the the one used when > processing a form submit. > > > > > -----Original Message----- > > From: Paul Joseph [mailto:[EMAIL PROTECTED] > > Sent: Thursday, 7 October 2004 1:23 PM > > To: Cocoon Users > > Subject: multivalue list - set a value greater > than 1000 > > > > Hi, > > > > I have a multivalue widget that is populated with > a > > list of id's and labels. > > > > The id's are integers with values greater between > 1 > > and 16000. > > > > The widget saves to the database properly and the > list > > loads. > > > > However, if a selected widget has a value greater > than > > 1000, while it saves correctly to the database, I > am > > unable to set the value. It seems to silently > ignore > > setting values over 1000. > > > > ex. this does not seem to work: > > myInt1 = new java.lang.Integer(1000); > > model.dicttype_group[i].otherassignees=[myInt1]; > > > > But if I use 999, it works. > > > > Is this a bug by any chance? > > > > thx! > > Paul > -- > Bruno Dumon > http://outerthought.org/ > Outerthought - Open Source, Java & XML Competence > Support Center > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
