webanno-support/src/main/java/de/tudarmstadt/ukp/clarin/webanno/support/wicket/ContextMenu.java
public void onOpen(AjaxRequestTarget target)
    {
        onContextMenu(target, null);

        final IRequestParameters request = getRequest().getPostParameters();

        int clientX = request.getParameterValue("clientX").toInt();
        int clientY = request.getParameterValue("clientY").toInt();

        target.add(this);
        target.appendJavaScript(WicketUtil.wrapInTryCatch(String.format(
                "jQuery('%s').show().css({position:'fixed', left:'%dpx', top:'%dpx'});",
                JQueryWidget.getSelector(this), clientX, clientY)));
    }
/**
     * Fired by a component that holds a {@link ContextMenuBehavior}
     *
     * @param target
     *            the {@link AjaxRequestTarget}
     */
Fired by a component that holds a  ContextMenuBehavior
@param target
the  AjaxRequestTarget
Fired by a component that holds a ContextMenuBehavior @param target the AjaxRequestTarget
public void onOpen(AjaxRequestTarget target)
    {
        onContextMenu(target, null);
        final IRequestParameters request = getRequest().getPostParameters();
        int clientX = request.getParameterValue("clientX").toInt();
        int clientY = request.getParameterValue("clientY").toInt();
        target.add(this);
        target.appendJavaScript(WicketUtil.wrapInTryCatch(String.format(
                "jQuery('%s').show().css({position:'fixed', left:'%dpx', top:'%dpx'});",
                JQueryWidget.getSelector(this), clientX, clientY)));
    }
public void onOpen ( AjaxRequestTarget target ) { onContextMenu ( target , null ) ; final IRequestParameters request = getRequest ( ) . getPostParameters ( ) ; int clientX = request . getParameterValue ( "clientX" ) . toInt ( ) ; int clientY = request . getParameterValue ( "clientY" ) . toInt ( ) ; target . add ( this ) ; target . appendJavaScript ( WicketUtil . wrapInTryCatch ( String . format ( "jQuery('%s').show().css({position:'fixed', left:'%dpx', top:'%dpx'});" , JQueryWidget . getSelector ( this ) , clientX , clientY ) ) ) ; }
Fired by a component that holds a {@link ContextMenuBehavior}
 @param target
            the {@link AjaxRequestTarget}
Fired by a component that holds a { @link ContextMenuBehavior } @param target the { @link AjaxRequestTarget }