You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by KenLin <cl...@gmail.com> on 2007/07/12 12:50:41 UTC
[s2] formatting in textfield
How would I go about formatting a number in currency format in a textfield?
The only example I've seen is using the s:text tag, and it uses the name
attribute, which you obviously can't do in a textfield.
Thanks
--
View this message in context: http://www.nabble.com/-s2--formatting-in-textfield-tf4067347.html#a11557512
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [s2] formatting in textfield
Posted by yitzle <yi...@users.sourceforge.net>.
I would image you would need some on_change JavaScript.
I found this off Google:
http://javascript.internet.com/forms/currency-format.html
You might be able to adapt it somehow.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org