@EventListener(elements = "footerText", events = "onclick")
in Border.java also doesn't get called as no appropriate _javascript_ is generated.

Only
tapestry.cleanConnect(dojo.byId("xxx"), "onmouseover", "event1707250979");
tapestry.event1707250979=function(e){
var content={beventname:"onmouseover"};
tapestry.event.buildEventProperties(e, content);
if (!content["beventtarget.id"]) content["beventtarget.id"]="xxx";
tapestry.bind("/app;jsessionid=mdi2ry1irsjy?page=Home&service=directevent&session=T", content);
};
dojo.event.connect(dojo.byId("xxx"), "onmouseover", tapestry, "event1707250979");});


which is emmited becouse of 

### Home.java ###
    @EventListener(elements = "xxx", events = "onmouseover")
    public void divXXXOnMouseover()
    {
      logger.info("xxx mouse over");
    }
### Home.html ###
<div id="xxx">
         This div works. Border is wrapped around Home. 
</div>

Please advise,
Borut

On 27.3.2007 14:35, Borut Bolčina wrote:
Hello,

Why is this java method *not* invoked:

### Border.java ###
   @EventListener(elements = "tab1", events = "onclick")
   public void tab1Clicked()
   {
     logger.info("tab1 clicked");
   }
  ...and this one *is*.     @EventListener(elements = "footerText", events = "onclick")
   public void footerTextOnClick()
   {
     logger.info("footerText 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="">
                               <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>

...this works (also in Border.html, but outside TabContainer div)
<div id="footerText">No trees were harmed in making this application.</div>


Is this a bug?
Tapestry 4.1.1 (can't use 4.1.2-SNAPSHOT becouse of OGNL-16), Tacos 4.1.0-SNAPSHOT, OGNL 2.6.9

Cheers,
Borut


--
bbLOG

Reply via email to