tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Kuhnert (JIRA)" <...@tapestry.apache.org>
Subject [jira] Resolved: (TAPESTRY-1398) @EventListener in any component doesn't get called
Date Tue, 03 Apr 2007 21:00:32 GMT

     [ https://issues.apache.org/jira/browse/TAPESTRY-1398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesse Kuhnert resolved TAPESTRY-1398.
-------------------------------------

       Resolution: Invalid
    Fix Version/s: 4.1.2
         Assignee: Jesse Kuhnert

Nope....Just tested this out and it's working fine for me in 4.1.2. 

> @EventListener in any component doesn't get called
> --------------------------------------------------
>
>                 Key: TAPESTRY-1398
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1398
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.1.1
>         Environment: Tapestry 4.1.1 (can't use 4.1.2-SNAPSHOT becouse of OGNL-16), Tacos
4.1.0-SNAPSHOT, OGNL 2.6.9 
>            Reporter: Borut Bolcina
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>
> Annotation @EventListener doesn't emmit javascript neccesary to trigger a method on the
server if specified in a component (like Border).
> This doesn't get called becouse there is no javascript to make a dojo ajax call.
> ### Border.java ###
>    @EventListener(elements = "tab1", events = "onclick")
>    public void tab1Clicked()
>    {
>      logger.info("tab1 clicked");
>    }
> ### Border.html ###
>            <div id="myTabContainer">
>                <div id="tab1">
>                    <div id="treeArea">
>                        <div jwcid="tree" id="tree" style="overflow: auto; width: auto;
height: auto;">
>                            <a jwcid="nodeLink" href="folder.png">
>                                <img jwcid="icon" align="absbottom"/>
>                                <span jwcid="nodeLabel">Node 1</span>
>                            </a>
>                        </div>
>                    </div>
>                </div>                  
>                <div id="tab2">                                   
>                    <h3>This is tab 2.</h3>
>                </div>
>            </div>
> If a listener method is moved to an enclosing page (like Home), then it works - but it
is not very nice to have the method anywhere but in a component.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message