Hi,
I also noticed, that when you specify a length constraint, the maxlength field for inputs on the ui is not adjusted.
Hi,
here is the situation:
I have a Customer object with an attribute named street. I added min and max constraints.
I scaffolded a controller and thought everything was great. However when recording my selenium tests I noticed that the field for street did not allow me to enter the complete test string I had chosen allthough it was definitely shorter than 120 chars. The problem is in the view automatically generated by roo. They length of the input does not fit the max value in the user constraint.Code:public class Customer { ... @Size(min=0, max=120) private String street; ...
Example:
Presentation:
Of course I could fix the maxlength attribute, but as soon as I need to make changes to my Customer object, the view with the wrong maxlength value will be regenerated.Code:<form:input cssStyle="width:250px" id="_street_id" maxlength="30" path="street" size="0"/>
Is this a known problem? How could I work around this?


Reply With Quote