You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Célio Cidral Junior <cc...@gmail.com> on 2007/06/21 21:23:24 UTC
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 <sa...@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
RE: S2: Formatting s:textfield values
Posted by Sauli Ketola <sa...@fasolutions.fi>.
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 <sa...@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