I need to be able to nest links and have the link clicked on trigger, but not its parent. I am not sure how to do this with a regular Link. Right now, I believe that I have a problem with event bubbling. The parent link it firing when I click on the child. Any help is appreciated.

Example:
An example would be a calendar day where the entire day is a link and the day contains text that is a different link. Clicking a day will open a panel that for inserting an event and clicking the text will open a different panel for editing the event.

<div wicket:id="parent">
<div>
      Click here to click paerent and insert
</div>
<table>
<tr>
<td>
<a href="#" wicket:id="child">to edit</a>
</td>
</tr>
</table>
</div>

final Link parent = new Link("parent"){
    protected void onClick() { open insert panel };
}
add(parent);
final Link child= new Link("child"){
    protected void onClick() { open edit panel };
}
parent.add(child);

Jered Myers


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to