Author: abelevich
Date: 2008-04-14 12:13:43 -0400 (Mon, 14 Apr 2008)
New Revision: 7819
Modified:
branches/3.2.x/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
branches/3.2.x/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.jsp
branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.xhtml
Log:
Modified:
branches/3.2.x/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
---
branches/3.2.x/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14
16:13:24 UTC (rev 7818)
+++
branches/3.2.x/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14
16:13:43 UTC (rev 7819)
@@ -42,7 +42,7 @@
private boolean selectFirstOnUpdate = true;
private boolean filterNewValues = true;
private boolean directInputSuggestions = true;
- private String defaultMessage = "South Carolina";
+ private String defaultMessage = "South J&'<uneau Carolina";
private String width;
private String listWidth;
private String listHeight;
Modified: branches/3.2.x/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/3.2.x/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14
16:13:24 UTC (rev 7818)
+++ branches/3.2.x/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14
16:13:43 UTC (rev 7819)
@@ -10,7 +10,7 @@
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
- </context-param>
+ </context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
Modified: branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-04-14
16:13:24 UTC (rev 7818)
+++ branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-04-14
16:13:43 UTC (rev 7819)
@@ -76,15 +76,14 @@
filterNewValues="#{bean.filterNewValues}"
directInputSuggestions="#{bean.directInputSuggestions}"
defaultLabel="#{bean.defaultMessage}"
- inputSize="#{bean.inputSize}"
onchange="#{bean.onchangeScript}"
- onlistcall="#{bean.onlistcallScript}"
- onitemselected="#{bean.onitemselectedScript}">
+ onlistcall="#{bean.onlistcallScript}">
<f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="Oregon"/>
- <f:selectItem itemValue="Pennsylvania Oregonfdsf fdsfdsfds dsffdsfdsfdsf
fdsfdsfwdsfsfsd fdsfdsfdsfds dfsfdsfdsfds"/>
+ <f:selectItem itemValue="Pennsylvania"/>
<f:selectItem itemValue="Rhode Island"/>
- <f:selectItem itemValue="South Carolina"/>
+ <f:selectItem itemValue="South J&'<uneau Carolina"/>
+ <f:selectItem itemValue="J&'<uneau"/>
</cmb:comboBox>
Modified: branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-04-14
16:13:24 UTC (rev 7818)
+++ branches/3.2.x/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-04-14
16:13:43 UTC (rev 7819)
@@ -1,10 +1,13 @@
-<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> -->
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:cmb="http://labs.jboss.com/jbossrichfaces/ui/combobox">
+
xmlns:cmb="http://labs.jboss.com/jbossrichfaces/ui/combobox"
+
xmlns:a4j="http://richfaces.org/a4j" prefix="a4j"
+ >
<head>
<title></title>
@@ -61,6 +64,7 @@
</h:panelGrid>
<cmb:comboBox
+ id="combo"
disabled="#{bean.disabled}"
inputClass="inputClass"
buttonDisabledClass="buttonDisabledClass"
@@ -84,9 +88,11 @@
<f:selectItems value="#{bean.selectItems}"/>
<f:selectItem itemValue="Oregon"/>
<f:selectItem itemValue="Pennsylvania"/>
- <f:selectItem itemValue="Rhode Island
gsdfgsdgdsgdsgdsgdsggdsgsdgdsgdsgdsgdsgdsgdsgdsgds"/>
- <f:selectItem itemValue="South Carolina"/>
-
+ <f:selectItem itemValue="&test"/>
+ <f:selectItem itemValue="South J&'<uneau
Carolina"/>
+ <f:selectItem itemValue="J&'<uneau"/>
+ <a4j:support event="onselect" reRender="combo"/>
+
</cmb:comboBox>
<br/>