tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Callender (JIRA)" <...@tapestry.apache.org>
Subject [jira] Commented: (TAPESTRY-2085) Empty textfield submits null value
Date Fri, 25 Jan 2008 10:18:34 GMT

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

Geoff Callender commented on TAPESTRY-2085:
-------------------------------------------

In case this affects the choice of solution, note that the workaround created new problems
for the next page, called basicinput2...

The URL it created for the next oage is
	http://localhost:8180/jumpstart/examples/input/basicinput2//
instead of
	http://localhost:8180/jumpstart/examples/input/basicinput2/null/null

The side effects are:

1. The PageLinks on the page are no longer resolvable. eg.
	<a t:type="pagelink" t:page="Start" href="#">To Start</a>
is interpreted as
	http://localhost:8180/jumpstart/examples/input/start
instead of
	http://localhost:8180/jumpstart/start

2. The default stylesheet isn't loaded, presumable because its URL is generated incorrectly.



> 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