Java Doc for JsfUtil.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » tool » section » 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 » ERP CRM Financial » sakai » org.sakaiproject.tool.section.jsf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.tool.section.jsf.JsfUtil

JsfUtil
public class JsfUtil (Code)
A utility to help deal with common tasks in JSF.
author:
   Josh Holtzman


Field Summary
final public static  StringTIME_PATTERN_DISPLAY
     As part of the crutch for JSF's inability to do validation on relative values in different components.
final public static  StringTIME_PATTERN_LONG
     As part of the crutch for JSF's inability to do validation on relative values in different components.
final public static  StringTIME_PATTERN_SHORT
     As part of the crutch for JSF's inability to do validation on relative values in different components.


Method Summary
public static  voidaddErrorMessage(String message)
     Adds an error message for display on a page when the page is guaranteed not to be displayed via a redirect.
public static  voidaddErrorMessage(String message, String componentId)
     Adds an error message for display on a component when the page is guaranteed not to be displayed via a redirect.
public static  voidaddInfoMessage(String message)
     Adds an info message for display on a page when the page is guaranteed not to be displayed via a redirect.
public static  voidaddRedirectSafeInfoMessage(String message)
     Adds an info message for display on a page even if faces sends the user to the page via a redirect.
public static  voidaddRedirectSafeWarnMessage(String message)
     Adds a warning message for display on a page even if faces sends the user to the page via a redirect.
public static  TimeconvertStringToTime(String str, boolean am)
     Converts a string and a boolean (am) into a java.sql.Time object.
public static  StringconvertTimeToString(Time time)
    
public static  StringgetLocalizedMessage(String key)
     Gets a localized message from the message bundle.
public static  StringgetLocalizedMessage(String key, String[] params)
     Gets a localized message from the message bundle and formats it using the parameter array.
final public static  ComparatorgetSelectItemComparator()
    
public static  StringgetStringFromParam(String string)
     Gets a value from the request parameter map, as provided by the faces context.
final public static  ObjectresolveVariable(String name)
     To cut down on configuration noise, allow access to request-scoped beans from session-scoped beans, and so on, this method lets the caller try to find anything anywhere that Faces can look for it.

Field Detail
TIME_PATTERN_DISPLAY
final public static String TIME_PATTERN_DISPLAY(Code)
As part of the crutch for JSF's inability to do validation on relative values in different components. This pattern defines how times should be displayed in the Section Info UI.



TIME_PATTERN_LONG
final public static String TIME_PATTERN_LONG(Code)
As part of the crutch for JSF's inability to do validation on relative values in different components. This pattern defines how to parse and format complete times (with hours, minutes, and am/pm marker).



TIME_PATTERN_SHORT
final public static String TIME_PATTERN_SHORT(Code)
As part of the crutch for JSF's inability to do validation on relative values in different components. This pattern defines how to parse and format abberviated times (with only hours and am/pm marker).





Method Detail
addErrorMessage
public static void addErrorMessage(String message)(Code)
Adds an error message for display on a page when the page is guaranteed not to be displayed via a redirect.
Parameters:
  message -



addErrorMessage
public static void addErrorMessage(String message, String componentId)(Code)
Adds an error message for display on a component when the page is guaranteed not to be displayed via a redirect.
Parameters:
  message -
Parameters:
  componentId -



addInfoMessage
public static void addInfoMessage(String message)(Code)
Adds an info message for display on a page when the page is guaranteed not to be displayed via a redirect.
Parameters:
  message -



addRedirectSafeInfoMessage
public static void addRedirectSafeInfoMessage(String message)(Code)
Adds an info message for display on a page even if faces sends the user to the page via a redirect.
Parameters:
  message -



addRedirectSafeWarnMessage
public static void addRedirectSafeWarnMessage(String message)(Code)
Adds a warning message for display on a page even if faces sends the user to the page via a redirect.
Parameters:
  message -



convertStringToTime
public static Time convertStringToTime(String str, boolean am)(Code)
Converts a string and a boolean (am) into a java.sql.Time object.
Parameters:
  str -
Parameters:
  am -



convertTimeToString
public static String convertTimeToString(Time time)(Code)



getLocalizedMessage
public static String getLocalizedMessage(String key)(Code)
Gets a localized message from the message bundle.



getLocalizedMessage
public static String getLocalizedMessage(String key, String[] params)(Code)
Gets a localized message from the message bundle and formats it using the parameter array.
Parameters:
  key -
Parameters:
  params -



getSelectItemComparator
final public static Comparator getSelectItemComparator()(Code)



getStringFromParam
public static String getStringFromParam(String string)(Code)
Gets a value from the request parameter map, as provided by the faces context.
Parameters:
  string -



resolveVariable
final public static Object resolveVariable(String name)(Code)
To cut down on configuration noise, allow access to request-scoped beans from session-scoped beans, and so on, this method lets the caller try to find anything anywhere that Faces can look for it. WARNING: If what you're looking for is a managed bean and it isn't found, it will be created as a result of this call.



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.