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:
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
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
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
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
?
-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: 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
7 matches
Mail list logo