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 Improvement
    • Status: Closed
    • Priority: Major 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
        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 added a comment - Integrated in tapestry-5.2-freestyle #162 (See http://hudson.zones.apache.org/hudson/job/tapestry-5.2-freestyle/162/ )
        Hide
        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
        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).

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development