Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1370

Add a component event result processor for Class instances

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: