Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1282

Extend @ActionLayout annotation with a routeTo attribute.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.10.0
    • None
    • None

    Description

      This would extend the work started in ISIS-666 (the RoutingService), and extended in ISIS-1286, the idea being to allow the routing strategy to be defined at a more fine-grained level with the action, rather than globally in a service.

      Suggest a new attribute "routeTo()" attribute on @ActionLayout, eg:

      @ActionLayout(
      routeTo=RouteToThis.class
      )
      public void foo()

      { ... }

      where:

      public class RouteToThis implements ActionRouter {
      public boolean canRoute(Object original);
      public Object route(Object original);
      }

      If present then the RoutingService would instantiate and delegate to this router object.

      Note that the attribute is on @ActionLayout rather than @Action because this is a UI concern only.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: