>> T3 you are right - my bad! :-)
> --- 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:08:25 +0200 > > but Inge would have to switch to T4 to be able to use translators ... . > In T3, you have to use NumericFIeld (I also stumbled over that) > > > -----Original Message----- > > From: Peter Ertl [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 29, 2005 5:04 PM > > To: Tapestry users > > Subject: Re: Editing int/Integer in a TextField component > > > > > > this worked for me > > > > page class: > > > > @Component(type = "TextField", bindings = { "value=test" }) > > public abstract TextField getTestInputField(); > > > > public abstract float getTest(); > > > > html template: > > > > <input type="text" jwcid="testInputField" > > translator="translator:number"/> > > > > > > > > > > > > > > > --- Ursprüngliche Nachricht --- > > > Von: Inge Solvoll <[EMAIL PROTECTED]> > > > An: Tapestry users <[email protected]> > > > Betreff: Editing int/Integer in a TextField component > > > Datum: Thu, 29 Sep 2005 16:48:27 +0200 > > > > > > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
