AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
That looks cool but I need to embed the value in the html:text field so the user is able to edit the value. That won't work with 2 tags. :o( -Ursprüngliche Nachricht- Von: Lance [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. April 2007 10:45 An: Struts Users Mailing List Betreff:

Re: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
You could combine with struts-el !-- store in formattedNumber (don't output -- fmt:formatDate value=${myForm.myNumber} pattern=?? var=formattedNumber / !-- use the formatted value -- html-el:text property=myNumber value=${formattedNumber} / Peter Neu wrote: That looks cool but I need to

AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
Mailing List Betreff: Re: AW: HowTo Format Numbers in html:text tag? You could combine with struts-el !-- store in formattedNumber (don't output -- fmt:formatDate value=${myForm.myNumber} pattern=?? var=formattedNumber / !-- use the formatted value -- html-el:text property=myNumber value

Re: AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
Betreff: Re: AW: HowTo Format Numbers in html:text tag? You could combine with struts-el !-- store in formattedNumber (don't output -- fmt:formatDate value=${myForm.myNumber} pattern=?? var=formattedNumber / !-- use the formatted value -- html-el:text property=myNumber value=${formattedNumber

AW: AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
value. Does that make sense? -Ursprüngliche Nachricht- Von: Lance [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. April 2007 11:31 An: Struts Users Mailing List Betreff: Re: AW: AW: HowTo Format Numbers in html:text tag? Your brute force approach does not use html:text / tho? Also

Re: AW: AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Lance
? -Ursprüngliche Nachricht- Von: Lance [mailto:[EMAIL PROTECTED] Gesendet: Montag, 16. April 2007 11:31 An: Struts Users Mailing List Betreff: Re: AW: AW: HowTo Format Numbers in html:text tag? Your brute force approach does not use html:text / tho? Also, I have a suspicion that struts

AW: AW: AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
: AW: HowTo Format Numbers in html:text tag? Looks ok to me altho im not familiar with parse position You might wanna allow blank too if (price != null price.trim().length() != 0) { And catch NumberFormatException / set an error And setPriceDouble(null) in your forms reset() method