Source Code Cross Referenced for Listbox.java in  » Ajax » zk » org » zkoss » jsf » zul » 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 » Ajax » zk » org.zkoss.jsf.zul 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* Listbox.java
002:
003:         {{IS_NOTE
004:         Purpose:
005:         
006:         Description:
007:         
008:         History:
009:         Aug 8, 2007 5:48:27 PM     2007, Created by Dennis.Chen
010:         }}IS_NOTE
011:
012:         Copyright (C) 2007 Potix Corporation. All Rights Reserved.
013:
014:         {{IS_RIGHT
015:         This program is distributed under GPL Version 2.0 in the hope that
016:         it will be useful, but WITHOUT ANY WARRANTY.
017:         }}IS_RIGHT
018:         */
019:        package org.zkoss.jsf.zul;
020:
021:        import org.zkoss.jsf.zul.impl.BaseListbox;
022:        import org.zkoss.zk.ui.Component;
023:
024:        /**
025:         * Listbox is a JSF component implementation for {@link org.zkoss.zul.Listbox}, 
026:         * This class also implements {@link javax.faces.component.EditableValueHolder}.
027:         * That means you can use bidirection value binding, immediate, required, converter, validator, valueChangeListener features on this component.
028:         * <br/>
029:         * To use those features, you must decleare a namespace of "http://java.sun.com/jsf/core" 
030:         * with a prefix (say 'f' in below example), add attribute of those feature with this namespace 
031:         * (for example f:required="true")in you jsf page. 
032:         * For more detail of EditableValueHolder features of JSF, you can refer to <a href="http://java.sun.com/products/jsp/">http://java.sun.com/products/jsp/</a>
033:         * 
034:         * <p/>
035:         * You must assign a value on each listitem, so that, after user select listitem and submitting,
036:         * listbox will decode the request parameter and set back the submitted value to your bean.
037:         * <p/>
038:         * When listbox set multiple to false(single selection), then 
039:         * the default binding value of this component is {@link java.lang.String}.
040:         * When listbox set multiple ot true(multiple selection, then
041:         * the default binding value of this component is {@link java.lang.String} array.
042:         * 
043:         * <p/>
044:         * Example of use bidirection value binding:<br/>
045:         * <pre>
046:         &lt;z:listbox id=&quot;role1&quot; f:value=&quot;#{yourBean.value}&quot;&gt;
047:         &lt;z:listitem value=&quot;1&quot; label=&quot;Determine need&quot; /&gt;
048:         &lt;z:listitem value=&quot;2&quot; label=&quot;Evaluate products/sesrvices&quot; /&gt;
049:         &lt;z:listitem value=&quot;3&quot; label=&quot;Recommend products/sesrvices&quot; /&gt;
050:         &lt;z:listitem value=&quot;4&quot; label=&quot;Implement products/sesrvices&quot; /&gt;
051:         &lt;z:listitem value=&quot;5&quot; label=&quot;Techinical decision maker&quot; /&gt;
052:         &lt;z:listitem value=&quot;6&quot; label=&quot;Financial decision maker&quot; /&gt;
053:         &lt;/z:listbox&gt;
054:         * </pre>
055:         * 
056:         * 
057:         * <p/>
058:         * Example of using immediate:<br/>
059:         * <pre>
060:         * &lt;z:listbox f:immediate=&quot;true&quot; /&gt;
061:         * </pre>
062:         * 
063:         * <p/>
064:         * Example of using required:<br/>
065:         * <pre>
066:         * &lt;z:listbox f:required=&quot;true&quot; /&gt;
067:         * </pre>
068:         * <p/>
069:         * Example of using converter:<br/>
070:         * <pre>
071:         * &lt;z:listbox f:converter=&quot;yourBean.convertMethod&quot;/&gt;
072:         * or
073:         * &lt;z:listbox &gt;
074:         * 	&lt;f:converter converterId=&quot;yourConverterId&quot;/&gt;
075:         * &lt;/z:listbox&gt;
076:         * </pre>
077:         * <p/>
078:         * Example of using validator:<br/>
079:         * <pre>
080:         * &lt;z:listbox f:validator=&quot;yourBean.validateMethod&quot;/&gt;
081:         * or
082:         * &lt;z:listbox &gt;
083:         * 	&lt;f:validator validatorId=&quot;yourValidatorId&quot;/&gt;
084:         * &lt;/z:listbox&gt;
085:         *  </pre>
086:         * <p/>
087:         * Example of using converter:<br/>
088:         * <pre>
089:         * &lt;z:listbox &gt;
090:         * 	&lt;f:valueChangeListener type=&quot;your.ValueChangeListener&quot;/&gt;
091:         * &lt;/z:listbox&gt
092:         * </pre>
093:         * <p/>
094:         * In some application server which doesn't support attribute namespace you can use attribute prefix 'f_' to replace attribute namespace
095:         * <br/>
096:         * For example, 
097:         * <pre>
098:         * &lt;z:listbox f_value=&quot;#{yourBean.value}&quot; /&gt;
099:         * </pre>
100:         * 
101:         * <p/>
102:         * This component should be declared nested under {@link org.zkoss.jsf.zul.Page}.
103:         * 
104:         * <p/>To know more ZK component features you can refer to <a href="http://www.zkoss.org/">http://www.zkoss.org/</a>
105:         *    
106:         * @author Dennis.Chen
107:         * @see org.zkoss.zul.Listbox
108:         * @see javax.faces.component.EditableValueHolder
109:         */
110:        public class Listbox extends BaseListbox {
111:
112:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.