I'm not crazy about the tag libraries that are included with Struts 2, I've just learned ways to make them work. In this case, what the work-around is doing is formatting the value and storing it on the value stack, then referencing it from the textfield for it's value. It works, but like you say, it's a bit unwieldy. (*Chris*)
On Tue, Apr 29, 2008 at 11:04 PM, Marc Ende <[EMAIL PROTECTED]> wrote: > Chris, > > now I can format my output to the forms. But why is it this strange way. I > had expected that the formatting is > much easier for the textfields... > > thank you very much > > Marc > > Chris Pratt schrieb: > > > > > Maybe try: > > <s:text name="format.currency" id="model.currency"> > > <s:param name="value" value="model.price" /> > > </s:text> > > <s:textfield name="text.message" value="%{model.currency}"/> > > > > (*Chris*) > > > > > > On Tue, Apr 29, 2008 at 10:27 PM, Marc Ende <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > > > the examples are for output formatting in <s:text> but this doesn't > work > > > for <s:textfield>. > > > > > > This... > > > <s:textfield name="text.message"> > > > <s:param value="userName"/> > > > </s:textfield> > > > doesn't work... :( > > > > > > Regards > > > > > > Marc > > > > > > Okan Özeren schrieb: > > > > > > > > > > > > > > > > > > > This is the another page: > > > > > http://struts.apache.org/2.0.11/docs/how-to-format-dates-and-numbers.html > > > > > > > > > > > > On 4/30/08, Okan Özeren <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > This page may help you: > > > > > http://www.roseindia.net/struts/struts2/struts-2-format.shtml > > > > > > > > > > Regards. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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]