tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thiago H. de Paula Figueiredo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2225) Create client-side API to call a component's event handler methods
Date Fri, 13 Nov 2015 13:16:10 GMT

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

Thiago H. de Paula Figueiredo commented on TAP5-2225:
-----------------------------------------------------

Hello, [~jkemnade]!
I still want to do that, but I don't know when I'll be able to do it. :( My plan is a mixin
which is applied automatically to pages and components with a given annotation that would
add some data-* attributes describing the events that are handled by that page or component.
A new JS module would use these attributes to discover and trigger these events.
What do you mean by non-nested pages?

> Create client-side API to call a component's event handler methods
> ------------------------------------------------------------------
>
>                 Key: TAP5-2225
>                 URL: https://issues.apache.org/jira/browse/TAP5-2225
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Jochen Kemnade
>            Assignee: Thiago H. de Paula Figueiredo
>              Labels: ajax, event, handler, javascript
>
> It should be possible to create URLs for components' event handlers on the client side.
> There could be a function that mirrors the behavior of ComponentResources#createEventLink.
It might be passed an event name or an object with additional information such as a page name,
a request context, or additional request parameters.
> The function could either return the URL or a function that makes an XHR and passes the
response to a callback.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message