History | Log In     View a printable version of the current page.  
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
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"/>



 All   Comments   Change History   FishEye      Sort Order:
There are no comments yet on this issue.