I have a text box bound to a non-primitive Integer value and I keep
getting the following error when I submit the form:

The input value '' is not parseable as an integer value.

The default NullFieldStrategy is to keep nulls as null, so I don't think
I have to include that new attribute.

My TML is as follows is:

<tr t:type="loop" source="departmentTaxEntries"
value="currentDepartmentTaxEntry" encoder="departmentTaxEncoder">
        <td><t:textField t:id="departmentId" disabled="disabled"
value="currentDepartmentTaxEntry.departmentId" size="2" maxlength="2"
t:validate="maxlength=2"/></td>
</tr>

I'm using a DefaultPrimaryKeyEncoder to encode the values back to the
server.  I'm guessing between that and the fact that Howard removed the
null check from the IntegerTranslator
(http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src
/main/java/org/apache/tapestry/internal/translator/IntegerTranslator.jav
a?r1=594319&r2=612962) is why I'm experiencing the issue.

Bug?  Jira?

Joel




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to