i did something like:

@Extension
public class MyRootAction extends Actionable implements RootAction, ModelObjectWithContextMenu {

public String getIconFileName() { return MyRootAction_ICONFILENAME; }

public String getDisplayName() { return MyRootAction_NAME; }

public String getUrlName() { return "MyRootAction"; }

@Override
public String getSearchUrl() { return MyRootAction_URL; }

public MyRootAction() { this.addAction(new MySubAction()); }

public ContextMenu doContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { ContextMenu menu = new ContextMenu(); menu.addAll(this.getAllActions); return menu; }
}

where MySubAction is like:

public class MySubAction implements Action {
@Override
public String getDisplayName() { return MySubAction_NAME; }

@Override
public String getIconFileName() { return MySubAction_ICONFILENAME; }

@Override
public String getUrlName() { return "MySubAction"; }
}

and then the links are broken because url in l99 is set to : myHostAdress//MyRootAction/MySubAction which gets later striped to /MyRootAction/MySubAction which is obvious no valid link.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to