Author: abelevich
Date: 2008-04-14 12:10:03 -0400 (Mon, 14 Apr 2008)
New Revision: 7814
Modified:
trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
trunk/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
trunk/samples/combobox-sample/src/main/webapp/pages/index.jsp
trunk/samples/combobox-sample/src/main/webapp/pages/index.xhtml
Log:
Modified: trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
--- trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14
16:09:46 UTC (rev 7813)
+++ trunk/samples/combobox-sample/src/main/java/org/richfaces/samples/Bean.java 2008-04-14
16:10:03 UTC (rev 7814)
@@ -42,7 +42,7 @@
private boolean selectFirstOnUpdate = true;
private boolean filterNewValues = true;
private boolean directInputSuggestions = true;
- private String defaultMessage = "South Carolina";
+ private String defaultMessage = "edit ...";
private String width;
private String listWidth;
private String listHeight;
@@ -52,7 +52,7 @@
private String onitemselectedScript;
- private String state="";
+ private String state="J&'<uneau";
Modified: trunk/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-04-14
16:09:46 UTC (rev 7813)
+++ trunk/samples/combobox-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-04-14
16:10:03 UTC (rev 7814)
@@ -18,11 +18,17 @@
<managed-bean-name>carsManager</managed-bean-name>
<managed-bean-class>org.richfaces.samples.CarsManager</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>suggest</managed-bean-name>
+ <managed-bean-class>org.richfaces.samples.SuggestBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
<converter>
<converter-id>carConverter</converter-id>
<converter-class>org.richfaces.samples.converter.CarConverter</converter-class>
</converter>
-
</faces-config>
Modified: trunk/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:09:46 UTC
(rev 7813)
+++ trunk/samples/combobox-sample/src/main/webapp/WEB-INF/web.xml 2008-04-14 16:10:03 UTC
(rev 7814)
@@ -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: trunk/samples/combobox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:09:46 UTC
(rev 7813)
+++ trunk/samples/combobox-sample/src/main/webapp/pages/index.jsp 2008-04-14 16:10:03 UTC
(rev 7814)
@@ -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="Rhode Island"/>
<f:selectItem itemValue="South Carolina"/>
+ <f:selectItem itemValue="J&'<uneau"/>
</cmb:comboBox>
Modified: trunk/samples/combobox-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:09:46
UTC (rev 7813)
+++ trunk/samples/combobox-sample/src/main/webapp/pages/index.xhtml 2008-04-14 16:10:03
UTC (rev 7814)
@@ -1,11 +1,14 @@
-<!-- <!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:p="http://labs.jboss.com/jbossrichfaces/ui/panel"
+
xmlns:a4j="http://richfaces.org/a4j"
+ >
<head>
<title></title>
</head>
@@ -76,23 +79,36 @@
selectFirstOnUpdate="#{bean.selectFirstOnUpdate}"
filterNewValues="#{bean.filterNewValues}"
directInputSuggestions="#{bean.directInputSuggestions}"
- defaultLabel="#{bean.defaultMessage}"
+ defaultLabel="&test'<test"
inputSize="#{bean.inputSize}"
onchange="#{bean.onchangeScript}"
onlistcall="#{bean.onlistcallScript}"
onitemselected="#{bean.onitemselectedScript}">
<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="&select"/>
+ <f:selectItem itemValue="&unselect"/>
+ <f:selectItem itemValue="J&'<uneau"/>
+ <f:selectItem itemValue="test"/>
</cmb:comboBox>
-
+
<br/>
<h:commandButton action="none"
value="submit"></h:commandButton>
<br/>
<h:outputText value="Selected state is:
#{bean.state}"></h:outputText>
+
+ <p:panel id="orderHead">
+ <a4j:commandButton id="com" reRender="part"
action="#{suggest.updateProperty2}" value="Refresh"/>
+ <p:panel id="part">
+ <cmb:comboBox value="#{suggest.property}">
+ <f:selectItems value="#{suggest.comboSelectItems}" />
+ </cmb:comboBox>
+ <h:outputText id="propOut" value="#{suggest.property}"
/><br/>
+ <h:outputText id="propOut2" value="#{suggest.property2}"
/><br/>
+ </p:panel>
+ </p:panel>
+
</h:form>
</f:view>
</body>