tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seth Call (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TAP5-940) Zone should fire a heart beat event
Date Mon, 14 Dec 2009 22:45:18 GMT

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

Seth Call commented on TAP5-940:
--------------------------------

/** The following is a workaround for this issue */

import org.apache.tapestry5.annotations.*;
import org.apache.tapestry5.corelib.components.Zone;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.Heartbeat;
import org.apache.tapestry5.services.Request;

/** Place on zones sent back in Ajax to fix https://issues.apache.org/jira/browse/TAP5-940
*/
public class BmBm {

    @Environmental
    private Heartbeat heartbeat;

    @InjectContainer
    private Zone zone;

    @Inject
    private Request request;

    @BeginRender
    public void beginRender() {
        if (request.isXHR()) {
            heartbeat.begin();
        }
    }

    @AfterRender
    public void afterRender() {
        if (request.isXHR()) {
            heartbeat.end();
        }
    }


> Zone should fire a heart beat event
> -----------------------------------
>
>                 Key: TAP5-940
>                 URL: https://issues.apache.org/jira/browse/TAP5-940
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.1.0.5
>            Reporter: mindhawk
>            Priority: Minor
>
> If there is not a component in Zone fire a heart beat event, the forced attributes would
not return to the client, although the page would fire this event at the end. 

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


Mime
View raw message