Author: nbelaevski
Date: 2008-03-23 15:42:44 -0400 (Sun, 23 Mar 2008)
New Revision: 7093
Modified:
trunk/samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java
trunk/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
Log:
http://jira.jboss.com/jira/browse/RF-2576
Modified:
trunk/samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java
===================================================================
---
trunk/samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java 2008-03-23
14:53:26 UTC (rev 7092)
+++
trunk/samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java 2008-03-23
19:42:44 UTC (rev 7093)
@@ -32,6 +32,8 @@
import org.richfaces.renderkit.html.SuggestionBoxRenderer;
public class SuggestionBox implements Serializable {
+ private boolean usingSuggestObjects;
+
private String property;
private ArrayList cities;
@@ -261,4 +263,12 @@
public void setOnsubmitFunction(String onsubmit) {
}
+
+ public boolean isUsingSuggestObjects() {
+ return usingSuggestObjects;
+ }
+
+ public void setUsingSuggestObjects(boolean usingSuggestObjects) {
+ this.usingSuggestObjects = usingSuggestObjects;
+ }
}
Modified: trunk/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2008-03-23 14:53:26
UTC (rev 7092)
+++ trunk/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2008-03-23 19:42:44
UTC (rev 7093)
@@ -53,7 +53,8 @@
width="#{suggestionBox.width}"
height="#{suggestionBox.height}"
shadowDepth="#{suggestionBox.shadowDepth}"
- cellpadding="#{suggestionBox.cellpadding}">
+ cellpadding="#{suggestionBox.cellpadding}"
+
usingSuggestObjects="#{suggestionBox.usingSuggestObjects}">
<a4j:ajaxListener type="org.richfaces.AjaxListener"/>
<h:column>
@@ -80,7 +81,7 @@
height="#{suggestionBox.height}"
shadowDepth="#{suggestionBox.shadowDepth}"
cellpadding="#{suggestionBox.cellpadding}"
- useSuggestObjects="true">
+
usingSuggestObjects="#{suggestionBox.usingSuggestObjects}">
<a4j:ajaxListener type="org.richfaces.AjaxListener"/>
<h:column>
@@ -163,6 +164,10 @@
<f:selectItem itemLabel="no function"
itemValue="none"/>
</h:selectOneRadio>
+ <f:verbatim>Using Suggestion Objects</f:verbatim>
+ <f:verbatim> </f:verbatim>
+ <h:selectBooleanCheckbox value="#{suggestionBox.usingSuggestObjects}"
onchange="submit()" />
+
</h:panelGrid>
</h:form>
</f:view>