Closed try0 closed 4 years ago
When I right click on invalid link to which ContextMenuBehavior was added, AccessDeniedPage is displayed. Is this usage mistaken? Should I add ContextMenuBehavior only to valid links?
<a wicket:id="testLink">invalidLink</a>
add(new AjaxLink<Void>("testLink") { { add(new ContextMenuBehavior(contextMenu)); setEnabled(false); } @Override public void onClick(AjaxRequestTarget target) { ... } });
wicket: 7.9.0 wicket-jquery-ui: 7.9.2 contextMenu: com.googlecode.wicket.jquery.ui.widget.menu.ContextMenu
When I right click on invalid link to which ContextMenuBehavior was added,
AccessDeniedPage is displayed.
Is this usage mistaken?
Should I add ContextMenuBehavior only to valid links?
wicket: 7.9.0
wicket-jquery-ui: 7.9.2
contextMenu: com.googlecode.wicket.jquery.ui.widget.menu.ContextMenu