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


com.sun.jsfcl.app.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.

FIXME - may need to provide an implementation of Lifecycle as well, in order to ensure that afterRenderResponse works even in the face of exceptions thrown by application code.



Field Summary
final public static  StringCREATED_VIEW
    

Constructor Summary
public  ViewHandlerImpl(ViewHandler handler)
    

Method Summary
public  voidafterPhase(PhaseEvent event)
    
public  voidbeforePhase(PhaseEvent event)
    
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  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
CREATED_VIEW
final public static String CREATED_VIEW(Code)

The request scope attribute under which we store the view id when createView() is called.





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



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



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.