[ 
https://issues.apache.org/jira/browse/OFBIZ-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644506#action_12644506
 ] 

vu hong thuan commented on OFBIZ-2021:
--------------------------------------

I think we would specify length of field type in ModelField.java
So we can get the specified length of field type to put into 
ModelFormField.java.
Then we can use
textField.setMaxlength(modelField.getLength())
instead of
textField.setMaxlength(Integer.valueOf(60));


> ModelFormField.java does not use the type size to define the 
> textField.setMaxlength
> -----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2021
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2021
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: BJ Freeman
>
> uses
>                 textField.setMaxlength(Integer.valueOf(60));
> instead of  setting it to the size defined by the type.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to