cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Latty" <joe.la...@tias.com.au>
Subject RE: multivalue list - set a value greater than 1000
Date Thu, 07 Oct 2004 03:36:58 GMT
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>

-----Original Message-----
From: Paul Joseph [mailto:pjoseph_98@yahoo.com] 
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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message