You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Borut Bolcina (JIRA)" <de...@tapestry.apache.org> on 2007/04/03 22:05:32 UTC

[jira] Created: (TAPESTRY-1398) @EventListener in any component doesn't get called

@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>
                           </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


[jira] Resolved: (TAPESTRY-1398) @EventListener in any component doesn't get called

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ 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