Issue Details (XML | Word | Printable)

Key: APF-922
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Matt Raible
Reporter: Nathan Anderson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

set "maxlength" attribute for input text fields when length is set for a @Column annotation

Created: 29/Sep/07 02:30 AM   Updated: 06/Nov/07 07:54 AM   Resolved: 06/Nov/07 07:54 AM
Component/s: Tools - AMP
Affects Version/s: 2.0 Final
Fix Version/s: 2.0.1


 Description  « Hide
If you have a POJO with a property like below:

@Column(length = 4, nullable = false)
public String getInitials() {
return initials;
}

Then the generated input tag should limit data entry to the length set in the POJO. See Struts 2 example below:

    <s:textfield key="person.initials" required="true" maxlength="4" cssClass="text medium"/>



Matt Raible made changes - 29/Sep/07 10:35 AM
Field Original Value New Value
Fix Version/s 2.0.1 [ 10092 ]
3035 by  Matt Raible (18 files)
02/Nov/07 01:08 AM (33 months, 12 days ago)
APF-922: Set maxlength attribute on text fields when length is set for a @Column annotation
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/jsf/form-view.ftl 3035 history download (+1 -1) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/tapestry/form-test.ftl 3035 history download (+3 -3) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/spring/form-view.ftl 3035 history download (+1 -1) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/jsf/list-test.ftl 3035 history download (+1 -2) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/jsf/web-tests.ftl 3035 history download (+4 -4) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/test/java/org/appfuse/tool/DataHelperTest.java 3035 history download (+14 -5) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/dao/dao-test.ftl 3035 history download (+1 -2) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/tapestry/web-tests.ftl 3035 history download (+4 -4) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/java/org/appfuse/tool/DataHelper.java 3035 history download (+36 -20) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/spring/formcontroller-test.ftl 3035 history download (+1 -1) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/dao/sample-data.ftl 3035 history download (+1 -1) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/tapestry/form-view.ftl 3035 history download (+1 -1) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/struts/action-test.ftl 3035 history download (+3 -3) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/spring/web-tests.ftl 3035 history download (+4 -4) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/service/manager-test.ftl 3035 history download (+1 -2) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/struts/form-view.ftl 3035 history download (+2 -2) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/jsf/form-test.ftl 3035 history download (+3 -3) diffs
appfuse: trunk/plugins/appfuse-maven-plugin/src/main/resources/appfuse/web/struts/web-tests.ftl 3035 history download (+4 -4) diffs

Matt Raible made changes - 06/Nov/07 07:54 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]