You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2010/03/16 23:22:27 UTC

[jira] Commented: (TAP5-863) Tapestry.ajaxRequest is insufficient when doing extra, such as adding query parameters

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

Howard M. Lewis Ship commented on TAP5-863:
-------------------------------------------

Existing code continues to work as before. However, the second parameter can now be a Ajax.Request options object (with keys such as onSuccess and onFailure).  Defaults for onException and onFaliure are provided, and onSuccess is re-written (wrapped with some extra Tapestry checks and exception reporting).  Other keys, particularly parameters, are passed through as is.

> Tapestry.ajaxRequest is insufficient when doing extra, such as adding query parameters
> --------------------------------------------------------------------------------------
>
>                 Key: TAP5-863
>                 URL: https://issues.apache.org/jira/browse/TAP5-863
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.2.0
>
>
> The chief advantage of Tapestry.ajaxRequest is that it handles error & failure automatically. However, every time I write a new custom Ajax hook, I end up using Ajax.Request instead, because I need to specify query parameters. Having the ability to set Ajax.Request defaults (including query parameters) as part of the call to Tapestry.ajaxRequest would be very useful.  

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