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

New view-controller command

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Complete
    • 1.1.0.M2
    • 1.1.0.M2
    • WEB MVC
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: