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

        Andreas Pardeike created issue -
        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).
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Summary Add support to return other pages from onActivate() Add ability to have an activate event handler render another page entirely as the response
        Igor Drobiazko made changes -
        Assignee Igor Drobiazko [ igor.drobiazko ]
        Igor Drobiazko made changes -
        Summary Add ability to have an activate event handler render another page entirely as the response Provide a new return type for event handler methods that would trigger the rendering of a particular page without a redirect
        Igor Drobiazko made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.2.0 [ 12314122 ]
        Resolution Fixed [ 1 ]
        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/ )
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        162d 10m 1 Igor Drobiazko 24/Jul/10 14:32

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development