tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Borut Bolcina (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-1398) @EventListener in any component doesn't get called
Date Tue, 03 Apr 2007 20:05:32 GMT
@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

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>
               <div id="tab2">                                   
                   <h3>This is tab 2.</h3>

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

View raw message