You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Paul Stanton (JIRA)" <ji...@apache.org> on 2013/03/08 06:46:13 UTC

[jira] [Commented] (TAP5-2081) datefield: cannot blank out date value via text input

    [ https://issues.apache.org/jira/browse/TAP5-2081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596852#comment-13596852 ] 

Paul Stanton commented on TAP5-2081:
------------------------------------

Copying the similar implementation from elsewhere in the datefield.js script, adding the following to the "selectDate" function (just before calling "sendServerRequest") resolves the issue.

// If the field is blank, don't bother going to the server to parse!
if (value == "") {
resultHandler.call(this, {"formatted":"", "value":""});
return;
} 
                
> datefield: cannot blank out date value via text input
> -----------------------------------------------------
>
>                 Key: TAP5-2081
>                 URL: https://issues.apache.org/jira/browse/TAP5-2081
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.6
>            Reporter: Paul Stanton
>              Labels: datefield
>
> If you select a date via the calendar, and then delete the value in the text field an exception is thrown since the server site method "onParse" does not accept a blank parameter.
> This should instead avoid going to the server for a parse, and set the current value to null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira