struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sauli Ketola" <sauli.ket...@fasolutions.fi>
Subject RE: S2: Formatting s:textfield values
Date Mon, 30 Jul 2007 08:32:43 GMT
Currently I get around this problem like this:

<!-- format the value in jsp -->
<s:text id="formattedValue" name="key.in.properties.file"><s:param name="value" value="realValue"/></s:text>
			
<!-- refer to the formatted value -->
<s:textfield value="%{formattedValue}" name="realValue" size="3" /></td>


in properties file:
key.in.properties.file={0,number,0.##}


S.

-----Original Message-----
From: Célio Cidral Junior [mailto:ccidral.newsbox@gmail.com] 
Sent: 21. kesäkuuta 2007 22:23
To: user@struts.apache.org
Subject: Re: S2: Formatting s:textfield values

I'm having the same problem. I consider this an important issue, so
why this thread got no response?

Célio

2007/4/11, Sauli Ketola <sauli.ketola@fasolutions.fi>:
> Hi,
>
> Is there a way to format the value of a s:textfield like it possible
> with s:text?
>
> For example what would be the equivalent of "<s:text
> name="format.money"><s:param name="value"
> value="myMoneyValue"/></s:text>" for <s:textfield>/<s:textarea>?
>
> S.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message