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


java.lang.Object
   com.sun.rave.web.ui.appbase.FacesBean

All known Subclasses:   com.sun.rave.web.ui.appbase.AbstractPageBean,  com.sun.rave.web.ui.appbase.AbstractFragmentBean,  com.sun.rave.web.ui.appbase.AbstractApplicationBean,  com.sun.rave.web.ui.appbase.AbstractRequestBean,  com.sun.rave.web.ui.appbase.AbstractSessionBean,
FacesBean
abstract public class FacesBean (Code)

FacesBean is the abstract base class for all page beans, request scope data beans, session scope data beans, and application scope data beans that wish to participate in the provided JavaServer Faces integration support. Concrete subclasses of this class will typically be registered as managed beans, so that they get created on demand (and added to the relevant scope's attributes).

NOTE - These integration methods will operate successfully only within the lifetime of a JavaServer Faces request.




Constructor Summary
public  FacesBean()
    

Method Summary
protected  voiderase()
    

Erase previously submitted values for all input components on this page.

protected  voiderror(String summary)
    

Enqueue a global FacesMessage (not associated with any particular componen) containing the specified summary text and a message severity level of FacesMessage.SEVERITY_ERROR.

protected  voiderror(UIComponent component, String summary)
    

Enqueue a FacesMessage associated with the specified component, containing the specified summary text and a message severity level of FacesMessage.SEVERITY_ERROR.

protected  voidfatal(String summary)
    

Enqueue a global FacesMessage (not associated with any particular componen) containing the specified summary text and a message severity level of FacesMessage.SEVERITY_FATAL.

protected  voidfatal(UIComponent component, String summary)
    

Enqueue a FacesMessage associated with the specified component, containing the specified summary text and a message severity level of FacesMessage.SEVERITY_FATAL.

protected  ApplicationgetApplication()
    
protected  MapgetApplicationMap()
    
protected  ObjectgetBean(String name)
    

Return any attribute stored in request scope, session scope, or application scope under the specified name.

protected  ListgetCachedExceptions()
    

Return a List of the exceptions that have been logged, swallowed, and cached during the processing of this request so far.

protected  FacesContextgetContext()
    

Return the FacesContext instance for the current request.

protected  ExternalContextgetExternalContext()
    
protected  FacesContextgetFacesContext()
    
protected  LifecyclegetLifecycle()
    
protected  MapgetRequestMap()
    
protected  MapgetSessionMap()
    

Return a Map of the session scope attributes for the current user's session.

protected  ObjectgetValue(String expr)
    
protected  voidinfo(String summary)
    

Enqueue a global FacesMessage (not associated with any particular componen) containing the specified summary text and a message severity level of FacesMessage.SEVERITY_INFO.

protected  voidinfo(UIComponent component, String summary)
    

Enqueue a FacesMessage associated with the specified component, containing the specified summary text and a message severity level of FacesMessage.SEVERITY_INFO.

protected  voidlog(String message)
    
protected  voidlog(String message, Throwable throwable)
    
public  ObjectretrieveData(String key)
    

Return the data object stored (typically when the component tree was previously rendered) under the specified key, if any; otherwise, return null.

IMPLEMENTATION NOTE: Data objects will become available only after the Restore View phase of the request processing lifecycle has been completed.

public  voidsaveData(String key, Object data)
    

Save the specified data object (which MUST be Serializable) under the specified key, such that it can be retrieved (via getData()) on a s subsequent request immediately after the component tree has been restored.

IMPLEMENTATION NOTE: In order to successfully save data objects, this method must be called before the Render Response phase of the request processing lifecycle is executed.

protected  voidsetBean(String name, Object value)
    

Replace the value of any attribute stored in request scope, session scope, or application scope under the specified name.

protected  voidsetValue(String expr, Object value)
    
protected  voidwarn(String summary)
    

Enqueue a global FacesMessage (not associated with any particular componen) containing the specified summary text and a message severity level of FacesMessage.SEVERITY_WARN.

protected  voidwarn(UIComponent component, String summary)
    

Enqueue a FacesMessage associated with the specified component, containing the specified summary text and a message severity level of FacesMessage.SEVERITY_WARN.



Constructor Detail
FacesBean
public FacesBean()(Code)




Method Detail
erase
protected void erase()(Code)

Erase previously submitted values for all input components on this page. This method MUST be called if you have bound input components to database columns, and then arbitrarily navigate the underlying RowSet to a different row in an event handler method.




error
protected void error(String summary)(Code)

Enqueue a global FacesMessage (not associated with any particular componen) containing the specified summary text and a message severity level of FacesMessage.SEVERITY_ERROR.


Parameters:
  summary - Summary text for this message



error
protected void error(UIComponent component, String summary)(Code)

Enqueue a FacesMessage associated with the specified component, containing the specified summary text and a message severity level of FacesMessage.SEVERITY_ERROR.


Parameters:
  component - Component with which this message is associated
Parameters:
  summary - Summary text for this message



fatal
protected void fatal(String summary)(Code)

Enqueue a global FacesMessage (not associated with any particular componen) containing the specified summary text and a message severity level of FacesMessage.SEVERITY_FATAL.


Parameters:
  summary - Summary text for this message



fatal
protected void fatal(UIComponent component, String summary)(Code)

Enqueue a FacesMessage associated with the specified component, containing the specified summary text and a message severity level of FacesMessage.SEVERITY_FATAL.


Parameters:
  component - Component with which this message is associated
Parameters:
  summary - Summary text for this message



getApplication
protected Application getApplication()(Code)

Return the Application instance for the current web application.




getApplicationMap
protected Map getApplicationMap()(Code)

Return a Map of the application scope attributes for this web application.




getBean
protected Object getBean(String name)(Code)

Return any attribute stored in request scope, session scope, or application scope under the specified name. If no such attribute is found, and if this name is the registered name of a managed bean, cause a new instance of this managed bean to be created (and stored in an appropriate scope, if necessary) and returned. If no attribute exists, and no managed bean was created, return null.


Parameters:
  name - Name of the attribute to be retrieved



getCachedExceptions
protected List getCachedExceptions()(Code)

Return a List of the exceptions that have been logged, swallowed, and cached during the processing of this request so far. If there are no such cached exceptions, return null instead.

The application runtime framework causes exceptions thrown from any of the following sources to be logged (to the application server's log), swallowed, and added to this list:

  • Application lifecycle methods (init(), preprocess(), prerender(), and destroy()) on an AbstractPageBean .
  • Phase listener methods (beforeXxx(), afterXxx()) on an AbstractPageBean .
  • Exception thrown during the rendering of the selected view during Render Response phase of the request processing lifecycle.



getContext
protected FacesContext getContext()(Code)

Return the FacesContext instance for the current request. This method has been restored for backwards compatibilty.




getExternalContext
protected ExternalContext getExternalContext()(Code)

Return the ExternalContext instance for the current request.




getFacesContext
protected FacesContext getFacesContext()(Code)

Return the FacesContext instance for the current request.




getLifecycle
protected Lifecycle getLifecycle()(Code)

Return the configured Lifecycle instance for the current web application.




getRequestMap
protected Map getRequestMap()(Code)

Return a Map of the request scope attributes for the current request.




getSessionMap
protected Map getSessionMap()(Code)

Return a Map of the session scope attributes for the current user's session. Note that calling this method will cause a session to be created if there is not already one associated with this request.




getValue
protected Object getValue(String expr)(Code)

Evaluate the specified value binding expression, and return the value that it points at.


Parameters:
  expr - Value binding expression (including delimiters)



info
protected void info(String summary)(Code)

Enqueue a global FacesMessage (not associated with any particular componen) containing the specified summary text and a message severity level of FacesMessage.SEVERITY_INFO.


Parameters:
  summary - Summary text for this message



info
protected void info(UIComponent component, String summary)(Code)

Enqueue a FacesMessage associated with the specified component, containing the specified summary text and a message severity level of FacesMessage.SEVERITY_INFO.


Parameters:
  component - Component with which this message is associated
Parameters:
  summary - Summary text for this message



log
protected void log(String message)(Code)

Log the specified message to the container's log file.


Parameters:
  message - Message to be logged



log
protected void log(String message, Throwable throwable)(Code)

Log the specified message and exception to the container's log file.


Parameters:
  message - Message to be logged
Parameters:
  throwable - Exception to be logged



retrieveData
public Object retrieveData(String key)(Code)

Return the data object stored (typically when the component tree was previously rendered) under the specified key, if any; otherwise, return null.

IMPLEMENTATION NOTE: Data objects will become available only after the Restore View phase of the request processing lifecycle has been completed. A common place to reinitialize state information, then, would be in the preprocess() event handler of a page bean.


Parameters:
  key - Key under which to retrieve the requested data



saveData
public void saveData(String key, Object data)(Code)

Save the specified data object (which MUST be Serializable) under the specified key, such that it can be retrieved (via getData()) on a s subsequent request immediately after the component tree has been restored.

IMPLEMENTATION NOTE: In order to successfully save data objects, this method must be called before the Render Response phase of the request processing lifecycle is executed. A common scenario is to save state information in the prerender() event handler of a page bean.


Parameters:
  key - Key under which to store the requested data
Parameters:
  data - Data object to be stored



setBean
protected void setBean(String name, Object value)(Code)

Replace the value of any attribute stored in request scope, session scope, or application scope under the specified name. If there is no such attribute, create a new request scope attribute under this name, and store the value there.




setValue
protected void setValue(String expr, Object value)(Code)

Evaluate the specified value binding expression, and update the value that it points at.


Parameters:
  expr - Value binding expression (including delimiters) thatmust point at a writeable property
Parameters:
  value - New value for the property pointed at by expr



warn
protected void warn(String summary)(Code)

Enqueue a global FacesMessage (not associated with any particular componen) containing the specified summary text and a message severity level of FacesMessage.SEVERITY_WARN.


Parameters:
  summary - Summary text for this message



warn
protected void warn(UIComponent component, String summary)(Code)

Enqueue a FacesMessage associated with the specified component, containing the specified summary text and a message severity level of FacesMessage.SEVERITY_WARN.


Parameters:
  component - Component with which this message is associated
Parameters:
  summary - Summary text for this message



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.