wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Question for Micheal Yuan and Thomas Heute: PageLoad and IsPostBack Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Question for Micheal Yuan and Thomas Heute: PageLoad and IsPostBack" Watch "Question for Micheal Yuan and Thomas Heute: PageLoad and IsPostBack" New topic
Author

Question for Micheal Yuan and Thomas Heute: PageLoad and IsPostBack

Chris Perrin
Greenhorn

Joined: Jul 29, 2003
Posts: 3
Hey guys,

Two features that I loved from .NET that JSF does not seem to supply are an onPageLoad event handler which is called after all the setters, but before any action methods and before the response is rendered.

Does/will Seam offer that?

Also, .NET has an IsPostBack boolean which is set to true if the page is a post back. Could Seam provide that information?
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
onPageLoad is well supported in Seam. You can use the pages.xml file to invoke any backend method when any page is loaded.

I am not sure about isPostBack ...


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
J.J. Jackson
Greenhorn

Joined: Jun 05, 2007
Posts: 9
Shale provides an isPostBack() method that's very useful. However, Seam's @Factory or @Create methods already address a common use case for isPostBack(); that is, "Do I need to initialize the data for this bean or is a postback occurring?"

--
jj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question for Micheal Yuan and Thomas Heute: PageLoad and IsPostBack