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:[EMAIL PROTECTED] 
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 <[EMAIL PROTECTED]>:
> 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: [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]

Reply via email to