3
2
1

After clicking on my custom menu item I see this screen without main menu and messages:

As you can see therre is no menu. Why? My atlassian-plugin.xml is:

and view.ftl is:

How can I resolve this problem? and return main menu like at this picture???

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      I haven't developed for Crowd yet, but in other Atlassian Tools you need to call the right decorators for that. Just have a look at some built-in actions.

      1. au

        I've found in folder webapp/WEB-IF/decorators.xml this code:

        In my template I use meta-tag <meta name="decorator" content="main" /> but main menu doesn't appear. What is a problem it can be??? Have I missed something? And as you can see on the picture all messages i18n are disappear too. May be it is a probleme of crowd?

      CommentAdd your comment...
    2.  
      1
      0
      -1

      I was able to get this to work by adding the following to my pom.xml:

      And then making my Action extend com.atlassian.crowd.console.action.BaseAction and set my view.ftl to look like:

      Note I ripped some data from the systeminfo page, replace it with whatever you would normally use. I also changed the package I extended in atlassian-plugin.xml from default to admin to pick up on any customizations.

      I still would like to know if there is any way to use JSP, it seems like there would have to be a special mechanism in place that takes the file out of the JAR and makes it appear like its on the file path for the webapp and I'm not sure if there is any existing support for that, although something of this nature is working for this FTL we are using.

      I also couldn't manage to get the @ww.component tag to import a template I've created, I think it too is looking on the file path and not inside the classpath, which I also find weird considering the main template for the action works fine. I also couldn't get it to import the existing JSP templates, I get a NPE when it tries to retrieve the JSP PageContext object, I'm guessing JSP templates aren't intended to be rendered inside Freemarker templates?

      Edit: Turns out you don't want to put Freemarker tags into your answers here as it will actually render their result...

        CommentAdd your comment...