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

Scaffolded controller does not respect @RequestMapping of referenced entity

    XMLWordPrintable

Details

    Description

      I have a scaffolded controller FooController on domain object Foo that requires another domain object Bar.

      In FooController_Roo_Controller.aj, method createForm() there is this code:

      if (myService.countAllBars() == 0) {
      dependencies.add(new String[]

      { "bar", "bars" }

      );
      }

      However, I in BarController I changed the @RequestMapping to this:

      @RequestMapping("/admin/bar")
      @Controller
      @RooWebScaffold(path = "admin/bar", formBackingObject = Bar.class)
      public class BarController

      { ... }

      So, I expect to see this line in FooController_Roo_Controller.aj:
      dependencies.add(new String[]

      { "bar", "admin/bar" }

      );

      Attachments

        Activity

          People

            stewarta Alan Stewart
            macjariel MacJariel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: