Java Doc for AbstractPageBean.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » appbase » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » com.sun.rave.web.ui.appbase 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.rave.web.ui.appbase.FacesBean
      com.sun.rave.web.ui.appbase.AbstractPageBean

All known Subclasses:   vehicleincidentreportapplication.AddVehicle,  vehicleincidentreportapplication.FindVehicle,  vehicleincidentreportapplication.ReportIncident,  singlepagecrudform.Page1,  vehicleincidentreportapplication.Help,  twopagecrudtable.CreatePage,  movieadmin.Preview,  travelcenter.Details,  travelcenter.Help,  vehicleincidentreportapplication.ChooseVehicle,  twopagecrudtable.Page1,  twopagecrudtable.UpdatePage,  vehicleincidentreportapplication.Vehicles,  vehicleincidentreportapplication.NewUser,  vehicleincidentreportapplication.IncidentReported,  vehicleincidentreportapplication.Login,  singlepagecrudtable.Page1,  vehicleincidentreportapplication.Profile,  travelcenter.Page1,  movieadmin.Page1,
AbstractPageBean
abstract public class AbstractPageBean extends FacesBean (Code)

AbstractPageBean is the abstract base class for every page bean associated with a JSP page containing JavaServer Faces components. It extends FacesBean , so it inherits all of the default integration behavior found there.

In addition to event handler methods that you create while building your application, the runtime environment will also call the following lifecycle related methods at appropriate points during the execution of your application:

  • init() - Called whenever you navigate to the corresponding JSP page, either directly (via a URL) or indirectly via page navigation from a different page. You can override this method to acquire any resources that will always be needed by this page.
  • preprocess() - If this request is a postback (i.e. your page is about to process an incoming form submit, this method will be called after the original component tree has been restored, but before any standard JavaServer Faces event processing is done (i.e. this is called before Apply Request Values phase of the request processing lifecycle). Override this method to acquire any resources that will be needed by event handlers (such as action methods, validator methods, or value change listener methods) that will be executed while executing the request processing lifecycle.
  • prerender() - If this page is the one that will be rendering the response, this method is called after any event processing, but before the actual rendering. Override this method to acquire resources that are only needed when a page is being rendered.
  • destroy() - Called unconditionally if init() was called, after completion of rendering by whichever page was actually rendered. Override this method to release any resources allocated in the init(), preprocess(), or prerender() methods (or in an event handler).

For advanced users, and as a carry forward from previous versions of Sun Java Studio Creator, page bean instances are also registered automatically as a JavaServer Faces PhaseListener. For each lifecycle phase, there is an appropriate "before" and "after" event method, which you can override to provide phase-specific behavior. For example, if you wanted to provide some special logic that happened before or after the Update Model Values phase, you would override one of the methods:

 public void beforeUpdateModelValues();
 public void afterUpdateModelValues();
 



Constructor Summary
public  AbstractPageBean()
    

Method Summary
protected  voidafterApplyRequestValues()
    
protected  voidafterInvokeApplication()
    
public  voidafterPhase(PhaseEvent event)
    
protected  voidafterProcessValidations()
    
protected  voidafterRenderResponse()
    
protected  voidafterRestoreView()
    
protected  voidafterUpdateModelValues()
    
protected  voidbeforeApplyRequestValues()
    
protected  voidbeforeInvokeApplication()
    
public  voidbeforePhase(PhaseEvent event)
    
protected  voidbeforeProcessValidations()
    
protected  voidbeforeRenderResponse()
    
protected  voidbeforeRestoreView()
    
protected  voidbeforeUpdateModelValues()
    
public  voiddestroy()
    

Callback method that is called after rendering is completed for this request, if init() was called, regardless of whether or not this was the page that was actually rendered.

public  voidinit()
    

Callback method that is called whenever a page is navigated to, either directly via a URL, or indirectly via page navigation.

protected  booleanisPostBack()
    

Return true if the current request was a post back for an existing view, rather than the creation of a new view.

public  voidpreprocess()
    

Callback method that is called after the component tree has been restored, but before any event processing takes place.

public  voidprerender()
    

Callback method that is called just before rendering takes place. This method will only be called for the page that will actually be rendered (and not, for example, on a page that handled a post back and then navigated to a different page).

protected  voidrenderResponse()
    

Skip any remaining request processing lifecycle phases for the current request, and go immediately to Render Response phase.

protected  voidresponseComplete()
    

Skip any remaining request processing lifecycle phases for the current request, including Render Response phase.



Constructor Detail
AbstractPageBean
public AbstractPageBean()(Code)

Construct a new instance of this bean.





Method Detail
afterApplyRequestValues
protected void afterApplyRequestValues()(Code)



afterInvokeApplication
protected void afterInvokeApplication()(Code)



afterPhase
public void afterPhase(PhaseEvent event)(Code)

Call through to the appropriate "after event" method, depending upon the PhaseId in this event.


Parameters:
  event - PhaseEvent to be processed



afterProcessValidations
protected void afterProcessValidations()(Code)



afterRenderResponse
protected void afterRenderResponse()(Code)



afterRestoreView
protected void afterRestoreView()(Code)



afterUpdateModelValues
protected void afterUpdateModelValues()(Code)



beforeApplyRequestValues
protected void beforeApplyRequestValues()(Code)



beforeInvokeApplication
protected void beforeInvokeApplication()(Code)



beforePhase
public void beforePhase(PhaseEvent event)(Code)

Call through to the appropriate "before event" method, depending upon the PhaseId in this event.


Parameters:
  event - PhaseEvent to be processed



beforeProcessValidations
protected void beforeProcessValidations()(Code)



beforeRenderResponse
protected void beforeRenderResponse()(Code)



beforeRestoreView
protected void beforeRestoreView()(Code)



beforeUpdateModelValues
protected void beforeUpdateModelValues()(Code)



destroy
public void destroy()(Code)

Callback method that is called after rendering is completed for this request, if init() was called, regardless of whether or not this was the page that was actually rendered. Override this method to release resources acquired in the init(), preprocess(), or prerender() methods (or acquired during execution of an event handler).

The default implementation does nothing.




init
public void init()(Code)

Callback method that is called whenever a page is navigated to, either directly via a URL, or indirectly via page navigation. Override this method to acquire resources that will be needed for event handlers and lifecycle methods, whether or not this page is performing post back processing.

The default implementation does nothing.




isPostBack
protected boolean isPostBack()(Code)

Return true if the current request was a post back for an existing view, rather than the creation of a new view. The result of this method may be used to conditionally execute one time setup that is only required when a page is first displayed.




preprocess
public void preprocess()(Code)

Callback method that is called after the component tree has been restored, but before any event processing takes place. This method will only be called on a "post back" request that is processing a form submit. Override this method to allocate resources that will be required in your event handlers.

The default implementation does nothing.




prerender
public void prerender()(Code)

Callback method that is called just before rendering takes place. This method will only be called for the page that will actually be rendered (and not, for example, on a page that handled a post back and then navigated to a different page). Override this method to allocate resources that will be required for rendering this page.

The default implementation does nothing.




renderResponse
protected void renderResponse()(Code)

Skip any remaining request processing lifecycle phases for the current request, and go immediately to Render Response phase. This method is typically invoked when you want to throw away input values provided by the user, instead of processing them.




responseComplete
protected void responseComplete()(Code)

Skip any remaining request processing lifecycle phases for the current request, including Render Response phase. This is appropriate if you have completed the response through some means other than JavaServer Faces rendering.




Methods inherited from com.sun.rave.web.ui.appbase.FacesBean
protected void erase()(Code)(Java Doc)
protected void error(String summary)(Code)(Java Doc)
protected void error(UIComponent component, String summary)(Code)(Java Doc)
protected void fatal(String summary)(Code)(Java Doc)
protected void fatal(UIComponent component, String summary)(Code)(Java Doc)
protected Application getApplication()(Code)(Java Doc)
protected Map getApplicationMap()(Code)(Java Doc)
protected Object getBean(String name)(Code)(Java Doc)
protected List getCachedExceptions()(Code)(Java Doc)
protected FacesContext getContext()(Code)(Java Doc)
protected ExternalContext getExternalContext()(Code)(Java Doc)
protected FacesContext getFacesContext()(Code)(Java Doc)
protected Lifecycle getLifecycle()(Code)(Java Doc)
protected Map getRequestMap()(Code)(Java Doc)
protected Map getSessionMap()(Code)(Java Doc)
protected Object getValue(String expr)(Code)(Java Doc)
protected void info(String summary)(Code)(Java Doc)
protected void info(UIComponent component, String summary)(Code)(Java Doc)
protected void log(String message)(Code)(Java Doc)
protected void log(String message, Throwable throwable)(Code)(Java Doc)
public Object retrieveData(String key)(Code)(Java Doc)
public void saveData(String key, Object data)(Code)(Java Doc)
protected void setBean(String name, Object value)(Code)(Java Doc)
protected void setValue(String expr, Object value)(Code)(Java Doc)
protected void warn(String summary)(Code)(Java Doc)
protected void warn(UIComponent component, String summary)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.