Ticket #98 (closed defect: duplicate)
Object.edit Scaffolding Errors With Dates and Integers
| Reported by: | dhughes | Owned by: | joe.rinehart |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Version: | 2.0.304 | Severity: | major |
| Keywords: | Cc: |
Description
I have a table which has a datetime and integer columns. When I scaffold an edit form for this table the resulting CFML has this code (as an example):
<cfinput type="text" class="input" maxLength="0" id="postedByUserId" name="postedByUserId" value="#Entry.getpostedByUserId()#" />
As you can see this has a maxLength of 0. This causes CF to throw an error:
Oops! Message Attribute validation error for tag CFINPUT. Detail The value of the attribute MAXLENGTH is invalid. The value specified, "0.0", must be greater than "0.0".
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)