sebfz1 / wicket-jquery-ui

jQuery UI & Kendo UI integration in Wicket
http://www.7thweb.net/wicket-jquery-ui/
Other
93 stars 58 forks source link

Access denied when use ContextMenu(right click on disabled link) #293

Closed try0 closed 4 years ago

try0 commented 6 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