Author: F.antonov
Date: 2007-04-23 11:24:59 -0400 (Mon, 23 Apr 2007)
New Revision: 488
Modified:
trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
Log:
Small demo application upgrade. New attribute ("onsubmit") test added.
Modified: trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp
===================================================================
---
trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2007-04-23
15:18:10 UTC (rev 487)
+++
trunk/richfaces-samples/suggestionbox-sample/src/main/webapp/pages/index.jsp 2007-04-23
15:24:59 UTC (rev 488)
@@ -47,7 +47,8 @@
width="#{suggestionBox.width}"
height="#{suggestionBox.height}"
shadowDepth="#{suggestionBox.shadowDepth}"
- cellpadding="#{suggestionBox.cellpadding}">
+ cellpadding="#{suggestionBox.cellpadding}"
+ onsubmit="#{suggestionBox.onsubmitFunction}">
<a4j:ajaxListener type="org.richfaces.AjaxListener"/>
<h:column>
@@ -115,6 +116,14 @@
<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()">
+ <f:selectItem itemLabel="true" itemValue="true"/>
+ <f:selectItem itemLabel="false" itemValue="false"/>
+ <f:selectItem itemLabel="no function"
itemValue="none"/>
+ </h:selectOneRadio>
</h:panelGrid>
</h:form>
Show replies by date