You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/07/05 10:28:35 UTC

[jira] [Created] (WICKET-4638) Make it possible to use JsonFunction as a AjaxCallListener's handler

Martin Grigorov created WICKET-4638:
---------------------------------------

             Summary: Make it possible to use JsonFunction as a AjaxCallListener's handler
                 Key: WICKET-4638
                 URL: https://issues.apache.org/jira/browse/WICKET-4638
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 6.0.0-beta2
            Reporter: Martin Grigorov
            Assignee: Martin Grigorov


Currently the IAjaxCallListener's handlers could be an instance of CharSequence. Wicket wraps them in JsonFunction and sets the respective parameters for the handler.

By making JsonFunction itself a CharSequence allows the developer to use it as a handler and to provide the whole JS function code, not just the body which makes the code looks a little bit strange because some variables are assumed to be passed (the parameters) from somewhere else.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WICKET-4638) Make it possible to use JsonFunction as a AjaxCallListener's handler

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4638.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.0.0-RC1
    
> Make it possible to use JsonFunction as a AjaxCallListener's handler
> --------------------------------------------------------------------
>
>                 Key: WICKET-4638
>                 URL: https://issues.apache.org/jira/browse/WICKET-4638
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 6.0.0-beta2
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 6.0.0-RC1
>
>
> Currently the IAjaxCallListener's handlers could be an instance of CharSequence. Wicket wraps them in JsonFunction and sets the respective parameters for the handler.
> By making JsonFunction itself a CharSequence allows the developer to use it as a handler and to provide the whole JS function code, not just the body which makes the code looks a little bit strange because some variables are assumed to be passed (the parameters) from somewhere else.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira