You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org> on 2008/02/19 12:10:44 UTC

[jira] Commented: (TAPESTRY-2175) CLONE -DateField can not leverage full Calendar behavior because it only supports JSON, not full JavaScript hash, for configuring the Calendar

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

Igor Drobiazko commented on TAPESTRY-2175:
------------------------------------------

May I clone the issue? It is still relevant because of TAPESTRY-2129, which was closed as a duplicate of TAPESTRY-1939

> CLONE -DateField can not leverage full Calendar behavior because it only supports JSON, not full JavaScript hash, for configuring the Calendar
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2175
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2175
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.6
>         Environment: -
>            Reporter: Igor Drobiazko
>            Assignee: Howard M. Lewis Ship
>
> DateField is Tapestry 5 is based on the excellent dynarch.com DHTML/JavaScript Calendar. This calendar provides hooks for javascript callback functions. 
> Currently it's not possible to define such an clientside javascript function because the method JSONObject#valueToString is always quoting all the elements of the json object, while javascript expects a reference to a javascript function
> Therefore the js-error:  "... not a function" is given.
> For example: what is needed is: 
> Calendar.setup({"inputField":"a","ifFormat":"%d-%m-%y","button":"a:trigger","onUpdate":afterUpdateElement});
> while DateField outputs: 
> Calendar.setup({"inputField":"a","ifFormat":"%d-%m-%y","button":"a:trigger","onUpdate":"afterUpdateElement"}); // <-- difference is in the quotes round afterUpdateElement
> issue is similar to TAPESTRY-1795 (tapestry 4)

-- 
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