Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1015

Provide a new return type for event handler methods that would trigger the rendering of a particular page without a redirect

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Currently, onActivate() has no ability to delegate the rendering to another page or stream without a redirect. It would be really helpful to support more return types from this method.

      Motivation: if the activation context is faulty you might want to keep the url the way it is and still be able to render a different page than the current page.

        Activity

        Hide
        hlship Howard M. Lewis Ship added a comment -

        I see this as supporting a new return type, say, StreamPageContent, that would trigger the rendering of a particular page.

        The use case here is that a given page's activation context represents a particular entity and the entity does not exist; it would be nice to be able to leave the URL unchanged but stream some other page's content (i.e., the "Foo Entity Not Found" page).

        Show
        hlship Howard M. Lewis Ship added a comment - I see this as supporting a new return type, say, StreamPageContent, that would trigger the rendering of a particular page. The use case here is that a given page's activation context represents a particular entity and the entity does not exist; it would be nice to be able to leave the URL unchanged but stream some other page's content (i.e., the "Foo Entity Not Found" page).
        Hide
        hudson Hudson added a comment -

        Integrated in tapestry-5.2-freestyle #162 (See http://hudson.zones.apache.org/hudson/job/tapestry-5.2-freestyle/162/)

        Show
        hudson Hudson added a comment - Integrated in tapestry-5.2-freestyle #162 (See http://hudson.zones.apache.org/hudson/job/tapestry-5.2-freestyle/162/ )

          People

          • Assignee:
            igor.drobiazko Igor Drobiazko
            Reporter:
            pardeike Andreas Pardeike
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development