Author: ayanul
Date: 2007-11-14 11:00:00 -0500 (Wed, 14 Nov 2007)
New Revision: 3988
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/sb/Data.java
branches/3.1.x/test-applications/facelets/src/main/java/sb/Sb.java
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml
Log:
Modified: branches/3.1.x/test-applications/facelets/src/main/java/sb/Data.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/sb/Data.java 2007-11-14
15:33:36 UTC (rev 3987)
+++ branches/3.1.x/test-applications/facelets/src/main/java/sb/Data.java 2007-11-14
16:00:00 UTC (rev 3988)
@@ -1,39 +1,37 @@
package sb;
public class Data {
- private String text;
+ private String city;
+ private String contry;
+ private boolean flag;
- private String label;
-
- private String flag;
-
- public Data(String text, String alabelbel){
- this.text = text;
- this.label = alabelbel;
- this.flag="/pics/header.png";
+ public Data(String city, String contry, boolean flag) {
+ this.city = city;
+ this.contry = contry;
+ this.flag = flag;
}
- public String getLabel() {
- return label;
+ public boolean getFlag() {
+ return flag;
}
- public void setLabel(String label) {
- this.label = label;
+ public void setFlag(boolean flag) {
+ this.flag = flag;
}
- public String getText() {
- return text;
+ public String getCity() {
+ return city;
}
- public void setText(String text) {
- this.text = text;
+ public void setCity(String city) {
+ this.city = city;
}
- public String getFlag() {
- return flag;
+ public String getContry() {
+ return contry;
}
- public void setFlag(String flag) {
- this.flag = flag;
+ public void setContry(String contry) {
+ this.contry = contry;
}
}
Modified: branches/3.1.x/test-applications/facelets/src/main/java/sb/Sb.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/sb/Sb.java 2007-11-14 15:33:36
UTC (rev 3987)
+++ branches/3.1.x/test-applications/facelets/src/main/java/sb/Sb.java 2007-11-14 16:00:00
UTC (rev 3988)
@@ -1,10 +1,13 @@
package sb;
-import java.util.*;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
import org.richfaces.renderkit.html.SuggestionBoxRenderer;
-public class Sb {
+public class Sb implements Serializable {
private ArrayList cities;
private ArrayList data;
@@ -26,8 +29,7 @@
private String shadowDepth;
private boolean focus;
- private boolean reRender;
-
+/*
private static final String[] cit = { "Abba", "Abbeville",
"Acworth",
"Adairsville", "Adel", "Adrian", "Ailey",
"Alamo", "Alapaha",
"Albany", "Allenhurst", "Alma", "Alma",
"Alpharetta", "Alston",
@@ -35,6 +37,18 @@
"Athens", "Athens-Clarke County", "Atkinson",
"Atlanta",
"Attapulgus", "Auburn", "Augusta",
"Augusta-Richmond County",
"Austell", "Avondale Estates", "Axson" };
+*/
+
+ private static final String[] cityAfrica = {"Africa", "Algeria",
"Angola", "Bassas da India", "Benin", "Botswana",
"Burkina Faso", "Burundi", "Cameroon", "Central African
Republic", "Chad", "Comoros", "Democratic Republic of the
Congo", "Djibouti", "Egypt", "Equatorial Guinea",
"Eritrea", "Ethiopia", "Europa Island", "Gabon",
"Gambia", "Ghana", "Glorioso Islands", "Guinea",
"Guinea-Bissau", "Ivory Coast", "Juan de Nova Island",
"Kenya", "Lesotho", "Liberia", "Libya",
"Madagascar", "Malawi", "Mali", "Mauritania",
"Mauritius Island", "Mayotte", "Morocco",
"Mozambique", "Namibia", "Niger", "Nigeria",
"Republic of the Congo", "Reunion", "Rwanda", "Saint
Helena", "Sao Tome and Principe", "Senegal",
"Seychelles", "Sierra Leone", "Somalia", "South
Africa", "Sudan", "Swaziland", "Tanzania",
"Togo", "Tromelin Island", "Tunisia", "Uganda",
"Western Sahara", "Zambia", "Zimbabwe"};
+ private static final String[] cityAsia = {"Asia", "Afghanistan",
"Armenia", "Azerbaijan", "Bangladesh", "Bhutan",
"China", "Georgia", "India", "Japan",
"Kazakhstan", "Korea, North", "Korea, South",
"Kyrgyzstan", "Maldives", "Mongolia", "Nepal",
"Pakistan", "Russia", "Sri Lanka", "Tajikistan",
"Turkmenistan", "Uzbekistan"};
+ private static final String[] cityCAmerica = {"Central America",
"Belize", "Costa Rica", "El Salvador",
"Guatemala", "Honduras", "Nicaragua", "Panama"};
+ private static final String[] cityEurope = {"Europe", "Albania",
"Andorra", "Austria", "Belarus", "Belgium",
"Bosnia and Herzegovina", "Bulgaria", "Canary Islands",
"Croatia", "Czech Republic", "Denmark", "Estonia",
"Faroe Islands", "Finland", "France", "Germany",
"Gibraltar", "Greece", "Guernsey", "Hungary",
"Iceland", "Ireland", "Isle of Man", "Italy",
"Jersey", "Latvia", "Liechtenstein", "Lithuania",
"Luxembourg", "Macedonia", "Malta", "Moldova",
"Monaco", "Montenegro", "Netherlands", "Norway",
"Poland", "Portugal", "Romania", "San Marino",
"Serbia and Montenegro", "Slovakia", "Slovenia",
"Spain", "Sweden", "Switzerland", "Ukraine",
"United Kingdom", "Vatican The Holy See"};
+ private static final String[] cityMEast = {"Middle East",
"Akrotiri", "Bahrain", "Cyprus", "Dhekelia",
"Gaza Strip", "Iran", "Iraq", "Israel",
"Jordan", "Kuwait", "Lebanon", "Oman",
"Qatar", "Saudi Arabia", "Syria", "Turkey",
"United Arab Emirates", "West Bank", "Yemen"};
+ private static final String[] cityNAmerica = {"North America",
"Bermuda", "Canada", "Greenland", "Mexico",
"Saint Pierre and Miquelon", "United States of America"};
+ private static final String[] cityOceania = {"Oceania", "American
Samoa", "Australia", "Baker Island", "Cook Islands",
"Coral Sea Islands", "Fiji", "French Polynesia",
"Guam", "Howland Island", "Jarvis Island", "Johnston
Atoll", "Kingman Reef", "Kiribati", "Marshall Islands",
"Micronesia", "Midway Islands", "Nauru", "New
Caledonia", "New Zealand", "Niue", "Norfolk Island",
"Northern Mariana Islands", "Palau", "Palmyra Atoll",
"Papua New Guinea", "Pitcairn Islands", "Samoa",
"Solomon Islands", "Tokelau", "Tonga", "Tuvalu",
"Vanuatu", "Wake Island", "Wallis and Futuna"};
+ private static final String[] citySAmerica = {"South
America","Argentina", "Bolivia", "Brazil",
"Chile", "Colombia", "Easter Island", "Ecuador",
"Falkland Islands", "French Guiana", "Guyana",
"Paraguay", "Peru", "Suriname", "Uruguay",
"Venezuela"};
+ private static final String[] citySEAsia = {"SouthEast Asia", "Ashmore
and Cartier Islands", "Brunei", "Burma", "Cambodia",
"Christmas Island", "Cocos (Keeling) Islands", "East Timor",
"Hong Kong", "Indonesia", "Laos", "Malaysia",
"Paracel Islands", "Philippines", "Singapore", "Spratly
Islands", "Taiwan", "Thailand", "Vietnam"};
+ private static final String[] cityCaribbean = {"The Caribbean",
"Anguilla", "Antigua and Barbuda", "Aruba",
"Barbados", "British Virgin Islands", "Cayman Islands",
"Cuba", "Dominica", "Dominican Republic",
"Grenada", "Guadeloupe", "Haiti", "Jamaica",
"Martinique", "Montserrat", "Navassa Island",
"Netherlands Antilles", "Puerto Rico", "Saint Barthelemy",
"Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the
Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks
and Caicos Islands", "Virgin Islands"};
public Sb() {
border = "1";
@@ -42,7 +56,6 @@
height = "150";
shadowOpacity = "1";
shadowDepth = Integer.toString(SuggestionBoxRenderer.SHADOW_DEPTH);
- reRender = true;
zindex = "3";
focus = true;
rows = "0";
@@ -62,7 +75,7 @@
Iterator iterator = getAllData().iterator();
while (iterator.hasNext()) {
Data elem = (Data) iterator.next();
- if ((elem != null && elem.getText().toLowerCase().indexOf(
+ if ((elem != null && elem.getCity().toLowerCase().indexOf(
pref.toLowerCase()) == 0)
|| "".equals(pref)) {
result.add(elem);
@@ -79,13 +92,31 @@
this.cities = cities;
}
+ private ArrayList<Data> addData(String [] mStr, ArrayList<Data> arr) {
+ for(int i = 1; i < mStr.length; i++) {
+ Data data = new Data(mStr[i], mStr[0], false);
+ arr.add(data);
+ }
+ return arr;
+ }
+
public ArrayList getAllData() {
- ArrayList result = new ArrayList();
- for (int i = 0; i < cit.length; i++) {
+/* for (int i = 0; i < cit.length; i++) {
Data data = new Data(cit[i], String.valueOf(i + 1));
result.add(data);
- }
- return result;
+ }*/
+ ArrayList<Data> result = new ArrayList<Data>();
+ result = addData(cityAfrica, result);
+ result = addData(cityAsia, result);
+ result = addData(cityCAmerica ,result);
+ result = addData(cityCaribbean ,result);
+ result = addData(cityEurope ,result);
+ result = addData(cityMEast ,result);
+ result = addData(cityNAmerica ,result);
+ result = addData(cityOceania ,result);
+ result = addData(citySAmerica ,result);
+ result = addData(citySEAsia ,result);
+ return result;
}
public ArrayList getData() {
@@ -181,8 +212,7 @@
}
public void OnSelect() {
- System.out.print("Onselect works!!!");
-
+ System.out.print("Onselect works!!!");
}
public String getBorder() {
@@ -249,14 +279,6 @@
this.shadowDepth = shadowDepth;
}
- public boolean isReRender() {
- return reRender;
- }
-
- public void setReRender(boolean reRender) {
- this.reRender = reRender;
- }
-
public void bTest1(){
setBorder("2");
setCellpadding("0");
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml 2007-11-14
15:33:36 UTC (rev 3987)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBox.xhtml 2007-11-14
16:00:00 UTC (rev 3988)
@@ -4,33 +4,34 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">
<h:form id="suggestionbox_form">
+ <h:messages showDetail="true"/>
<f:verbatim>Suggestion Box will suggest you Town's names if it's started
with the "a" or "A" letter
<br />
</f:verbatim>
- <h:inputText id="text" />
- <rich:suggestionbox id="suggestionBoxId" for="text"
+ <h:inputText value="#{suggestionBox.property}" id="text" />
+ <rich:suggestionbox id="suggestionBoxId" for="text"
var="result"
zindex="#{sb.zindex}" rules="#{sb.rules}"
styleClass="styleClass"
- suggestionAction="#{sb.autocomplete}" var="result"
+ suggestionAction="#{sb.autocomplete}"
width="#{sb.width}" height="#{sb.height}"
border="#{sb.border}"
cellpadding="#{sb.cellpadding}" cellspacing="#{sb.cellspacing}"
- first="#{sb.first}" minChars="#{sb.minchars}" tokens=",
]"
+ first="#{sb.first}" minChars="1" tokens=", ]"
bgcolor="#{sb.bgColor}" focus="#{sb.forcus}"
title="#{result.text}"
summary="summary" shadowOpacity="#{sb.shadowOpacity}"
- shadowDepth="#{sb.shadowDepth}" reRender="#{sb.reRender}"
- selectValueClass="mousemove" frequency="#{sb.frequency}"
+ shadowDepth="#{sb.shadowDepth}" selectValueClass="mousemove"
frequency="#{sb.frequency}"
nothingLabel="nothingLabel work! "
oncomplete="print('oncompleteInputID', 'oncomplete work!')"
- onselect="print('onselectInputID', 'onselect work!')"
onsubmit="print('onsubmitInputID', 'onsubmit work!')">
+ onselect="print('onselectInputID', 'onselect work!')" >
<h:column>
- <h:outputText value="#{result.text}" />
+ <h:outputText value="#{result.city}" />
</h:column>
+ <h:column>
+ <h:outputText value="#{result.contry}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.flag}" />
+ </h:column>
+
</rich:suggestionbox>
<div
style="position: relative; font-size: 50px; z-index: 2; color:
navy">z-index</div>
-
- <f:verbatim>
- <br />
- <br />
- </f:verbatim>
-
</h:form>
</f:subview>
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml 2007-11-14
15:33:36 UTC (rev 3987)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxProperty.xhtml 2007-11-14
16:00:00 UTC (rev 3988)
@@ -1,31 +1,95 @@
-<f:subview id="suggestionboxPropertySubviewID"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:rich="http://richfaces.org/rich"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
- <rich:simpleTogglePanel switchType="client" opened="true"
- label="suggestionBox straightforward">
- <h:panelGrid columns="2">
- <h:outputText value="Test1" />
- <a4j:commandButton action="#{sb.bTest1}" value="run"
- reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+<f:subview id="suggestionboxPropertySubviewID"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel id="sbPropertyID" switchType="client"
opened="true" label="suggestionBox property">
+ <h:panelGrid columns="2" cellpadding="5px">
- <h:outputText value="Test2" />
- <a4j:commandButton action="#{sb.bTest2}" value="run"
- reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <h:outputText value="z-index"></h:outputText>
+ <h:selectOneRadio value="#{sb.zindex}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <a4j:support event="onclick"
reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Test3" />
- <a4j:commandButton action="#{sb.bTest3}" value="run"
- reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <f:verbatim>Frequency</f:verbatim>
+ <h:inputText value="#{sb.frequency}">
+ <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Test4" />
- <a4j:commandButton action="#{sb.bTest4}" value="run"
- reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ <f:verbatim>Border</f:verbatim>
+ <h:inputText value="#{sb.border}">
+ <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Test5" />
- <a4j:commandButton action="#{sb.bTest5}" value="run"
- reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
- </h:panelGrid>
- </rich:simpleTogglePanel>
+ <f:verbatim>Width</f:verbatim>
+ <h:inputText value="#{sb.width}">
+ <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Height</f:verbatim>
+ <h:inputText value="#{sb.height}">
+ <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Cellpadding</f:verbatim>
+ <h:inputText value="#{sb.cellpadding}">
+ <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>Cellspacing</f:verbatim>
+ <h:inputText value="#{sb.cellspacing}">
+ <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>First</f:verbatim>
+ <h:inputText value="#{sb.first}">
+ <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <f:verbatim>MinChars</f:verbatim>
+ <h:inputText value="#{sb.minchars}">
+ <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="Background Colour"></h:outputText>
+ <h:selectOneMenu value="#{sb.bgColor}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="aqua" itemValue="aqua" />
+ <f:selectItem itemLabel="blue" itemValue="blue" />
+ <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
+ <f:selectItem itemLabel="gray" itemValue="gray" />
+ <f:selectItem itemLabel="lime" itemValue="lime" />
+ <f:selectItem itemLabel="maroon" itemValue="maroon" />
+ <f:selectItem itemLabel="purple" itemValue="purple" />
+ <f:selectItem itemLabel="red" itemValue="red" />
+ <f:selectItem itemLabel="silver" itemValue="silver" />
+ <f:selectItem itemLabel="teal" itemValue="teal" />
+ <f:selectItem itemLabel="yellow" itemValue="yellow" />
+ <f:selectItem itemLabel="white" itemValue="white" />
+ <a4j:support event="onclick"
reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="Shadow Opacity"></h:outputText>
+ <h:selectOneRadio value="#{sb.shadowOpacity}">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="3" itemValue="2" />
+ <f:selectItem itemLabel="5" itemValue="3" />
+ <f:selectItem itemLabel="7" itemValue="4" />
+ <f:selectItem itemLabel="9" itemValue="5" />
+ <f:selectItem itemLabel="11" itemValue="6" />
+ <f:selectItem itemLabel="13" itemValue="7" />
+ <f:selectItem itemLabel="15" itemValue="8" />
+ <a4j:support event="onclick"
reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="Shadow Depth"></h:outputText>
+ <h:selectOneRadio value="#{sb.shadowDepth}">
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <f:selectItem itemLabel="4" itemValue="4" />
+ <f:selectItem itemLabel="5" itemValue="5" />
+ <f:selectItem itemLabel="6" itemValue="6" />
+ <f:selectItem itemLabel="7" itemValue="6" />
+ <a4j:support event="onclick"
reRender="suggestionBoxId"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml 2007-11-14
15:33:36 UTC (rev 3987)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/SuggestionBox/SuggestionBoxStraightforward.xhtml 2007-11-14
16:00:00 UTC (rev 3988)
@@ -1,103 +1,22 @@
-<f:subview id="suggestionboxStraightforwardSubviewID"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:rich="http://richfaces.org/rich"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
- <rich:simpleTogglePanel id="sbPropertyID" switchType="client"
- opened="true" label="suggestionBox property">
- <h:panelGrid columns="2" cellpadding="5px">
+<f:subview id="suggestionboxStraightforwardSubviewID"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:ui="http://java.sun.com/jsf/facelets">
- <h:outputText value="z-index"></h:outputText>
- <h:selectOneRadio value="#{sb.zindex}">
- <f:selectItem itemLabel="1" itemValue="1" />
- <f:selectItem itemLabel="3" itemValue="3" />
- <a4j:support event="onclick"
reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
+ <rich:simpleTogglePanel switchType="client" opened="true"
label="suggestionBox straightforward">
+ <h:panelGrid columns="2">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{sb.bTest1}" value="run"
reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
- <f:verbatim>Frequency</f:verbatim>
- <h:inputText value="#{sb.frequency}">
- <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{sb.bTest2}" value="run"
reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
- <f:verbatim>Border</f:verbatim>
- <h:inputText value="#{sb.border}">
- <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{sb.bTest3}" value="run"
reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
- <f:verbatim>Width</f:verbatim>
- <h:inputText value="#{sb.width}">
- <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{sb.bTest4}" value="run"
reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
- <f:verbatim>Height</f:verbatim>
- <h:inputText value="#{sb.height}">
- <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Cellpadding</f:verbatim>
- <h:inputText value="#{sb.cellpadding}">
- <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>Cellspacing</f:verbatim>
- <h:inputText value="#{sb.cellspacing}">
- <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>First</f:verbatim>
- <h:inputText value="#{sb.first}">
- <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <f:verbatim>MinChars</f:verbatim>
- <h:inputText value="#{sb.minchars}">
- <a4j:support event="onchange"
reRender="suggestionBoxId"></a4j:support>
- </h:inputText>
-
- <h:outputText value="Background Colour"></h:outputText>
- <h:selectOneMenu value="#{sb.bgColor}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="aqua" itemValue="aqua" />
- <f:selectItem itemLabel="blue" itemValue="blue" />
- <f:selectItem itemLabel="fuchsia" itemValue="fuchsia" />
- <f:selectItem itemLabel="gray" itemValue="gray" />
- <f:selectItem itemLabel="lime" itemValue="lime" />
- <f:selectItem itemLabel="maroon" itemValue="maroon" />
- <f:selectItem itemLabel="purple" itemValue="purple" />
- <f:selectItem itemLabel="red" itemValue="red" />
- <f:selectItem itemLabel="silver" itemValue="silver" />
- <f:selectItem itemLabel="teal" itemValue="teal" />
- <f:selectItem itemLabel="yellow" itemValue="yellow" />
- <f:selectItem itemLabel="white" itemValue="white" />
- <a4j:support event="onclick"
reRender="suggestionBoxId"></a4j:support>
- </h:selectOneMenu>
-
- <h:outputText value="Shadow Opacity"></h:outputText>
- <h:selectOneRadio value="#{sb.shadowOpacity}">
- <f:selectItem itemLabel="1" itemValue="1" />
- <f:selectItem itemLabel="3" itemValue="2" />
- <f:selectItem itemLabel="5" itemValue="3" />
- <f:selectItem itemLabel="7" itemValue="4" />
- <f:selectItem itemLabel="9" itemValue="5" />
- <f:selectItem itemLabel="11" itemValue="6" />
- <f:selectItem itemLabel="13" itemValue="7" />
- <f:selectItem itemLabel="15" itemValue="8" />
- <a4j:support event="onclick"
reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="Shadow Depth"></h:outputText>
- <h:selectOneRadio value="#{sb.shadowDepth}">
- <f:selectItem itemLabel="3" itemValue="3" />
- <f:selectItem itemLabel="4" itemValue="4" />
- <f:selectItem itemLabel="5" itemValue="5" />
- <f:selectItem itemLabel="6" itemValue="6" />
- <f:selectItem itemLabel="7" itemValue="6" />
- <a4j:support event="onclick"
reRender="suggestionBoxId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="reRender"></h:outputText>
- <h:selectBooleanCheckbox
value="#{sb.reRender}"></h:selectBooleanCheckbox>
- </h:panelGrid>
- </rich:simpleTogglePanel>
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{sb.bTest5}" value="run"
reRender="sbPropertyID,suggestionBoxId"></a4j:commandButton>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
</f:subview>
\ No newline at end of file