Author: nbelaevski
Date: 2008-04-04 16:41:58 -0400 (Fri, 04 Apr 2008)
New Revision: 7615
Modified:
branches/3.1.x/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
Log:
http://jira.jboss.com/jira/browse/RF-2713
http://jira.jboss.com/jira/browse/RF-2344
Modified: branches/3.1.x/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.1.x/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2008-04-04
20:41:53 UTC (rev 7614)
+++ branches/3.1.x/samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2008-04-04
20:41:58 UTC (rev 7615)
@@ -31,7 +31,7 @@
<br/>
<br/>
-<h:panelGrid columns="3" border="0" style="border: 1px solid
black;">
+<h:panelGrid columns="5" border="0" style="border: 1px solid
black;">
<f:verbatim>Suggestion Box will suggest you Town's names if it's
started with the "a" or
"A" letter</f:verbatim>
@@ -66,6 +66,32 @@
</h:outputText>
</h:column>
</rich:suggestionbox>
+
+ <h:inputText value="#{suggestionBox.property}" id="text1">
+ <rich:suggestionbox id="suggestionBoxId1" tokens=",["
+ rules="#{suggestionBox.rules}"
+ suggestionAction="#{suggestionBox.autocomplete}"
var="result"
+ fetchValue="#{result.text}"
+ first="#{suggestionBox.intFirst}"
+ minChars="#{suggestionBox.minchars}"
+ shadowOpacity="#{suggestionBox.shadowOpacity}"
+ border="#{suggestionBox.border}"
+ width="#{suggestionBox.width}"
+ height="#{suggestionBox.height}"
+ shadowDepth="#{suggestionBox.shadowDepth}"
+ cellpadding="#{suggestionBox.cellpadding}">
+
+ <a4j:ajaxListener type="org.richfaces.AjaxListener"/>
+ <h:column>
+ <h:outputText value="#{result.text}"/>
+ </h:column>
+ <h:column>
+ <h:outputText value="#{result.price}">
+ <f:convertNumber pattern="#,##.00"
type="currency"/>
+ </h:outputText>
+ </h:column>
+ </rich:suggestionbox>
+ </h:inputText>
</h:panelGrid>
<br/>