Hi,

the DIV element within the For component has an @EventListener
attached. When i click on it my listener method SOMETIMES gets invoked
more than once!!! (twice)

This happens in 4.1.1 and 4.1.2-SNAPSHOT (20070121).

>From the generated HTML page i can see that the Javascript code
for attaching the events gets generated twice... but only sometimes :)

Anyone experienced the same problem? Is it a bug?
Any workaround would be appreciated.

html file
<li jwcid="list_gp">
  <div jwcid="[EMAIL PROTECTED]" class="ognl:classForGP">
    <p>
      <span jwcid="list_gp_info">lastname, firstname, zip city</span>
    </p>
  </div>
</li>

page file
<component id="list_gp" type="For">
  <binding name="source" value="ognl:GPList" />
  <binding name="value"  value="gpObject" />
</component>

java file
@EventListener(events={"onclick"},targets="gpdiv")
public void doClick(BrowserEvent event) {
  System.out.println("click: " + event.getTarget().get("id"));
}

greetings
kris


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

Reply via email to