Author: A.Skokov
Date: 2007-06-04 11:17:22 -0400 (Mon, 04 Jun 2007)
New Revision: 1001
Modified:
trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java
trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
Log:
https://jira.exadel.com/browse/PS-61
Modified:
trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java
===================================================================
---
trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java 2007-06-04
14:52:59 UTC (rev 1000)
+++
trunk/richfaces-samples/suggestionbox-sample/src/main/java/org/richfaces/SuggestionBox.java 2007-06-04
15:17:22 UTC (rev 1001)
@@ -173,10 +173,6 @@
return rows;
}
- public int getIntRows() {
- return Integer.parseInt(getRows());
- }
-
public void setRows(String rows) {
this.rows = rows;
}
@@ -241,7 +237,7 @@
public void setShadowOpacity(String shadowOpacity) {
this.shadowOpacity = shadowOpacity;
}
-
+
public String getOnsubmit() {
return onsubmit;
}
@@ -249,8 +245,8 @@
public void setOnsubmit(String onsubmit) {
this.onsubmit = onsubmit;
}
-
- public String getOnsubmitFunction() {
+
+ public String getOnsubmitFunction() {
if ("false".equalsIgnoreCase(onsubmit)) return null;
return "alert(this.value); return " + onsubmit + ";";
}
Modified: trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
===================================================================
---
trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2007-06-04
14:52:59 UTC (rev 1000)
+++
trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2007-06-04
15:17:22 UTC (rev 1001)
@@ -39,7 +39,7 @@
<rich:suggestionbox id="suggestionBoxId" for="text"
tokens=",["
rules="#{suggestionBox.rules}"
suggestionAction="#{suggestionBox.autocomplete}"
var="result"
- fetchValue="#{result.text}"
rows="#{suggestionBox.intRows}"
+ fetchValue="#{result.text}"
first="#{suggestionBox.intFirst}"
minChars="#{suggestionBox.minchars}"
shadowOpacity="#{suggestionBox.shadowOpacity}"
@@ -115,7 +115,7 @@
<f:verbatim>Cellpadding</f:verbatim>
<f:verbatim> </f:verbatim>
<h:inputText value="#{suggestionBox.cellpadding}"
onchange="submit()" />
-
+
<f:verbatim>Onsubmit function will return</f:verbatim>
<f:verbatim> </f:verbatim>
<h:selectOneRadio value="#{suggestionBox.onsubmit}"
onchange="submit()">