Hi,
i would like to add a bookmarkable page link to a clickable div.
But the event behavior of the div is always executed. Is there a
way to prioritize the event coming from the link?
Thanks
Per
<code>
Page.java
public class Page extends WebPage {
public Page(final PageParameters parameters) {
super(parameters);
final Label marker;
add(marker = new Label("marker", new Model<String>()));
marker.setOutputMarkupId(true);
WebMarkupContainer outer;
add(outer = (WebMarkupContainer) new
WebMarkupContainer("outer").add(new AjaxEventBehavior("onclick") {
@Override
protected void onEvent(AjaxRequestTarget target) {
marker.setDefaultModelObject("outer at " +
System.currentTimeMillis());
target.add(marker);
}
}));
BookmarkablePageLink<Void> inner;
outer.add(inner = new BookmarkablePageLink<Void>("inner",
OtherPage.class));
}
}
Page.html
<div>
<span wicket:id="marker">Present the event</span>
<div wicket:id="outer">
<a wicket:id="inner">Click</a>
</div>
</div>
</code>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]