org.apache.tapestry5.runtime
Interface PageLifecycleListener

All Known Subinterfaces:
Component, ComponentPageElement
All Known Implementing Classes:
ComponentPageElementImpl

public interface PageLifecycleListener

A set of methods that allow components to know about page-level operations.


Method Summary
 void containingPageDidAttach()
          Invoked when a page is first attached to the current request, giving components a chance to initialize for the current request.
 void containingPageDidDetach()
          Invoked when the page is detached, allowing components a chance to clear out any temporary or client specific state.
 void containingPageDidLoad()
          Invoked when the page finishes loading.
 void restoreStateBeforePageAttach()
          A kind of "pre-attach" phase allowing components to restore internal state before handling the actual attach; this is primarily used to restore persisted fields.
 

Method Detail

containingPageDidLoad

void containingPageDidLoad()
Invoked when the page finishes loading. This occurs once all components are loaded and all parameters have been set.


containingPageDidDetach

void containingPageDidDetach()
Invoked when the page is detached, allowing components a chance to clear out any temporary or client specific state.


containingPageDidAttach

void containingPageDidAttach()
Invoked when a page is first attached to the current request, giving components a chance to initialize for the current request.


restoreStateBeforePageAttach

void restoreStateBeforePageAttach()
A kind of "pre-attach" phase allowing components to restore internal state before handling the actual attach; this is primarily used to restore persisted fields.

Since:
5.1.0.1


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.