Tapestry
  1. Tapestry
  2. TAPESTRY-1370

Add a component event result processor for Class instances

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.5
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      I find that my event handlers that need to redirect to other pages often return a string:

      return Start.class.getSimpleName();

      It would be nice if I could just return a Class instance:

      return Start.class;

      This change would involve a new class, ClassResultProcessor, implementing ComponentEventResultProcessor, plus a line in TapestryModule#contributeComponentEventResultProcessor to add it to the configuration.

        Activity

        Daniel Gredler created issue -
        Daniel Gredler made changes -
        Field Original Value New Value
        Assignee Daniel Gredler [ sdanig ]
        Daniel Gredler made changes -
        Fix Version/s 5.0.5 [ 12312477 ]
        Fix Version/s 5.0 [ 12312018 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Howard M. Lewis Ship made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12399784 ] Default workflow, editable Closed status [ 12567910 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567910 ] jira [ 12591035 ]

          People

          • Assignee:
            Daniel Gredler
            Reporter:
            Daniel Gredler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development