You should take a look at @TextField in T4. It got a _lot_ better. especially you can now specify a numeric format pattern.
e.g. <input type="text" jwcid="testInputField" displayName="Wert" translator="translator:number, pattern=0.00" validators="validators:required, maxLength=10" /> > --- Ursprüngliche Nachricht --- > Von: Schulte Marcus <[EMAIL PROTECTED]> > An: 'Tapestry users' <[email protected]> > Betreff: RE: Editing int/Integer in a TextField component > Datum: Thu, 29 Sep 2005 17:05:32 +0200 > > I use @contrib:NumericField for numbers - that's anyway nicer - for checks > and such > > Marcus > > > -----Original Message----- > > From: Inge Solvoll [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 29, 2005 4:48 PM > > To: Tapestry users > > Subject: Editing int/Integer in a TextField component > > > > > > For T3 > > > > I have run into a problem I didn't except to run into. > > > > I have an object with a property of type int, which I would > > like to edit > > in a TextField on my page. But I get the following error: > > > > "Parameter value (2) is an instance of java.lang.Integer, > > which does not > > inherit from java.lang.String." > > > > Is there a solution for this, or do I have to provide a new field of > > type String, that I convert myself? I would not like to do > > this, since > > it would force me into a less clean solution. > > > > Inge > > > > --------------------------------------------------------------------- > > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
