struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Huber <gregh3...@gmail.com>
Subject Re: Struts 2.6
Date Tue, 28 Nov 2017 08:44:10 GMT
>Right, a bit annoying ... but that makes me think that we can use the
>'format.numer' directly in the converter

Some kind of formatting would be useful and possibly eliminate the
getText() call.

Tried number, but it is an output field only, also

<s:number name="bean.size" maximumFractionDigits="1" />  still shows 10,
does not seem to do anything?



On 28 November 2017 at 08:27, Lukasz Lenart <lukaszlenart@apache.org> wrote:

> 2017-11-28 9:21 GMT+01:00 Greg Huber <gregh3269@gmail.com>:
> > It works ok, but I want to show the digits (.0).  Is there any way I can
> > now easily do this?
>
> Sorry but no :(
>
> > My price fields I have to manually set the value:
> >
> > <s:textfield name="bean.price"
> > value="%{getText('format.number',{bean.price})}" size="5" maxlength="6"
> />
>
> Right, a bit annoying ... but that makes me think that we can use the
> 'format.numer' directly in the converter
>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message