Author: nbelaevski
Date: 2010-07-08 09:22:21 -0400 (Thu, 08 Jul 2010)
New Revision: 17771
Added:
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/CountriesBean.java
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/Country.java
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/TestBean.java
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/countries.xml
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/countries.xsd
Removed:
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/DataBean.java
Modified:
root/examples-sandbox/trunk/components/combobox-demo/src/main/webapp/WEB-INF/faces-config.xml
root/examples-sandbox/trunk/components/combobox-demo/src/main/webapp/index.xhtml
Log:
AJAXed comboBox functionality
Added:
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/CountriesBean.java
===================================================================
---
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/CountriesBean.java
(rev 0)
+++
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/CountriesBean.java 2010-07-08
13:22:21 UTC (rev 17771)
@@ -0,0 +1,80 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.richfaces.demo;
+
+import java.net.URL;
+import java.util.List;
+
+import javax.annotation.PostConstruct;
+import javax.faces.FacesException;
+import javax.faces.bean.ApplicationScoped;
+import javax.faces.bean.ManagedBean;
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Unmarshaller;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * @author nick
+ *
+ */
+@ManagedBean(eager = true)
+@ApplicationScoped
+public class CountriesBean {
+
+ private List<Country> countries;
+
+ @XmlRootElement(name = "countries", namespace = Country.NAMESPACE)
+ private static class Countries {
+
+ @XmlElement(name = "country", namespace = Country.NAMESPACE)
+ private List<Country> countries;
+
+ public List<Country> getCountries() {
+ return countries;
+ }
+ }
+
+ public CountriesBean() {
+ }
+
+ @PostConstruct
+ public void initialize() {
+ try {
+ JAXBContext countryContext = JAXBContext.newInstance(Countries.class);
+ Unmarshaller unmarshaller = countryContext.createUnmarshaller();
+
+ ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
+ URL dataUrl =
classLoader.getResource("org/richfaces/demo/countries.xml");
+
+ countries = ((Countries) unmarshaller.unmarshal(dataUrl)).getCountries();
+ } catch (JAXBException e) {
+ throw new FacesException(e.getMessage(), e);
+ }
+ }
+
+ public List<Country> getCountries() {
+ return countries;
+ }
+}
Added:
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/Country.java
===================================================================
---
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/Country.java
(rev 0)
+++
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/Country.java 2010-07-08
13:22:21 UTC (rev 17771)
@@ -0,0 +1,79 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+
+package org.richfaces.demo;
+
+import javax.xml.bind.annotation.XmlElement;
+
+import com.google.common.base.Objects;
+import com.google.common.base.Objects.ToStringHelper;
+
+/**
+ * @author nick
+ *
+ */
+public class Country {
+
+ public static final String NAMESPACE =
"http://richfaces.org/demos/countries";
+
+ private String name;
+
+ private String iso;
+
+ private String domain;
+
+ @XmlElement(namespace = Country.NAMESPACE)
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getIso() {
+ return iso;
+ }
+
+ @XmlElement(namespace = Country.NAMESPACE)
+ public void setIso(String iso) {
+ this.iso = iso;
+ }
+
+ public String getDomain() {
+ return domain;
+ }
+
+ @XmlElement(namespace = Country.NAMESPACE)
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ @Override
+ public String toString() {
+ ToStringHelper helper = Objects.toStringHelper(this);
+
+ helper.add("name", name).add("iso",
iso).add("domain", domain);
+
+ return helper.toString();
+ }
+}
Deleted:
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/DataBean.java
===================================================================
---
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/DataBean.java 2010-07-08
13:20:35 UTC (rev 17770)
+++
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/DataBean.java 2010-07-08
13:22:21 UTC (rev 17771)
@@ -1,57 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.richfaces.demo;
-
-import java.text.DateFormatSymbols;
-import java.util.ArrayList;
-import java.util.Calendar;
-import java.util.List;
-import java.util.Locale;
-
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
-
-/**
- * @author Nick Belaevski
- *
- */
-@ManagedBean
-@SessionScoped
-public class DataBean {
-
- private List<String> monthsData;
-
- public DataBean() {
- super();
-
- DateFormatSymbols symbols = DateFormatSymbols.getInstance(Locale.US);
- monthsData = new ArrayList<String>();
- String[] monthSymbols = symbols.getMonths();
- for (int i = Calendar.JANUARY; i <= Calendar.DECEMBER; i++) {
- monthsData.add(monthSymbols[i]);
- }
- }
-
- public List<String> getMonthsData() {
- return monthsData;
- }
-}
Copied:
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/TestBean.java
(from rev 17761,
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/DataBean.java)
===================================================================
---
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/TestBean.java
(rev 0)
+++
root/examples-sandbox/trunk/components/combobox-demo/src/main/java/org/richfaces/demo/TestBean.java 2010-07-08
13:22:21 UTC (rev 17771)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.richfaces.demo;
+
+import java.util.Locale;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ManagedProperty;
+import javax.faces.bean.SessionScoped;
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+import com.google.common.base.Predicate;
+import com.google.common.collect.Collections2;
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+@ManagedBean
+@SessionScoped
+public class TestBean {
+
+ private class CountryNamePredicate implements Predicate<Country> {
+
+ private String countryNamePrefix;
+
+ public CountryNamePredicate(String countryNamePrefix) {
+ super();
+ this.countryNamePrefix = countryNamePrefix;
+ }
+
+ public boolean apply(Country input) {
+ if (countryNamePrefix == null || countryNamePrefix.length() == 0) {
+ return true;
+ }
+
+ return input.getName().toLowerCase(Locale.US).startsWith(countryNamePrefix);
+ }
+ }
+
+ @ManagedProperty(value = "#{countriesBean}")
+ private CountriesBean countriesBean;
+
+ public void setCountriesBean(CountriesBean countriesBean) {
+ this.countriesBean = countriesBean;
+ }
+
+ public Object autocomplete(FacesContext facesContext, UIComponent component, String
value) {
+ return Collections2.filter(countriesBean.getCountries(), new
CountryNamePredicate(value));
+ }
+
+}
Added:
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/countries.xml
===================================================================
---
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/countries.xml
(rev 0)
+++
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/countries.xml 2010-07-08
13:22:21 UTC (rev 17771)
@@ -0,0 +1,1368 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
+<countries
xmlns="http://richfaces.org/demos/countries">
+ <country>
+ <name>Afghanistan</name>
+ <iso>AF/AFG/4</iso>
+ <domain>.af</domain>
+ </country>
+ <country>
+ <name>Albania</name>
+ <iso>AL/ALB/8</iso>
+ <domain>.al</domain>
+ </country>
+ <country>
+ <name>Algeria</name>
+ <iso>DZ/DZA/12</iso>
+ <domain>.dz</domain>
+ </country>
+ <country>
+ <name>American Samoa</name>
+ <iso>AS/ASM/16</iso>
+ <domain>.as</domain>
+ </country>
+ <country>
+ <name>Andorra</name>
+ <iso>AD/AND/20</iso>
+ <domain>.ad</domain>
+ </country>
+ <country>
+ <name>Angola</name>
+ <iso>AO/AGO/24</iso>
+ <domain>.ao</domain>
+ </country>
+ <country>
+ <name>Anguilla</name>
+ <iso>AI/AIA/660</iso>
+ <domain>.ai</domain>
+ </country>
+ <country>
+ <name>Antarctica</name>
+ <iso>AQ/ATA/10</iso>
+ <domain>.aq</domain>
+ </country>
+ <country>
+ <name>Antigua and Barbuda</name>
+ <iso>AG/ATG/28</iso>
+ <domain>.ag</domain>
+ </country>
+ <country>
+ <name>Argentina</name>
+ <iso>AR/ARG/32</iso>
+ <domain>.ar</domain>
+ </country>
+ <country>
+ <name>Armenia</name>
+ <iso>AM/ARM/51</iso>
+ <domain>.am</domain>
+ </country>
+ <country>
+ <name>Aruba</name>
+ <iso>AW/ABW/533</iso>
+ <domain>.aw</domain>
+ </country>
+ <country>
+ <name>Ashmore and Cartier Islands</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Australia</name>
+ <iso>AU/AUS/36</iso>
+ <domain>.au</domain>
+ </country>
+ <country>
+ <name>Austria</name>
+ <iso>AT/AUT/40</iso>
+ <domain>.at</domain>
+ </country>
+ <country>
+ <name>Azerbaijan</name>
+ <iso>AZ/AZE/31</iso>
+ <domain>.az</domain>
+ </country>
+ <country>
+ <name>Bahamas, The</name>
+ <iso>BS/BHS/44</iso>
+ <domain>.bs</domain>
+ </country>
+ <country>
+ <name>Bahrain</name>
+ <iso>BH/BHR/48</iso>
+ <domain>.bh</domain>
+ </country>
+ <country>
+ <name>Baker Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Bangladesh</name>
+ <iso>BD/BGD/50</iso>
+ <domain>.bd</domain>
+ </country>
+ <country>
+ <name>Barbados</name>
+ <iso>BB/BRB/52</iso>
+ <domain>.bb</domain>
+ </country>
+ <country>
+ <name>Bassas da India</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Belarus</name>
+ <iso>BY/BLR/112</iso>
+ <domain>.by</domain>
+ </country>
+ <country>
+ <name>Belgium</name>
+ <iso>BE/BEL/56</iso>
+ <domain>.be</domain>
+ </country>
+ <country>
+ <name>Belize</name>
+ <iso>BZ/BLZ/84</iso>
+ <domain>.bz</domain>
+ </country>
+ <country>
+ <name>Benin</name>
+ <iso>BJ/BEN/204</iso>
+ <domain>.bj</domain>
+ </country>
+ <country>
+ <name>Bermuda</name>
+ <iso>BM/BMU/60</iso>
+ <domain>.bm</domain>
+ </country>
+ <country>
+ <name>Bhutan</name>
+ <iso>BT/BTN/64</iso>
+ <domain>.bt</domain>
+ </country>
+ <country>
+ <name>Bolivia</name>
+ <iso>BO/BOL/68</iso>
+ <domain>.bo</domain>
+ </country>
+ <country>
+ <name>Bosnia and Herzegovina</name>
+ <iso>BA/BIH/70</iso>
+ <domain>.ba</domain>
+ </country>
+ <country>
+ <name>Botswana</name>
+ <iso>BW/BWA/72</iso>
+ <domain>.bw</domain>
+ </country>
+ <country>
+ <name>Bouvet Island</name>
+ <iso>BV/BVT/74</iso>
+ <domain>.bv</domain>
+ </country>
+ <country>
+ <name>Brazil</name>
+ <iso>BR/BRA/76</iso>
+ <domain>.br</domain>
+ </country>
+ <country>
+ <name>British Indian Ocean Territory</name>
+ <iso>IO/IOT/86</iso>
+ <domain>.io</domain>
+ </country>
+ <country>
+ <name>British Virgin Islands</name>
+ <iso>VG/VGB/92</iso>
+ <domain>.vg</domain>
+ </country>
+ <country>
+ <name>Brunei</name>
+ <iso>BN/BRN/96</iso>
+ <domain>.bn</domain>
+ </country>
+ <country>
+ <name>Bulgaria</name>
+ <iso>BG/BGR/100</iso>
+ <domain>.bg</domain>
+ </country>
+ <country>
+ <name>Burkina Faso</name>
+ <iso>BF/BFA/854</iso>
+ <domain>.bf</domain>
+ </country>
+ <country>
+ <name>Burma</name>
+ <iso>MM/MMR/104</iso>
+ <domain>.mm</domain>
+ </country>
+ <country>
+ <name>Burundi</name>
+ <iso>BI/BDI/108</iso>
+ <domain>.bi</domain>
+ </country>
+ <country>
+ <name>Cambodia</name>
+ <iso>KH/KHM/116</iso>
+ <domain>.kh</domain>
+ </country>
+ <country>
+ <name>Cameroon</name>
+ <iso>CM/CMR/120</iso>
+ <domain>.cm</domain>
+ </country>
+ <country>
+ <name>Canada</name>
+ <iso>CA/CAN/124</iso>
+ <domain>.ca</domain>
+ </country>
+ <country>
+ <name>Cape Verde</name>
+ <iso>CV/CPV/132</iso>
+ <domain>.cv</domain>
+ </country>
+ <country>
+ <name>Cayman Islands</name>
+ <iso>KY/CYM/136</iso>
+ <domain>.ky</domain>
+ </country>
+ <country>
+ <name>Central African Republic</name>
+ <iso>CF/CAF/140</iso>
+ <domain>.cf</domain>
+ </country>
+ <country>
+ <name>Chad</name>
+ <iso>TD/TCD/148</iso>
+ <domain>.td</domain>
+ </country>
+ <country>
+ <name>Chile</name>
+ <iso>CL/CHL/152</iso>
+ <domain>.cl</domain>
+ </country>
+ <country>
+ <name>China</name>
+ <iso>CN/CHN/156</iso>
+ <domain>.cn</domain>
+ </country>
+ <country>
+ <name>Christmas Island</name>
+ <iso>CX/CXR/162</iso>
+ <domain>.cx</domain>
+ </country>
+ <country>
+ <name>Clipperton Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Cocos (Keeling) Islands</name>
+ <iso>CC/CCK/166</iso>
+ <domain>.cc</domain>
+ </country>
+ <country>
+ <name>Colombia</name>
+ <iso>CO/COL/170</iso>
+ <domain>.co</domain>
+ </country>
+ <country>
+ <name>Comoros</name>
+ <iso>KM/COM/174</iso>
+ <domain>.km</domain>
+ </country>
+ <country>
+ <name>Congo, Democratic Republic of the</name>
+ <iso>CD/COD/180</iso>
+ <domain>.cd</domain>
+ </country>
+ <country>
+ <name>Congo, Republic of the</name>
+ <iso>CG/COG/178</iso>
+ <domain>.cg</domain>
+ </country>
+ <country>
+ <name>Cook Islands</name>
+ <iso>CK/COK/184</iso>
+ <domain>.ck</domain>
+ </country>
+ <country>
+ <name>Coral Sea Islands</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Costa Rica</name>
+ <iso>CR/CRI/188</iso>
+ <domain>.cr</domain>
+ </country>
+ <country>
+ <name>Cote d'Ivoire</name>
+ <iso>CI/CIV/384</iso>
+ <domain>.ci</domain>
+ </country>
+ <country>
+ <name>Croatia</name>
+ <iso>HR/HRV/191</iso>
+ <domain>.hr</domain>
+ </country>
+ <country>
+ <name>Cuba</name>
+ <iso>CU/CUB/192</iso>
+ <domain>.cu</domain>
+ </country>
+ <country>
+ <name>Cyprus</name>
+ <iso>CY/CYP/196</iso>
+ <domain>.cy</domain>
+ </country>
+ <country>
+ <name>Czech Republic</name>
+ <iso>CZ/CZE/203</iso>
+ <domain>.cz</domain>
+ </country>
+ <country>
+ <name>Denmark</name>
+ <iso>DK/DNK/208</iso>
+ <domain>.dk</domain>
+ </country>
+ <country>
+ <name>Djibouti</name>
+ <iso>DJ/DJI/262</iso>
+ <domain>.dj</domain>
+ </country>
+ <country>
+ <name>Dominica</name>
+ <iso>DM/DMA/212</iso>
+ <domain>.dm</domain>
+ </country>
+ <country>
+ <name>Dominican Republic</name>
+ <iso>DO/DOM/214</iso>
+ <domain>.do</domain>
+ </country>
+ <country>
+ <name>Ecuador</name>
+ <iso>EC/ECU/218</iso>
+ <domain>.ec</domain>
+ </country>
+ <country>
+ <name>Egypt</name>
+ <iso>EG/EGY/818</iso>
+ <domain>.eg</domain>
+ </country>
+ <country>
+ <name>El Salvador</name>
+ <iso>SV/SLV/222</iso>
+ <domain>.sv</domain>
+ </country>
+ <country>
+ <name>Equatorial Guinea</name>
+ <iso>GQ/GNQ/226</iso>
+ <domain>.gq</domain>
+ </country>
+ <country>
+ <name>Eritrea</name>
+ <iso>ER/ERI/232</iso>
+ <domain>.er</domain>
+ </country>
+ <country>
+ <name>Estonia</name>
+ <iso>EE/EST/233</iso>
+ <domain>.ee</domain>
+ </country>
+ <country>
+ <name>Ethiopia</name>
+ <iso>ET/ETH/231</iso>
+ <domain>.et</domain>
+ </country>
+ <country>
+ <name>Europa Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Falkland Islands (Islas Malvinas)</name>
+ <iso>FK/FLK/238</iso>
+ <domain>.fk</domain>
+ </country>
+ <country>
+ <name>Faroe Islands</name>
+ <iso>FO/FRO/234</iso>
+ <domain>.fo</domain>
+ </country>
+ <country>
+ <name>Fiji</name>
+ <iso>FJ/FJI/242</iso>
+ <domain>.fj</domain>
+ </country>
+ <country>
+ <name>Finland</name>
+ <iso>FI/FIN/246</iso>
+ <domain>.fi</domain>
+ </country>
+ <country>
+ <name>France</name>
+ <iso>FR/FRA/250</iso>
+ <domain>.fr</domain>
+ </country>
+ <country>
+ <name>France, Metropolitan</name>
+ <iso>FX/FXX/249</iso>
+ <domain>.fx</domain>
+ </country>
+ <country>
+ <name>French Guiana</name>
+ <iso>GF/GUF/254</iso>
+ <domain>.gf</domain>
+ </country>
+ <country>
+ <name>French Polynesia</name>
+ <iso>PF/PYF/258</iso>
+ <domain>.pf</domain>
+ </country>
+ <country>
+ <name>French Southern and Antarctic Lands</name>
+ <iso>TF/ATF/260</iso>
+ <domain>.tf</domain>
+ </country>
+ <country>
+ <name>Gabon</name>
+ <iso>GA/GAB/266</iso>
+ <domain>.ga</domain>
+ </country>
+ <country>
+ <name>Gambia, The</name>
+ <iso>GM/GMB/270</iso>
+ <domain>.gm</domain>
+ </country>
+ <country>
+ <name>Gaza Strip</name>
+ <iso>PS/PSE/275</iso>
+ <domain>.ps</domain>
+ </country>
+ <country>
+ <name>Georgia</name>
+ <iso>GE/GEO/268</iso>
+ <domain>.ge</domain>
+ </country>
+ <country>
+ <name>Germany</name>
+ <iso>DE/DEU/276</iso>
+ <domain>.de</domain>
+ </country>
+ <country>
+ <name>Ghana</name>
+ <iso>GH/GHA/288</iso>
+ <domain>.gh</domain>
+ </country>
+ <country>
+ <name>Gibraltar</name>
+ <iso>GI/GIB/292</iso>
+ <domain>.gi</domain>
+ </country>
+ <country>
+ <name>Glorioso Islands</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Greece</name>
+ <iso>GR/GRC/300</iso>
+ <domain>.gr</domain>
+ </country>
+ <country>
+ <name>Greenland</name>
+ <iso>GL/GRL/304</iso>
+ <domain>.gl</domain>
+ </country>
+ <country>
+ <name>Grenada</name>
+ <iso>GD/GRD/308</iso>
+ <domain>.gd</domain>
+ </country>
+ <country>
+ <name>Guadeloupe</name>
+ <iso>GP/GLP/312</iso>
+ <domain>.gp</domain>
+ </country>
+ <country>
+ <name>Guam</name>
+ <iso>GU/GUM/316</iso>
+ <domain>.gu</domain>
+ </country>
+ <country>
+ <name>Guatemala</name>
+ <iso>GT/GTM/320</iso>
+ <domain>.gt</domain>
+ </country>
+ <country>
+ <name>Guernsey</name>
+ <iso>GG/GGY/831</iso>
+ <domain>.gg</domain>
+ </country>
+ <country>
+ <name>Guinea</name>
+ <iso>GN/GIN/324</iso>
+ <domain>.gn</domain>
+ </country>
+ <country>
+ <name>Guinea-Bissau</name>
+ <iso>GW/GNB/624</iso>
+ <domain>.gw</domain>
+ </country>
+ <country>
+ <name>Guyana</name>
+ <iso>GY/GUY/328</iso>
+ <domain>.gy</domain>
+ </country>
+ <country>
+ <name>Haiti</name>
+ <iso>HT/HTI/332</iso>
+ <domain>.ht</domain>
+ </country>
+ <country>
+ <name>Heard Island and McDonald Islands</name>
+ <iso>HM/HMD/334</iso>
+ <domain>.hm</domain>
+ </country>
+ <country>
+ <name>Holy See (Vatican City)</name>
+ <iso>VA/VAT/336</iso>
+ <domain>.va</domain>
+ </country>
+ <country>
+ <name>Honduras</name>
+ <iso>HN/HND/340</iso>
+ <domain>.hn</domain>
+ </country>
+ <country>
+ <name>Hong Kong</name>
+ <iso>HK/HKG/344</iso>
+ <domain>.hk</domain>
+ </country>
+ <country>
+ <name>Howland Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Hungary</name>
+ <iso>HU/HUN/348</iso>
+ <domain>.hu</domain>
+ </country>
+ <country>
+ <name>Iceland</name>
+ <iso>IS/ISL/352</iso>
+ <domain>.is</domain>
+ </country>
+ <country>
+ <name>India</name>
+ <iso>IN/IND/356</iso>
+ <domain>.in</domain>
+ </country>
+ <country>
+ <name>Indonesia</name>
+ <iso>ID/IDN/360</iso>
+ <domain>.id</domain>
+ </country>
+ <country>
+ <name>Iran</name>
+ <iso>IR/IRN/364</iso>
+ <domain>.ir</domain>
+ </country>
+ <country>
+ <name>Iraq</name>
+ <iso>IQ/IRQ/368</iso>
+ <domain>.iq</domain>
+ </country>
+ <country>
+ <name>Ireland</name>
+ <iso>IE/IRL/372</iso>
+ <domain>.ie</domain>
+ </country>
+ <country>
+ <name>Isle of Man</name>
+ <iso>IM/IMN/833</iso>
+ <domain>.im</domain>
+ </country>
+ <country>
+ <name>Israel</name>
+ <iso>IL/ISR/376</iso>
+ <domain>.il</domain>
+ </country>
+ <country>
+ <name>Italy</name>
+ <iso>IT/ITA/380</iso>
+ <domain>.it</domain>
+ </country>
+ <country>
+ <name>Jamaica</name>
+ <iso>JM/JAM/388</iso>
+ <domain>.jm</domain>
+ </country>
+ <country>
+ <name>Jan Mayen</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Japan</name>
+ <iso>JP/JPN/392</iso>
+ <domain>.jp</domain>
+ </country>
+ <country>
+ <name>Jarvis Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Jersey</name>
+ <iso>JE/JEY/832</iso>
+ <domain>.je</domain>
+ </country>
+ <country>
+ <name>Johnston Atoll</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Jordan</name>
+ <iso>JO/JOR/400</iso>
+ <domain>.jo</domain>
+ </country>
+ <country>
+ <name>Juan de Nova Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Kazakhstan</name>
+ <iso>KZ/KAZ/398</iso>
+ <domain>.kz</domain>
+ </country>
+ <country>
+ <name>Kenya</name>
+ <iso>KE/KEN/404</iso>
+ <domain>.ke</domain>
+ </country>
+ <country>
+ <name>Kingman Reef</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Kiribati</name>
+ <iso>KI/KIR/296</iso>
+ <domain>.ki</domain>
+ </country>
+ <country>
+ <name>Korea, North</name>
+ <iso>KP/PRK/408</iso>
+ <domain>.kp</domain>
+ </country>
+ <country>
+ <name>Korea, South</name>
+ <iso>KR/KOR/410</iso>
+ <domain>.kr</domain>
+ </country>
+ <country>
+ <name>Kosovo</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Kuwait</name>
+ <iso>KW/KWT/414</iso>
+ <domain>.kw</domain>
+ </country>
+ <country>
+ <name>Kyrgyzstan</name>
+ <iso>KG/KGZ/417</iso>
+ <domain>.kg</domain>
+ </country>
+ <country>
+ <name>Laos</name>
+ <iso>LA/LAO/418</iso>
+ <domain>.la</domain>
+ </country>
+ <country>
+ <name>Latvia</name>
+ <iso>LV/LVA/428</iso>
+ <domain>.lv</domain>
+ </country>
+ <country>
+ <name>Lebanon</name>
+ <iso>LB/LBN/422</iso>
+ <domain>.lb</domain>
+ </country>
+ <country>
+ <name>Lesotho</name>
+ <iso>LS/LSO/426</iso>
+ <domain>.ls</domain>
+ </country>
+ <country>
+ <name>Liberia</name>
+ <iso>LR/LBR/430</iso>
+ <domain>.lr</domain>
+ </country>
+ <country>
+ <name>Libya</name>
+ <iso>LY/LBY/434</iso>
+ <domain>.ly</domain>
+ </country>
+ <country>
+ <name>Liechtenstein</name>
+ <iso>LI/LIE/438</iso>
+ <domain>.li</domain>
+ </country>
+ <country>
+ <name>Lithuania</name>
+ <iso>LT/LTU/440</iso>
+ <domain>.lt</domain>
+ </country>
+ <country>
+ <name>Luxembourg</name>
+ <iso>LU/LUX/442</iso>
+ <domain>.lu</domain>
+ </country>
+ <country>
+ <name>Macau</name>
+ <iso>MO/MAC/446</iso>
+ <domain>.mo</domain>
+ </country>
+ <country>
+ <name>Macedonia</name>
+ <iso>MK/MKD/807</iso>
+ <domain>.mk</domain>
+ </country>
+ <country>
+ <name>Madagascar</name>
+ <iso>MG/MDG/450</iso>
+ <domain>.mg</domain>
+ </country>
+ <country>
+ <name>Malawi</name>
+ <iso>MW/MWI/454</iso>
+ <domain>.mw</domain>
+ </country>
+ <country>
+ <name>Malaysia</name>
+ <iso>MY/MYS/458</iso>
+ <domain>.my</domain>
+ </country>
+ <country>
+ <name>Maldives</name>
+ <iso>MV/MDV/462</iso>
+ <domain>.mv</domain>
+ </country>
+ <country>
+ <name>Mali</name>
+ <iso>ML/MLI/466</iso>
+ <domain>.ml</domain>
+ </country>
+ <country>
+ <name>Malta</name>
+ <iso>MT/MLT/470</iso>
+ <domain>.mt</domain>
+ </country>
+ <country>
+ <name>Marshall Islands</name>
+ <iso>MH/MHL/584</iso>
+ <domain>.mh</domain>
+ </country>
+ <country>
+ <name>Martinique</name>
+ <iso>MQ/MTQ/474</iso>
+ <domain>.mq</domain>
+ </country>
+ <country>
+ <name>Mauritania</name>
+ <iso>MR/MRT/478</iso>
+ <domain>.mr</domain>
+ </country>
+ <country>
+ <name>Mauritius</name>
+ <iso>MU/MUS/480</iso>
+ <domain>.mu</domain>
+ </country>
+ <country>
+ <name>Mayotte</name>
+ <iso>YT/MYT/175</iso>
+ <domain>.yt</domain>
+ </country>
+ <country>
+ <name>Mexico</name>
+ <iso>MX/MEX/484</iso>
+ <domain>.mx</domain>
+ </country>
+ <country>
+ <name>Micronesia, Federated States of</name>
+ <iso>FM/FSM/583</iso>
+ <domain>.fm</domain>
+ </country>
+ <country>
+ <name>Midway Islands</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Moldova</name>
+ <iso>MD/MDA/498</iso>
+ <domain>.md</domain>
+ </country>
+ <country>
+ <name>Monaco</name>
+ <iso>MC/MCO/492</iso>
+ <domain>.mc</domain>
+ </country>
+ <country>
+ <name>Mongolia</name>
+ <iso>MN/MNG/496</iso>
+ <domain>.mn</domain>
+ </country>
+ <country>
+ <name>Montenegro</name>
+ <iso>ME/MNE/499</iso>
+ <domain>.me</domain>
+ </country>
+ <country>
+ <name>Montserrat</name>
+ <iso>MS/MSR/500</iso>
+ <domain>.ms</domain>
+ </country>
+ <country>
+ <name>Morocco</name>
+ <iso>MA/MAR/504</iso>
+ <domain>.ma</domain>
+ </country>
+ <country>
+ <name>Mozambique</name>
+ <iso>MZ/MOZ/508</iso>
+ <domain>.mz</domain>
+ </country>
+ <country>
+ <name>Myanmar</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Namibia</name>
+ <iso>NA/NAM/516</iso>
+ <domain>.na</domain>
+ </country>
+ <country>
+ <name>Nauru</name>
+ <iso>NR/NRU/520</iso>
+ <domain>.nr</domain>
+ </country>
+ <country>
+ <name>Navassa Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Nepal</name>
+ <iso>NP/NPL/524</iso>
+ <domain>.np</domain>
+ </country>
+ <country>
+ <name>Netherlands</name>
+ <iso>NL/NLD/528</iso>
+ <domain>.nl</domain>
+ </country>
+ <country>
+ <name>Netherlands Antilles</name>
+ <iso>AN/ANT/530</iso>
+ <domain>.an</domain>
+ </country>
+ <country>
+ <name>New Caledonia</name>
+ <iso>NC/NCL/540</iso>
+ <domain>.nc</domain>
+ </country>
+ <country>
+ <name>New Zealand</name>
+ <iso>NZ/NZL/554</iso>
+ <domain>.nz</domain>
+ </country>
+ <country>
+ <name>Nicaragua</name>
+ <iso>NI/NIC/558</iso>
+ <domain>.ni</domain>
+ </country>
+ <country>
+ <name>Niger</name>
+ <iso>NE/NER/562</iso>
+ <domain>.ne</domain>
+ </country>
+ <country>
+ <name>Nigeria</name>
+ <iso>NG/NGA/566</iso>
+ <domain>.ng</domain>
+ </country>
+ <country>
+ <name>Niue</name>
+ <iso>NU/NIU/570</iso>
+ <domain>.nu</domain>
+ </country>
+ <country>
+ <name>Norfolk Island</name>
+ <iso>NF/NFK/574</iso>
+ <domain>.nf</domain>
+ </country>
+ <country>
+ <name>Northern Mariana Islands</name>
+ <iso>MP/MNP/580</iso>
+ <domain>.mp</domain>
+ </country>
+ <country>
+ <name>Norway</name>
+ <iso>NO/NOR/578</iso>
+ <domain>.no</domain>
+ </country>
+ <country>
+ <name>Oman</name>
+ <iso>OM/OMN/512</iso>
+ <domain>.om</domain>
+ </country>
+ <country>
+ <name>Pakistan</name>
+ <iso>PK/PAK/586</iso>
+ <domain>.pk</domain>
+ </country>
+ <country>
+ <name>Palau</name>
+ <iso>PW/PLW/585</iso>
+ <domain>.pw</domain>
+ </country>
+ <country>
+ <name>Palmyra Atoll</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Panama</name>
+ <iso>PA/PAN/591</iso>
+ <domain>.pa</domain>
+ </country>
+ <country>
+ <name>Papua New Guinea</name>
+ <iso>PG/PNG/598</iso>
+ <domain>.pg</domain>
+ </country>
+ <country>
+ <name>Paracel Islands</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Paraguay</name>
+ <iso>PY/PRY/600</iso>
+ <domain>.py</domain>
+ </country>
+ <country>
+ <name>Peru</name>
+ <iso>PE/PER/604</iso>
+ <domain>.pe</domain>
+ </country>
+ <country>
+ <name>Philippines</name>
+ <iso>PH/PHL/608</iso>
+ <domain>.ph</domain>
+ </country>
+ <country>
+ <name>Pitcairn Islands</name>
+ <iso>PN/PCN/612</iso>
+ <domain>.pn</domain>
+ </country>
+ <country>
+ <name>Poland</name>
+ <iso>PL/POL/616</iso>
+ <domain>.pl</domain>
+ </country>
+ <country>
+ <name>Portugal</name>
+ <iso>PT/PRT/620</iso>
+ <domain>.pt</domain>
+ </country>
+ <country>
+ <name>Puerto Rico</name>
+ <iso>PR/PRI/630</iso>
+ <domain>.pr</domain>
+ </country>
+ <country>
+ <name>Qatar</name>
+ <iso>QA/QAT/634</iso>
+ <domain>.qa</domain>
+ </country>
+ <country>
+ <name>Reunion</name>
+ <iso>RE/REU/638</iso>
+ <domain>.re</domain>
+ </country>
+ <country>
+ <name>Romania</name>
+ <iso>RO/ROU/642</iso>
+ <domain>.ro</domain>
+ </country>
+ <country>
+ <name>Russia</name>
+ <iso>RU/RUS/643</iso>
+ <domain>.ru</domain>
+ </country>
+ <country>
+ <name>Rwanda</name>
+ <iso>RW/RWA/646</iso>
+ <domain>.rw</domain>
+ </country>
+ <country>
+ <name>Saint Barthelemy</name>
+ <iso>BL/BLM/652</iso>
+ <domain>.bl</domain>
+ </country>
+ <country>
+ <name>Saint Helena</name>
+ <iso>SH/SHN/654</iso>
+ <domain>.sh</domain>
+ </country>
+ <country>
+ <name>Saint Kitts and Nevis</name>
+ <iso>KN/KNA/659</iso>
+ <domain>.kn</domain>
+ </country>
+ <country>
+ <name>Saint Lucia</name>
+ <iso>LC/LCA/662</iso>
+ <domain>.lc</domain>
+ </country>
+ <country>
+ <name>Saint Martin</name>
+ <iso>MF/MAF/663</iso>
+ <domain>.mf</domain>
+ </country>
+ <country>
+ <name>Saint Pierre and Miquelon</name>
+ <iso>PM/SPM/666</iso>
+ <domain>.pm</domain>
+ </country>
+ <country>
+ <name>Saint Vincent and the Grenadines</name>
+ <iso>VC/VCT/670</iso>
+ <domain>.vc</domain>
+ </country>
+ <country>
+ <name>Samoa</name>
+ <iso>WS/WSM/882</iso>
+ <domain>.ws</domain>
+ </country>
+ <country>
+ <name>San Marino</name>
+ <iso>SM/SMR/674</iso>
+ <domain>.sm</domain>
+ </country>
+ <country>
+ <name>Sao Tome and Principe</name>
+ <iso>ST/STP/678</iso>
+ <domain>.st</domain>
+ </country>
+ <country>
+ <name>Saudi Arabia</name>
+ <iso>SA/SAU/682</iso>
+ <domain>.sa</domain>
+ </country>
+ <country>
+ <name>Senegal</name>
+ <iso>SN/SEN/686</iso>
+ <domain>.sn</domain>
+ </country>
+ <country>
+ <name>Serbia</name>
+ <iso>RS/SRB/688</iso>
+ <domain>.rs</domain>
+ </country>
+ <country>
+ <name>Seychelles</name>
+ <iso>SC/SYC/690</iso>
+ <domain>.sc</domain>
+ </country>
+ <country>
+ <name>Sierra Leone</name>
+ <iso>SL/SLE/694</iso>
+ <domain>.sl</domain>
+ </country>
+ <country>
+ <name>Singapore</name>
+ <iso>SG/SGP/702</iso>
+ <domain>.sg</domain>
+ </country>
+ <country>
+ <name>Slovakia</name>
+ <iso>SK/SVK/703</iso>
+ <domain>.sk</domain>
+ </country>
+ <country>
+ <name>Slovenia</name>
+ <iso>SI/SVN/705</iso>
+ <domain>.si</domain>
+ </country>
+ <country>
+ <name>Solomon Islands</name>
+ <iso>SB/SLB/90</iso>
+ <domain>.sb</domain>
+ </country>
+ <country>
+ <name>Somalia</name>
+ <iso>SO/SOM/706</iso>
+ <domain>.so</domain>
+ </country>
+ <country>
+ <name>South Africa</name>
+ <iso>ZA/ZAF/710</iso>
+ <domain>.za</domain>
+ </country>
+ <country>
+ <name>South Georgia and the Islands</name>
+ <iso>GS/SGS/239</iso>
+ <domain>.gs</domain>
+ </country>
+ <country>
+ <name>Spain</name>
+ <iso>ES/ESP/724</iso>
+ <domain>.es</domain>
+ </country>
+ <country>
+ <name>Spratly Islands</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Sri Lanka</name>
+ <iso>LK/LKA/144</iso>
+ <domain>.lk</domain>
+ </country>
+ <country>
+ <name>Sudan</name>
+ <iso>SD/SDN/736</iso>
+ <domain>.sd</domain>
+ </country>
+ <country>
+ <name>Suriname</name>
+ <iso>SR/SUR/740</iso>
+ <domain>.sr</domain>
+ </country>
+ <country>
+ <name>Svalbard</name>
+ <iso>SJ/SJM/744</iso>
+ <domain>.sj</domain>
+ </country>
+ <country>
+ <name>Swaziland</name>
+ <iso>SZ/SWZ/748</iso>
+ <domain>.sz</domain>
+ </country>
+ <country>
+ <name>Sweden</name>
+ <iso>SE/SWE/752</iso>
+ <domain>.se</domain>
+ </country>
+ <country>
+ <name>Switzerland</name>
+ <iso>CH/CHE/756</iso>
+ <domain>.ch</domain>
+ </country>
+ <country>
+ <name>Syria</name>
+ <iso>SY/SYR/760</iso>
+ <domain>.sy</domain>
+ </country>
+ <country>
+ <name>Taiwan</name>
+ <iso>TW/TWN/158</iso>
+ <domain>.tw</domain>
+ </country>
+ <country>
+ <name>Tajikistan</name>
+ <iso>TJ/TJK/762</iso>
+ <domain>.tj</domain>
+ </country>
+ <country>
+ <name>Tanzania</name>
+ <iso>TZ/TZA/834</iso>
+ <domain>.tz</domain>
+ </country>
+ <country>
+ <name>Thailand</name>
+ <iso>TH/THA/764</iso>
+ <domain>.th</domain>
+ </country>
+ <country>
+ <name>Timor-Leste</name>
+ <iso>TL/TLS/626</iso>
+ <domain>.tl</domain>
+ </country>
+ <country>
+ <name>Togo</name>
+ <iso>TG/TGO/768</iso>
+ <domain>.tg</domain>
+ </country>
+ <country>
+ <name>Tokelau</name>
+ <iso>TK/TKL/772</iso>
+ <domain>.tk</domain>
+ </country>
+ <country>
+ <name>Tonga</name>
+ <iso>TO/TON/776</iso>
+ <domain>.to</domain>
+ </country>
+ <country>
+ <name>Trinidad and Tobago</name>
+ <iso>TT/TTO/780</iso>
+ <domain>.tt</domain>
+ </country>
+ <country>
+ <name>Tromelin Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Tunisia</name>
+ <iso>TN/TUN/788</iso>
+ <domain>.tn</domain>
+ </country>
+ <country>
+ <name>Turkey</name>
+ <iso>TR/TUR/792</iso>
+ <domain>.tr</domain>
+ </country>
+ <country>
+ <name>Turkmenistan</name>
+ <iso>TM/TKM/795</iso>
+ <domain>.tm</domain>
+ </country>
+ <country>
+ <name>Turks and Caicos Islands</name>
+ <iso>TC/TCA/796</iso>
+ <domain>.tc</domain>
+ </country>
+ <country>
+ <name>Tuvalu</name>
+ <iso>TV/TUV/798</iso>
+ <domain>.tv</domain>
+ </country>
+ <country>
+ <name>Uganda</name>
+ <iso>UG/UGA/800</iso>
+ <domain>.ug</domain>
+ </country>
+ <country>
+ <name>Ukraine</name>
+ <iso>UA/UKR/804</iso>
+ <domain>.ua</domain>
+ </country>
+ <country>
+ <name>United Arab Emirates</name>
+ <iso>AE/ARE/784</iso>
+ <domain>.ae</domain>
+ </country>
+ <country>
+ <name>United Kingdom</name>
+ <iso>GB/GBR/826</iso>
+ <domain>.uk</domain>
+ </country>
+ <country>
+ <name>United States</name>
+ <iso>US/USA/840</iso>
+ <domain>.us</domain>
+ </country>
+ <country>
+ <name>United States Minor Outlying Islands</name>
+ <iso>UM/UMI/581</iso>
+ <domain>.um</domain>
+ </country>
+ <country>
+ <name>Uruguay</name>
+ <iso>UY/URY/858</iso>
+ <domain>.uy</domain>
+ </country>
+ <country>
+ <name>Uzbekistan</name>
+ <iso>UZ/UZB/860</iso>
+ <domain>.uz</domain>
+ </country>
+ <country>
+ <name>Vanuatu</name>
+ <iso>VU/VUT/548</iso>
+ <domain>.vu</domain>
+ </country>
+ <country>
+ <name>Venezuela</name>
+ <iso>VE/VEN/862</iso>
+ <domain>.ve</domain>
+ </country>
+ <country>
+ <name>Vietnam</name>
+ <iso>VN/VNM/704</iso>
+ <domain>.vn</domain>
+ </country>
+ <country>
+ <name>Virgin Islands</name>
+ <iso>VI/VIR/850</iso>
+ <domain>.vi</domain>
+ </country>
+ <country>
+ <name>Virgin Islands (UK)</name>
+ <iso>-/-/-</iso>
+ <domain>.vg</domain>
+ </country>
+ <country>
+ <name>Virgin Islands (US)</name>
+ <iso>-/-/-</iso>
+ <domain>.vi</domain>
+ </country>
+ <country>
+ <name>Wake Island</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Wallis and Futuna</name>
+ <iso>WF/WLF/876</iso>
+ <domain>.wf</domain>
+ </country>
+ <country>
+ <name>West Bank</name>
+ <iso>PS/PSE/275</iso>
+ <domain>.ps</domain>
+ </country>
+ <country>
+ <name>Western Sahara</name>
+ <iso>EH/ESH/732</iso>
+ <domain>.eh</domain>
+ </country>
+ <country>
+ <name>Western Samoa</name>
+ <iso>-/-/-</iso>
+ <domain>.ws</domain>
+ </country>
+ <country>
+ <name>Yemen</name>
+ <iso>YE/YEM/887</iso>
+ <domain>.ye</domain>
+ </country>
+ <country>
+ <name>Zaire</name>
+ <iso>-/-/-</iso>
+ <domain>-</domain>
+ </country>
+ <country>
+ <name>Zambia</name>
+ <iso>ZM/ZMB/894</iso>
+ <domain>.zm</domain>
+ </country>
+ <country>
+ <name>Zimbabwe</name>
+ <iso>ZW/ZWE/716</iso>
+ <domain>.zw</domain>
+ </country>
+</countries>
\ No newline at end of file
Added:
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/countries.xsd
===================================================================
---
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/countries.xsd
(rev 0)
+++
root/examples-sandbox/trunk/components/combobox-demo/src/main/resources/org/richfaces/demo/countries.xsd 2010-07-08
13:22:21 UTC (rev 17771)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://richfaces.org/demos/countries"
+
xmlns:tns="http://richfaces.org/demos/countries"
elementFormDefault="unqualified">
+
+ <element name="countries">
+ <complexType>
+ <sequence maxOccurs="unbounded">
+ <element name="country">
+ <complexType>
+ <sequence>
+ <element name="name" />
+ <element name="iso" />
+ <element name="domain" />
+ </sequence>
+ </complexType>
+ </element>
+ </sequence>
+ </complexType>
+ </element>
+
+</schema>
\ No newline at end of file
Modified:
root/examples-sandbox/trunk/components/combobox-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
root/examples-sandbox/trunk/components/combobox-demo/src/main/webapp/WEB-INF/faces-config.xml 2010-07-08
13:20:35 UTC (rev 17770)
+++
root/examples-sandbox/trunk/components/combobox-demo/src/main/webapp/WEB-INF/faces-config.xml 2010-07-08
13:22:21 UTC (rev 17771)
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
- version="2.0">
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+ version="2.0">
+
</faces-config>
\ No newline at end of file
Modified:
root/examples-sandbox/trunk/components/combobox-demo/src/main/webapp/index.xhtml
===================================================================
---
root/examples-sandbox/trunk/components/combobox-demo/src/main/webapp/index.xhtml 2010-07-08
13:20:35 UTC (rev 17770)
+++
root/examples-sandbox/trunk/components/combobox-demo/src/main/webapp/index.xhtml 2010-07-08
13:22:21 UTC (rev 17771)
@@ -15,12 +15,14 @@
<h:form id="form">
<div style="height: 300px; width: 300px; overflow: auto;">Text
block text block text block text block text block text block text
- block text block
-
- <combo:comboBox autocompleteList="#{dataBean.monthsData}" />
-
+ block text block
+
+ <combo:comboBox autocompleteMethod="#{testBean.autocomplete}"
var="country">
+ #{country.name} #{country.iso} #{country.domain}
+ </combo:comboBox>
+
<br />
- <select style="width: 200px">
+ <select style="width: 200px" name="select">
<option>ccccc</option>
</select> text block text block text block text block text block text
block text block text block text block text block text block text