dev@jsftemplating.java.net

"initPage" event

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Mon, 07 Aug 2006 06:44:58 -0700

I added an event type called "initPage". This event is invoked each
time a page is accessed. This includes refresh scenarios. This is
different than "beforeCreate" in that beforeCreate would only happen
during creation (hence its name). A page does *not* get re-created when
you refresh that page (i.e. click a button or hyperlink that causes the
same page to be shown). The "initPage" event *will* get invoked in this
case... this provides a convenient place to perform initialization tasks
for transient information that needs to be initialized each request /
page. Note, that if you navigate from page A to page B and both pages
perform the same initialization... the initialization will happen 2x.

Please let me know if you experience any problems or have any questions!

Thanks,

Ken