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


com.sun.rave.web.ui.component.FormBase

All known Subclasses:   com.sun.rave.web.ui.component.Form,
FormBase
abstract public class FormBase extends javax.faces.component.UIForm (Code)

Use the ui:form tag to create an HTML <form> element. The form can be submitted via a button or hyperlink control (in which case an ActionEvent will be generated on the server), or via client side scripting.

The virtualFormsConfig attribute can be used to configure virtual forms. A virtual form defines a group of input components ("participants") and submission components ("submitters") on a page, such that when the user interacts with one of the submitters, the participants are processed exclusively while the remaining inputs on the page are ignored. An input component is any component that implements EditableValueHolder. A submission component is any component that causes the web page to be submitted (such as a button, hyperlink, or any input component that submits the page via the common_timeoutSubmitForm scripting function). Processing an input means converting and validating it, firing any value change events associated with the input, and mapping the input onto its binding target (if the component is bound). Virtual forms provide an alternative to the immediate property. They are more powerful than immediate because they let you specify multiple groups of inputs to be selectively processed (that is, you can specify multiple virtual forms on a page). They are also easier to use than immediate because they do not alter the JavaServer Faces lifecycle.


HTML Elements and Layout

The rendered HTML page contains an HTML <form> tag and its associated attributes. The rendered form includes a hidden field for use in determining which form submitted the page.


Client Side Javascript Functions

None.

Examples

Example 1: Using a Form

<ui:page>
    <ui:html>
        <ui:head id="head" title="Hyperlink Test Page" />
        <ui:body>
            <ui:form id="form1">
                <ui:hyperlink  id="hyperlinkSubmitsPage" 
                           label="#{HyperlinkBean.label}"
                           action="#{HyperlinkBean.determineWhatToDoFunction}" />
             </ui:form>
       </ui:body>
    </ui:html>
</ui:page>

Example 2: A Page with Three Virtual Forms

<ui:page>
    <ui:html>
        <ui:head id="head" title="Shipping and Billing Information" />
        <ui:body>
            <ui:form id="form1" virtualFormsConfig="shipping | shippingAddressTextField | updateShippingButton , creditCard | creditCardDropDown | creditCardDropDown , billing | billingAddressTextfield creditCardDropDown | updateBillingButton">
                <ui:label for="shippingAddressTextField" id="shippingAddressLabel" style="left: 48px; top: 48px; position: absolute" text="Shipping Address:"/>
                <ui:textField id="shippingAddressTextField" required="true" style="left: 48px; top: 72px; position: absolute"/>                
                <ui:button id="updateShippingButton" style="left: 48px; top: 120px; position: absolute" text="Update Shipping Address"/>
                <ui:label id="creditCardLabel" for="creditCardDropDown" style="left: 48px; top: 192px; position: absolute" text="Credit Card to Use:"/>
                <ui:dropDown id="creditCardDropDown" items="#{SessionBean1.creditCards}" style="left: 48px; top: 216px; position: absolute"/>
                <ui:label id="billingAddressLabel" for="billingAddressTextfield" style="left: 48px; top: 264px; position: absolute" text="Credit Card Billing Address:"/>
                <ui:textField id="billingAddressTextfield" required="true" style="left: 48px; top: 288px; position: absolute"/>
                <ui:button id="updateBillingButton" style="left: 48px; top: 336px; position: absolute" text="Update Billing Address"/>
                <ui:button id="updateAllButton" style="left: 48px; top: 432px; position: absolute" text="Update All Information"/>
             </ui:form>
       </ui:body>
    </ui:html>
</ui:page>

Auto-generated component class. Do NOT modify; all changes will be lost!




Constructor Summary
public  FormBase()
    

Method Summary
public  StringgetEnctype()
    

Use this attribute to set the content-type of the HTTP request generated by this form.

public  StringgetFamily()
    

Return the identifier of the component family to which this component belongs.

public  com.sun.rave.web.ui.component.Form.VirtualFormDescriptor[]getInternalVirtualForms()
    

The virtual forms used "internally" by components (such as Table). Component authors can manipulate this set of virtual forms independent of the set exposed to developers.

public  StringgetOnClick()
    
public  StringgetOnDblClick()
    
public  StringgetOnKeyDown()
    
public  StringgetOnKeyPress()
    
public  StringgetOnKeyUp()
    
public  StringgetOnMouseDown()
    
public  StringgetOnMouseMove()
    
public  StringgetOnMouseOut()
    
public  StringgetOnMouseOver()
    
public  StringgetOnMouseUp()
    
public  StringgetOnReset()
    
public  StringgetOnSubmit()
    
public  StringgetStyle()
    
public  StringgetStyleClass()
    
public  StringgetTarget()
    
public  com.sun.rave.web.ui.component.Form.VirtualFormDescriptor[]getVirtualForms()
    

The virtual forms within this literal form, represented as an array of Form.VirtualFormDescriptor objects.

public  StringgetVirtualFormsConfig()
    

The configuration of the virtual forms within this literal form, represented as a String. Each virtual form is described by three parts, separated with pipe ("|") characters: the virtual form name, a space-separated list of component ids that participate in the virtual form, and a space-separated list of component ids that submit the virtual form. Multiple such virtual form "descriptors" are separated by commas.

public  booleanisAutoComplete()
    

Use this non-XHTML compliant boolean attribute to turn off autocompletion feature of Internet Explorer and Firefox browsers.

public  booleanisVisible()
    
public  voidrestoreState(FacesContext _context, Object _state)
    
public  ObjectsaveState(FacesContext _context)
    
public  voidsetAutoComplete(boolean autoComplete)
    

Use this non-XHTML compliant boolean attribute to turn off autocompletion feature of Internet Explorer and Firefox browsers.

public  voidsetEnctype(String enctype)
    

Use this attribute to set the content-type of the HTTP request generated by this form.

public  voidsetInternalVirtualForms(com.sun.rave.web.ui.component.Form.VirtualFormDescriptor[] internalVirtualForms)
    

The virtual forms used "internally" by components (such as Table). Component authors can manipulate this set of virtual forms independent of the set exposed to developers.

public  voidsetOnClick(String onClick)
    
public  voidsetOnDblClick(String onDblClick)
    
public  voidsetOnKeyDown(String onKeyDown)
    
public  voidsetOnKeyPress(String onKeyPress)
    
public  voidsetOnKeyUp(String onKeyUp)
    
public  voidsetOnMouseDown(String onMouseDown)
    
public  voidsetOnMouseMove(String onMouseMove)
    
public  voidsetOnMouseOut(String onMouseOut)
    
public  voidsetOnMouseOver(String onMouseOver)
    
public  voidsetOnMouseUp(String onMouseUp)
    
public  voidsetOnReset(String onReset)
    
public  voidsetOnSubmit(String onSubmit)
    
public  voidsetStyle(String style)
    
public  voidsetStyleClass(String styleClass)
    
public  voidsetTarget(String target)
    
public  voidsetVirtualForms(com.sun.rave.web.ui.component.Form.VirtualFormDescriptor[] virtualForms)
    

The virtual forms within this literal form, represented as an array of Form.VirtualFormDescriptor objects.

public  voidsetVirtualFormsConfig(String virtualFormsConfig)
    

The configuration of the virtual forms within this literal form, represented as a String. Each virtual form is described by three parts, separated with pipe ("|") characters: the virtual form name, a space-separated list of component ids that participate in the virtual form, and a space-separated list of component ids that submit the virtual form. Multiple such virtual form "descriptors" are separated by commas.

public  voidsetVisible(boolean visible)
    


Constructor Detail
FormBase
public FormBase()(Code)

Construct a new FormBase.





Method Detail
getEnctype
public String getEnctype()(Code)

Use this attribute to set the content-type of the HTTP request generated by this form. You do not normally need to set this attribute. Its default value is application/x-www-form-urlencoded. If there is an upload tag inside the form, the upload tag will modify the form's enctype attribute to multipart/form-data.




getFamily
public String getFamily()(Code)

Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance.




getInternalVirtualForms
public com.sun.rave.web.ui.component.Form.VirtualFormDescriptor[] getInternalVirtualForms()(Code)

The virtual forms used "internally" by components (such as Table). Component authors can manipulate this set of virtual forms independent of the set exposed to developers. This set is only consulted after the set exposed to developers is consulted. A participating or submitting id can end in ":*" to indicate descendants. For example, table1:* can be used as a participating or submitting id to indicate all the descendants of table1.




getOnClick
public String getOnClick()(Code)

Scripting code executed when a mouse click occurs over this component.




getOnDblClick
public String getOnDblClick()(Code)

Scripting code executed when a mouse double click occurs over this component.




getOnKeyDown
public String getOnKeyDown()(Code)

Scripting code executed when the user presses down on a key while the component has focus.




getOnKeyPress
public String getOnKeyPress()(Code)

Scripting code executed when the user presses and releases a key while the component has focus.




getOnKeyUp
public String getOnKeyUp()(Code)

Scripting code executed when the user releases a key while the component has focus.




getOnMouseDown
public String getOnMouseDown()(Code)

Scripting code executed when the user presses a mouse button while the mouse pointer is on the component.




getOnMouseMove
public String getOnMouseMove()(Code)

Scripting code executed when the user moves the mouse pointer while over the component.




getOnMouseOut
public String getOnMouseOut()(Code)

Scripting code executed when a mouse out movement occurs over this component.




getOnMouseOver
public String getOnMouseOver()(Code)

Scripting code executed when the user moves the mouse pointer into the boundary of this component.




getOnMouseUp
public String getOnMouseUp()(Code)

Scripting code executed when the user releases a mouse button while the mouse pointer is on the component.




getOnReset
public String getOnReset()(Code)

Scripting code executed when this form is reset.




getOnSubmit
public String getOnSubmit()(Code)

Scripting code executed when this form is submitted.




getStyle
public String getStyle()(Code)

CSS style(s) to be applied when this component is rendered.




getStyleClass
public String getStyleClass()(Code)

CSS style class(es) to be applied when this component is rendered.




getTarget
public String getTarget()(Code)

The form's target window.




getVirtualForms
public com.sun.rave.web.ui.component.Form.VirtualFormDescriptor[] getVirtualForms()(Code)

The virtual forms within this literal form, represented as an array of Form.VirtualFormDescriptor objects. This property and the "virtualFormsConfig" property are automatically kept in-sync.




getVirtualFormsConfig
public String getVirtualFormsConfig()(Code)

The configuration of the virtual forms within this literal form, represented as a String. Each virtual form is described by three parts, separated with pipe ("|") characters: the virtual form name, a space-separated list of component ids that participate in the virtual form, and a space-separated list of component ids that submit the virtual form. Multiple such virtual form "descriptors" are separated by commas. The component ids may be qualified (for instance, "table1:tableRowGroup1:tableColumn1:textField1").




isAutoComplete
public boolean isAutoComplete()(Code)

Use this non-XHTML compliant boolean attribute to turn off autocompletion feature of Internet Explorer and Firefox browsers. Set to "false" to turn off completion. The default is "true".




isVisible
public boolean isVisible()(Code)

Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page.




restoreState
public void restoreState(FacesContext _context, Object _state)(Code)

Restore the state of this component.




saveState
public Object saveState(FacesContext _context)(Code)

Save the state of this component.




setAutoComplete
public void setAutoComplete(boolean autoComplete)(Code)

Use this non-XHTML compliant boolean attribute to turn off autocompletion feature of Internet Explorer and Firefox browsers. Set to "false" to turn off completion. The default is "true".


See Also:   FormBase.isAutoComplete()



setEnctype
public void setEnctype(String enctype)(Code)

Use this attribute to set the content-type of the HTTP request generated by this form. You do not normally need to set this attribute. Its default value is application/x-www-form-urlencoded. If there is an upload tag inside the form, the upload tag will modify the form's enctype attribute to multipart/form-data.


See Also:   FormBase.getEnctype()



setInternalVirtualForms
public void setInternalVirtualForms(com.sun.rave.web.ui.component.Form.VirtualFormDescriptor[] internalVirtualForms)(Code)

The virtual forms used "internally" by components (such as Table). Component authors can manipulate this set of virtual forms independent of the set exposed to developers. This set is only consulted after the set exposed to developers is consulted. A participating or submitting id can end in ":*" to indicate descendants. For example, table1:* can be used as a participating or submitting id to indicate all the descendants of table1.


See Also:   FormBase.getInternalVirtualForms()



setOnClick
public void setOnClick(String onClick)(Code)

Scripting code executed when a mouse click occurs over this component.


See Also:   FormBase.getOnClick()



setOnDblClick
public void setOnDblClick(String onDblClick)(Code)

Scripting code executed when a mouse double click occurs over this component.


See Also:   FormBase.getOnDblClick()



setOnKeyDown
public void setOnKeyDown(String onKeyDown)(Code)

Scripting code executed when the user presses down on a key while the component has focus.


See Also:   FormBase.getOnKeyDown()



setOnKeyPress
public void setOnKeyPress(String onKeyPress)(Code)

Scripting code executed when the user presses and releases a key while the component has focus.


See Also:   FormBase.getOnKeyPress()



setOnKeyUp
public void setOnKeyUp(String onKeyUp)(Code)

Scripting code executed when the user releases a key while the component has focus.


See Also:   FormBase.getOnKeyUp()



setOnMouseDown
public void setOnMouseDown(String onMouseDown)(Code)

Scripting code executed when the user presses a mouse button while the mouse pointer is on the component.


See Also:   FormBase.getOnMouseDown()



setOnMouseMove
public void setOnMouseMove(String onMouseMove)(Code)

Scripting code executed when the user moves the mouse pointer while over the component.


See Also:   FormBase.getOnMouseMove()



setOnMouseOut
public void setOnMouseOut(String onMouseOut)(Code)

Scripting code executed when a mouse out movement occurs over this component.


See Also:   FormBase.getOnMouseOut()



setOnMouseOver
public void setOnMouseOver(String onMouseOver)(Code)

Scripting code executed when the user moves the mouse pointer into the boundary of this component.


See Also:   FormBase.getOnMouseOver()



setOnMouseUp
public void setOnMouseUp(String onMouseUp)(Code)

Scripting code executed when the user releases a mouse button while the mouse pointer is on the component.


See Also:   FormBase.getOnMouseUp()



setOnReset
public void setOnReset(String onReset)(Code)

Scripting code executed when this form is reset.


See Also:   FormBase.getOnReset()



setOnSubmit
public void setOnSubmit(String onSubmit)(Code)

Scripting code executed when this form is submitted.


See Also:   FormBase.getOnSubmit()



setStyle
public void setStyle(String style)(Code)

CSS style(s) to be applied when this component is rendered.


See Also:   FormBase.getStyle()



setStyleClass
public void setStyleClass(String styleClass)(Code)

CSS style class(es) to be applied when this component is rendered.


See Also:   FormBase.getStyleClass()



setTarget
public void setTarget(String target)(Code)

The form's target window.


See Also:   FormBase.getTarget()



setVirtualForms
public void setVirtualForms(com.sun.rave.web.ui.component.Form.VirtualFormDescriptor[] virtualForms)(Code)

The virtual forms within this literal form, represented as an array of Form.VirtualFormDescriptor objects. This property and the "virtualFormsConfig" property are automatically kept in-sync.


See Also:   FormBase.getVirtualForms()



setVirtualFormsConfig
public void setVirtualFormsConfig(String virtualFormsConfig)(Code)

The configuration of the virtual forms within this literal form, represented as a String. Each virtual form is described by three parts, separated with pipe ("|") characters: the virtual form name, a space-separated list of component ids that participate in the virtual form, and a space-separated list of component ids that submit the virtual form. Multiple such virtual form "descriptors" are separated by commas. The component ids may be qualified (for instance, "table1:tableRowGroup1:tableColumn1:textField1").


See Also:   FormBase.getVirtualFormsConfig()



setVisible
public void setVisible(boolean visible)(Code)

Use the visible attribute to indicate whether the component should be viewable by the user in the rendered HTML page.


See Also:   FormBase.isVisible()



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