tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vjeran Marcinko (JIRA)" <...@tapestry.apache.org>
Subject [jira] Commented: (TAPESTRY-2085) Empty textfield submits null value
Date Sat, 26 Jan 2008 20:12:34 GMT

    [ https://issues.apache.org/jira/browse/TAPESTRY-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562913#action_12562913
] 

Vjeran Marcinko commented on TAPESTRY-2085:
-------------------------------------------

Ah, sorry for complaint... It seems I missed the point :-(

I understand that some things that worked before don't work anymore, and they should definetly
be resolved somehow, and that's the issue here. Thing is that I am afraid that issues will
be resolved in a way that would lead to just setting empty string values to bound property
like it was before, and I think a lot of users would not prefer that way. If I remember correctly,
T3 has been setting empty values and T4 has been doing it with null values. I had definetly
prefered the later.

> Empty textfield submits null value
> ----------------------------------
>
>                 Key: TAPESTRY-2085
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2085
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0.10
>            Reporter: Kevin Menard
>            Priority: Critical
>
> This was initially reported on the dev list by Geoff Callender.
> When submitting a form containing a textfield and nothing has been typed into that textfield,
the value will be submitted as null rather than the empty string.  In past version, the empty
string would be submitted.
> The net result is NPEs and coercion issues.  If the textfield is bound to a String and
that String is used without checking for null, an NPE will result when none used to.  If the
textfield is bound to any other type, such as an Integer, the Tapestry type coercer will fail
with an appropriate exception (e.g., NumberFormatException).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message