Using Stripes 1.5.7, I have an action bean to process a form. One
field is a BigDecimal. When it has a small value (in this case
0.00013450), it is being displayed as 0 when used in conjunction with
a stripes text box, text area or even hidden field :
stripes:text name=btcCost size=20 /
If I use
You can tell Stripes how to format the field value via the
formatType and formatPattern attributes of s:text. The type in
your case would probably be number, and the pattern would be either
a resource key for a pattern stored as a Stripes property, or else a
raw java.text.MessageFormat pattern.
Ahh that works, thanks :)
So as an aside, is the number converter defaulting to an int/long
representation causing the display of 0?
On Fri, Mar 15, 2013 at 3:15 PM, Mike McNally emmecin...@gmail.com wrote:
You can tell Stripes how to format the field value via the
formatType and formatPattern
Well I *think* it uses the default format for the effective locale.
On Fri, Mar 15, 2013 at 2:37 PM, Chris Cheshire cheshira...@gmail.com wrote:
Ahh that works, thanks :)
So as an aside, is the number converter defaulting to an int/long
representation causing the display of 0?
On Fri, Mar
I'm still new to stripes but last week I had an issue where it wasn't using the
correct type convertor on a binding.
So I have a hibernate object that has an attribute represented as a varchar in
the database and it's java type is a String
However I wanted to filter based on a type of Enum.