Java Doc for ViewHandlerImpl.java in  » IDE-Netbeans » visualweb.api.designer » com » sun » rave » web » ui » appbase » faces » 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.faces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl

ViewHandlerImpl
public class ViewHandlerImpl extends ViewHandler implements PhaseListener(Code)

ViewHandler implementation that allows events to be triggered upon the occurrence of specific ViewHandler method calls. This implementation also posts relevant lifecycle events to initialized page beans, so it also implements PhaseListener.



Field Summary
final public static  StringCACHED_EXCEPTIONS
    

Request attribute key under which a List of any Exceptions thrown by a page bean event handler, and then logged and swallowed, will be cached.

final public static  StringCREATED_VIEW
    

The UIViewRoot attribute under which we store Boolean.TRUE when createView() is called.

final public static  StringPAGE_BEANS_CREATED
    

Request attribute key under which a List of the AbstractPageBean s that have been created for the current request are stored.


Constructor Summary
public  ViewHandlerImpl(ViewHandler handler)
    

Method Summary
public  voidafterPhase(PhaseEvent event)
    
public  voidbeforePhase(PhaseEvent event)
    
public static  voidcache(FacesContext context, Exception exception)
    

Cache the specified exception in a request scope attribute that application logic can use to invoke error processing.

public  LocalecalculateLocale(FacesContext context)
    
public  StringcalculateRenderKitId(FacesContext context)
    

Return an appropriate RenderKit identifier for this and subsequent requests from the current client.

public  UIViewRootcreateView(FacesContext context, String viewId)
    
public  StringgetActionURL(FacesContext context, String viewId)
    
public  PhaseIdgetPhaseId()
    
public  StringgetResourceURL(FacesContext context, String path)
    
public static  voidrecord(FacesContext context, AbstractPageBean bean)
    
public  voidrenderView(FacesContext context, UIViewRoot viewRoot)
    
public  UIViewRootrestoreView(FacesContext context, String viewId)
    

Perform necessary actions to restore the specified view and return a corresponding UIViewRoot.

public  voidwriteState(FacesContext context)
    

Field Detail
CACHED_EXCEPTIONS
final public static String CACHED_EXCEPTIONS(Code)

Request attribute key under which a List of any Exceptions thrown by a page bean event handler, and then logged and swallowed, will be cached. Application logic can check for such exceptions (perhaps during the destroy() method), to invoke application specific error processing.




CREATED_VIEW
final public static String CREATED_VIEW(Code)

The UIViewRoot attribute under which we store Boolean.TRUE when createView() is called. This can be used by the isPostBack() method to determine whether this view was restored (no such attribute present) and a postback is happening, or whether this view was created (no postback is happening).




PAGE_BEANS_CREATED
final public static String PAGE_BEANS_CREATED(Code)

Request attribute key under which a List of the AbstractPageBean s that have been created for the current request are stored. Typically, there will be either one or two page beans on this list, depending on whether page navigation has taken place or not, but will be more if/when static or dynamic includes are used.





Constructor Detail
ViewHandlerImpl
public ViewHandlerImpl(ViewHandler handler)(Code)

Construct a new ViewHandlerImpl that delegates to the specified ViewHandler instance.


Parameters:
  handler - The ViewHandler instance to which we will delegate




Method Detail
afterPhase
public void afterPhase(PhaseEvent event)(Code)

Process the specified after phase event.


Parameters:
  event - PhaseEvent to be processed



beforePhase
public void beforePhase(PhaseEvent event)(Code)

Process the specified before phase event.


Parameters:
  event - PhaseEvent to be processed



cache
public static void cache(FacesContext context, Exception exception)(Code)

Cache the specified exception in a request scope attribute that application logic can use to invoke error processing. All such cached exceptions will be available in the List used to maintain the cache.


Parameters:
  context - FacesContext for the current request
Parameters:
  exception - Exception to be cached



calculateLocale
public Locale calculateLocale(FacesContext context)(Code)

Return an appropriate Locale to use for this and subsequent requests for the current client.


Parameters:
  context - FacesContext for the current request
exception:
  NullPointerException - if contextis null



calculateRenderKitId
public String calculateRenderKitId(FacesContext context)(Code)

Return an appropriate RenderKit identifier for this and subsequent requests from the current client.
Parameters:
  context - FacesContext for the current request
exception:
  NullPointerException - if contextis null




createView
public UIViewRoot createView(FacesContext context, String viewId)(Code)

Create and return a new UIViewRoot instance initialized with information from this FacesContext for the specified viewId.


Parameters:
  context - FacesContext for the current request
Parameters:
  viewId - View identifier of the view to be created
exception:
  NullPointerException - if contextor viewId is null



getActionURL
public String getActionURL(FacesContext context, String viewId)(Code)

Return a URL suitable for rendering that selects the specified view identifier.


Parameters:
  context - FacesContext for the current request
Parameters:
  viewId - View identifier of the desired view
exception:
  NullPointerException - if contextor viewId is null



getPhaseId
public PhaseId getPhaseId()(Code)

Return PhaseId.ANY_PHASE because we are interested in all phase events.




getResourceURL
public String getResourceURL(FacesContext context, String path)(Code)

Return a URL suitable for rendering that selects the specified resource.


Parameters:
  context - FacesContext for the current request
Parameters:
  path - Context-relative resource path to reference
exception:
  NullPointerException - if contextor path is null



record
public static void record(FacesContext context, AbstractPageBean bean)(Code)

Record the specified AbstractPageBean on the list of page beans that have been , and therefore need to have their beforePhase() and afterPhase() methods called at appropriate times.


Parameters:
  context - FacesContext for this request
Parameters:
  bean - Page bean to be added to the list



renderView
public void renderView(FacesContext context, UIViewRoot viewRoot) throws IOException, FacesException(Code)

Perform the necessary actions to render the specified view as part of the current response.


Parameters:
  context - FacesContext for the current request
Parameters:
  viewRoot - View to be rendered
exception:
  NullPointerException - if contextor viewRoot is null



restoreView
public UIViewRoot restoreView(FacesContext context, String viewId)(Code)

Perform necessary actions to restore the specified view and return a corresponding UIViewRoot. If there is no view information to be restored, return null.


Parameters:
  context - FacesContext for the current request
Parameters:
  viewId - View identifier of the view to be restored
exception:
  NullPointerException - if contextor viewId is null



writeState
public void writeState(FacesContext context) throws IOException(Code)

Take appropriate action to save the current state information.


Parameters:
  context - FacesContext for the current request
exception:
  IOException - if an input/output error occurs
exception:
  NullPointerException - if contextis null



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