Grails Scaffolding Plugin
  1. Grails Scaffolding Plugin
  2. GPSCAFFOLD-62

Scaffolded views only available for scaffolded actions

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      Consider a scaffolded controller, whose views are all scaffolded as well. It is not possible to add an action to the controller that tries to render one of those scaffolded views, e.g.:

      class TestController {
      
          def scaffold = true
      
          def testaction = { render( view: "create" ) }
      }
      

      This is because ScaffoldingViewResolver's loadView-method requires the current action to be a scaffolded one - I do not understand why.
      The workaround is to generate the view - even though there's no real need to.

        Issue Links

          Activity

            People

            • Assignee:
              Burt Beckwith
              Reporter:
              Bart Robeyns
            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: