IntelliJ IDEA 14.0.0 Web Help

Creating Grails Views and Actions

IntelliJ IDEA provides intention actions to create views and actions "from usage".

To create an action from a view

  1. In a Grails *.gsp page, place the caret at a view that refers to a non-existent action.
  2. Press Alt+Enter, and choose Create Action from the suggestion list. The action is created in the controller, with the caret at the insertion point.
  3. Type the meaningful action code.

To create a grails view from an action

  1. In a Grails controller, place the caret at an action that refers to a non-existent view.
  2. Press Alt+Enter, and choose Create View (GSP page) from the suggestion list.
    create-grails-view

    A .gsp file with the corresponding name is created under the views directory of the Grails application.

See Also

Concepts:

Reference:

Web Resources:

Last modified: 12 November 2014
comments powered by Disqus