Java Doc for MyFacesAdaptedPortlet.java in  » Workflow-Engines » wfmopen-2.1.1 » de » danet » an » util » jsf » 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 » Workflow Engines » wfmopen 2.1.1 » de.danet.an.util.jsf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.danet.an.util.jsf.MyFacesAdaptedPortlet

MyFacesAdaptedPortlet
public class MyFacesAdaptedPortlet extends GenericPortlet (Code)
This portlet initializes MyFaces and converts portlet requests into JSF requests.
author:
   Stan Silvert (latest modification by $Author: mlipp $)

Inner Class :public class ActionRequestWrapper implements ActionRequest
Inner Class :public class MyPortletExternalContextImpl extends PortletExternalContextImpl

Field Summary
final public static  StringCURRENT_FACES_CONTEXT
    
final protected static  StringFACES_INIT_DONE
    
final public static  StringFILE_ITEMS
    
final public static  StringLIFECYCLE_ID
    
final public static  StringNAMESPACE_PREFIX
    
final protected static  StringPARAM_EDIT_PAGE
     Name of portlet preference for Edit page.
final protected static  StringPARAM_HELP_PAGE
    
final protected static  StringPARAM_VIEW_PAGE
    
final public static  StringPREV_MODE
    
final public static  StringREQUEST_ATTRIBUTES
    
final public static  StringVIEW_ID
    
protected  FacesContextFactoryfacesContextFactory
    
protected  Lifecyclelifecycle
    
protected  PortletContextportletContext
    

Constructor Summary
public  MyFacesAdaptedPortlet()
    

Method Summary
public  voiddestroy()
     Portlet lifecycle.
protected  voiddoEdit(RenderRequest request, RenderResponse response)
     Helper method to serve up the edit mode.
protected  voiddoHelp(RenderRequest request, RenderResponse response)
     Helper method to serve up the edit mode.
protected  voiddoView(RenderRequest request, RenderResponse response)
     Helper method to serve up the view mode.
protected  FacesContextfacesContext(PortletRequest request, PortletResponse response)
    
protected  voidfacesRender(RenderRequest request, RenderResponse response)
     Render a JSF view.
protected  LocalegetLocale(PortletRequest request)
    
protected  voidhandleExceptionFromLifecycle(Throwable e)
    
public  voidinit()
     Portlet lifecycle.
protected  voidinitMyFaces()
    
protected  voidlogException(Throwable e, String msgPrefix)
    
protected  ReleaseableExternalContextmakeExternalContext(PortletRequest request, PortletResponse response)
    
protected  voidnonFacesRequest(RenderRequest request, RenderResponse response)
     This method follows JSF Spec section 2.1.1.
protected  voidnonFacesRequest(RenderRequest request, RenderResponse response, String view)
     This method follows JSF Spec section 2.1.1.
public  voidprocessAction(ActionRequest request, ActionResponse response)
     Called by the portlet container to allow the portlet to process an action request.
protected  StringselectDefaultView(RenderRequest request, RenderResponse response)
    
protected  booleansessionTimedOut(PortletRequest request)
    
protected  voidsetContentType(RenderRequest request, RenderResponse response)
    
protected  voidsetPortletRequestFlag(PortletRequest request)
    

Field Detail
CURRENT_FACES_CONTEXT
final public static String CURRENT_FACES_CONTEXT(Code)



FACES_INIT_DONE
final protected static String FACES_INIT_DONE(Code)



FILE_ITEMS
final public static String FILE_ITEMS(Code)



LIFECYCLE_ID
final public static String LIFECYCLE_ID(Code)



NAMESPACE_PREFIX
final public static String NAMESPACE_PREFIX(Code)



PARAM_EDIT_PAGE
final protected static String PARAM_EDIT_PAGE(Code)
Name of portlet preference for Edit page.



PARAM_HELP_PAGE
final protected static String PARAM_HELP_PAGE(Code)
Name of portlet preference for Edit page



PARAM_VIEW_PAGE
final protected static String PARAM_VIEW_PAGE(Code)
Name of portlet preference for View page



PREV_MODE
final public static String PREV_MODE(Code)



REQUEST_ATTRIBUTES
final public static String REQUEST_ATTRIBUTES(Code)



VIEW_ID
final public static String VIEW_ID(Code)



facesContextFactory
protected FacesContextFactory facesContextFactory(Code)



lifecycle
protected Lifecycle lifecycle(Code)



portletContext
protected PortletContext portletContext(Code)




Constructor Detail
MyFacesAdaptedPortlet
public MyFacesAdaptedPortlet()(Code)
Creates a new instance of MyFacesPortlet




Method Detail
destroy
public void destroy()(Code)
Portlet lifecycle.



doEdit
protected void doEdit(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)
Helper method to serve up the edit mode. Can be overridden to add the edit mode concept to a JSF application.



doHelp
protected void doHelp(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)
Helper method to serve up the edit mode. Can be overridden to add the help mode concept to a JSF application.



doView
protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)
Helper method to serve up the view mode.



facesContext
protected FacesContext facesContext(PortletRequest request, PortletResponse response)(Code)



facesRender
protected void facesRender(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException(Code)
Render a JSF view.



getLocale
protected Locale getLocale(PortletRequest request)(Code)



handleExceptionFromLifecycle
protected void handleExceptionFromLifecycle(Throwable e) throws PortletException, IOException(Code)



init
public void init() throws PortletException, UnavailableException(Code)
Portlet lifecycle.



initMyFaces
protected void initMyFaces()(Code)



logException
protected void logException(Throwable e, String msgPrefix)(Code)



makeExternalContext
protected ReleaseableExternalContext makeExternalContext(PortletRequest request, PortletResponse response)(Code)



nonFacesRequest
protected void nonFacesRequest(RenderRequest request, RenderResponse response) throws PortletException(Code)
This method follows JSF Spec section 2.1.1. It renders the default view from a non-faces request.
Parameters:
  request - The portlet render request.
Parameters:
  response - The portlet render response.



nonFacesRequest
protected void nonFacesRequest(RenderRequest request, RenderResponse response, String view) throws PortletException(Code)
This method follows JSF Spec section 2.1.1. It renders a view from a non-faces request. This is useful for a default view as well as for views that need to be rendered from the portlet's edit and help buttons.
Parameters:
  request - The portlet render request.
Parameters:
  response - The portlet render response.
Parameters:
  view - The name of the view that needs to be rendered.



processAction
public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException(Code)
Called by the portlet container to allow the portlet to process an action request.



selectDefaultView
protected String selectDefaultView(RenderRequest request, RenderResponse response) throws PortletException(Code)



sessionTimedOut
protected boolean sessionTimedOut(PortletRequest request)(Code)



setContentType
protected void setContentType(RenderRequest request, RenderResponse response)(Code)



setPortletRequestFlag
protected void setPortletRequestFlag(PortletRequest request)(Code)



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