Java Doc for JSFUtil.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) 


java.lang.Object
   de.danet.an.util.jsf.JSFUtil

JSFUtil
public class JSFUtil (Code)
This class provides some utility method for use with Java Server Faces.
author:
   Michael Lipp
version:
   $Revision: 1.13 $


Field Summary
final public static  StringLIFECYCLE
     Attribute name for accessing lifecycle as request attribue.


Method Summary
public static  LocaleactiveLocale()
     Return the active locale.
public static  voidaddMessage(FacesMessage.Severity severity, String baseName, String key, Object[] args)
     Add a message to the current faces context.
public static  voidaddMessage(FacesMessage.Severity severity, String baseName, String key, Object[] args, String detail)
     Add a message to the current faces context.
Parameters:
  severity - the message severity
Parameters:
  baseName - the base name of the resource bundle with messages
Parameters:
  key - the key of the message
Parameters:
  args - arguments for message formatting
Parameters:
  detail - detailed information.
public static  voidaddMessage(FacesMessage.Severity severity, Locale locale, String baseName, String key, Object[] args, Throwable thrown)
     Add a message to the current faces context.
public static  voidaddMessage(FacesMessage.Severity severity, String baseName, String key, Object[] args, Throwable thrown)
     Add a message to the current faces context.
public static  voidaddPhaseListenerForPortlet(PhaseListener pl)
     Adds a phase listener that is associated with the invoking portlet instance.
public static  StringgetApplicationMessage(String key)
     Get the application message with the given key for the active locale.
public static  Lifecyclelifecycle()
     Return the Lifecycle.
public  voidremovePhaseListenerForPortlet(PhaseListener pl)
     Removes a listener associated with the invoking portlet instance.
public static  ResourceBundleresourceBundle(String baseName, Locale locale)
     Return a resource bundle for the given base and the given locale.
public static  StringstringResource(String baseName, Locale locale, String key)
     Return the resource from the given resource bundle with the given key using the given locale.
public static  StringstringResource(String baseName, String key)
     Return the resource from the given resource bundle with the given key using the active locale.

Field Detail
LIFECYCLE
final public static String LIFECYCLE(Code)
Attribute name for accessing lifecycle as request attribue.





Method Detail
activeLocale
public static Locale activeLocale()(Code)
Return the active locale. the active locale



addMessage
public static void addMessage(FacesMessage.Severity severity, String baseName, String key, Object[] args)(Code)
Add a message to the current faces context.
Parameters:
  severity - the message severity
Parameters:
  baseName - the base name of the resource bundle with messages
Parameters:
  key - the key of the message
Parameters:
  args - arguments for message formatting



addMessage
public static void addMessage(FacesMessage.Severity severity, String baseName, String key, Object[] args, String detail)(Code)
Add a message to the current faces context.
Parameters:
  severity - the message severity
Parameters:
  baseName - the base name of the resource bundle with messages
Parameters:
  key - the key of the message
Parameters:
  args - arguments for message formatting
Parameters:
  detail - detailed information. This string is not localized.



addMessage
public static void addMessage(FacesMessage.Severity severity, Locale locale, String baseName, String key, Object[] args, Throwable thrown)(Code)
Add a message to the current faces context.
Parameters:
  severity - the message severity
Parameters:
  the - locale to use
Parameters:
  baseName - the base name of the resource bundle with messages
Parameters:
  key - the key of the message
Parameters:
  args - arguments for message formatting
Parameters:
  thrown - a throwable providing the message details



addMessage
public static void addMessage(FacesMessage.Severity severity, String baseName, String key, Object[] args, Throwable thrown)(Code)
Add a message to the current faces context.
Parameters:
  severity - the message severity
Parameters:
  baseName - the base name of the resource bundle with messages
Parameters:
  key - the key of the message
Parameters:
  args - arguments for message formatting
Parameters:
  thrown - a throwable providing the message details



addPhaseListenerForPortlet
public static void addPhaseListenerForPortlet(PhaseListener pl)(Code)
Adds a phase listener that is associated with the invoking portlet instance. Normally, listeners are associated with a lifecycle with one instance for the complete application. If the application consists of several JSF based portlets, listeners are therefore invoked every time one of the portlets goes through the lifecycle. In contrary, listeners registered with the method provided here are only invoked when the registering portlet goes though its lifecycle. In addition, the listeners are maintained using weak references. Omitting the explicit remove therefore does not prevent the listeners from being garbage collected.
Parameters:
  pl - the phase listener



getApplicationMessage
public static String getApplicationMessage(String key)(Code)
Get the application message with the given key for the active locale. the message or null if not found



lifecycle
public static Lifecycle lifecycle()(Code)
Return the Lifecycle. the result



removePhaseListenerForPortlet
public void removePhaseListenerForPortlet(PhaseListener pl)(Code)
Removes a listener associated with the invoking portlet instance.
See Also:   JSFUtil.addPhaseListenerForPortlet(PhaseListener)
Parameters:
  pl -



resourceBundle
public static ResourceBundle resourceBundle(String baseName, Locale locale)(Code)
Return a resource bundle for the given base and the given locale.
Parameters:
  baseName - the base name of the resource bundle
Parameters:
  locale - the locale the resource bundle
See Also:   JSFUtil.activeLocale



stringResource
public static String stringResource(String baseName, Locale locale, String key)(Code)
Return the resource from the given resource bundle with the given key using the given locale.
Parameters:
  baseName - the base name of the resource bundle
Parameters:
  locale - the locale
Parameters:
  key - the key of the resource the resource
See Also:   JSFUtil.resourceBundle



stringResource
public static String stringResource(String baseName, String key)(Code)
Return the resource from the given resource bundle with the given key using the active locale.
Parameters:
  baseName - the base name of the resource bundle
Parameters:
  key - the key of the resource the resource
See Also:   JSFUtil.resourceBundle



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.