Try adding nulls="zero" to your textfield.  There may still be a bug
in there.  I have closed TAPESTRY-2085 because I don't think the
current fix is just right yet.  Add your comments there
(https://issues.apache.org/jira/browse/TAPESTRY-2085).

Thanks!

On Feb 5, 2008 2:15 PM, Joel Wiegman <[EMAIL PROTECTED]> wrote:
> 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]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to