Jesse Kuhnert wrote:
Offhand I'd say the PageEvent object looks suspicious. It supports a
BrowserEvent object but might just pass your method by if it sees a
parameter it doesn't know about.

My experiments with a method with no arguments are also failing...

@EventListener(elements = "someId", events="onClick", async=true)
  public void testEvent() {
    log.info("Caught click!");
    System.out.println("Brute force msg...");
  }

:(


On 4/3/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote:
Hi all,

>> I cant get dojo EventListener to work.

The same happens with me :( Are there any preparatory steps to perform
to use EventListener? I have a template :

MyTemplate:
<span jwcid="@Shell" title=".:: Title ::."
   doctype='HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN'
   ajaxEnabled="true"
   browserLogLevel="DEBUG"
   debugEnabled="true">
   <body jwcid="@Body" onunload="purge(document)">
    <div jwcid="dp2scripts" />
    <div id="someId" href="#">click here...</div>
    ...
   </body>
</span>

Within MyTemplate.java:
public abstract class MyTemplate extends BaseComponent {
   private final static Logger log = Logger.getLogger(DP2Template.class);
   @EventListener(elements = "someId", events = "onmouseover")
   public void testEvent(PageEvent pe) {
     log.info("Caught click!");
   }
}

And it DOES NOT WORK :( Nothing appears on Tomcat's console...

Any advice would be greatly appreciated...
Wojtek

----------------------------------------------------------------------
On wie jak zyskać, a nie stracić.
Wideofelietony Tadeusza Mosza. Zobacz >> http://link.interia.pl/f1a3c


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






----------------------------------------------------------------------
Wideofelietony Tadeusza Mosza.
O biznesie dla wszystkich. Oglądaj >> http://link.interia.pl/f1a3c


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to