How do I use a decorator in vm files?

Andy Li October 20, 2011

I am making a jira plugin, and when i create a vm file based on a jsp file, so many decorator in jsp file.

My question is how to use decorator in vm files.

For example, the code in jsp file as following:

<page:applyDecorator id="issue-create" name="auiform">
            <page:param name="action">CreateIssue.jspa</page:param>
            <page:param name="submitButtonName">Next</page:param>
            <page:param name="submitButtonText"><ww:text name="'common.forms.next'" /></page:param>
            <page:param name="cancelLinkURI"><ww:url value="'default.jsp'" atltoken="false"/></page:param>

            <aui:component template="formHeading.jsp" theme="'aui'">
                <aui:param name="'text'"><ww:text name="'createissue.title'"/></aui:param>
            </aui:component>

            <ww:property value="/field('project')/createHtml(null, /, /, /issueObject, /displayParams)" escape="'false'" />
            <ww:property value="/field('issuetype')/createHtml(null, /, /, /issueObject, /displayParams)" escape="'false'" />
        </page:applyDecorator>
What is the corresponding vm code?
Thansk in advance.

2 answers

0 votes
rkanumola December 12, 2014

I am also looking for the same, if any one could respond to this is appreciated!!. https://jira.atlassian.com/browse/JRA-41242 raised for the same. 

0 votes
Andy Li October 20, 2011

Or where can i get the tags documentation of velocity for Jira?

Suggest an answer

Log in or Sign up to answer