You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ivan Khalopik (JIRA)" <ji...@apache.org> on 2013/03/28 17:55:19 UTC
[jira] [Updated] (TAP5-2100) ZoneRefresh mixin triggers refresh
event with wrong context
[ https://issues.apache.org/jira/browse/TAP5-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Khalopik updated TAP5-2100:
--------------------------------
Attachment: 0001-TAP5-2100-ZoneRefresh-mixin-triggers-refresh-event-w.patch
> ZoneRefresh mixin triggers refresh event with wrong context
> -----------------------------------------------------------
>
> Key: TAP5-2100
> URL: https://issues.apache.org/jira/browse/TAP5-2100
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3.6
> Reporter: Ivan Khalopik
> Attachments: 0001-TAP5-2100-ZoneRefresh-mixin-triggers-refresh-event-w.patch
>
>
> ZoneRefresh mixin triggers refresh event with context populated from parameter instead of context from event link.
> Before render script it creates event link with context:
> private Object createEventLink()
> {
> Link link = resources.createEventLink("zoneRefresh", context);
> return link.toAbsoluteURI();
> }
>
> But then it uses context parameter instead of context from event link:
> Object onZoneRefresh()
> {
> CaptureResultCallback<Object> callback = new CaptureResultCallback<Object>();
> resources.triggerEvent(EventConstants.REFRESH, context, callback);
>
> if(callback.getResult() != null){
> return callback.getResult();
> }
>
> return zone.getBody();
> }
--
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