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:21:42 GMT
It works ok, but I want to show the digits (.0).  Is there any way I can
now easily do this?

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" />

On 28 November 2017 at 08:15, Yasser Zamani <yasserzamani@apache.org> wrote:

>
>
> On 11/28/2017 11:34 AM, Greg Huber wrote:
> > Previously, if its value was 10 it used to show 10.0 now it only shows
> 10.
> > ie missing the decimal point and a zero.
>
> Yes, we dropped `.setMinimumFractionDigits(1)` [1]. Do you have any
> issue when post back the value to your action?
>
> [1]
> https://github.com/apache/struts/pull/173/commits/
> 66ae66141362e3fd1c3db26149e15619f6c20fcb
>

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