tags:

views:

1131

answers:

1

Using Spring 2.5 tag library,

I have an Integer value in a command form that's rendered on my page using <form:input path="budget" htmlEscape="true" />

When the value is > 999, it renders the number as value="x,xxx" on the page. My validation isn't expecting the comma and rejects the value.

Is there a fix for the rendering, or do I need to fix the validation and parsing?

A: 

As usual, I was just being blind, and discovered that there was a custom property editor bound to the command form in the controller. It was causing the input field to render with commas.

That would have been fine, if there also wasn't a JavaScript validation that rejected the field for having commas in it.

Mojo