Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-820

New view-controller command

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.0.M2
    • Fix Version/s: 1.1.0.M2
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      As a user, I'd like a view-controller command to generate mvc:view-controller elements that select views for rendering.

      Proposed syntax:

      view-controller --path {path} --viewName {name}
      

      viewName is required.
      path is optional.

      When run, a mvc:view-controller element should be added to /META-INF/spring/${dispatcherServlet-name}/controllers.xml. The view template should be added to /WEB-INF/views/${viewName}.${extension} e.g. /WEB-INF/views/home.jsp.

      Example:

      view-controller -path / --viewName home
      Managed /META-INF/spring/petcare/controllers.xml
      Created /WEB-INF/views/home.jsp
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              kdonald Keith Donald
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: