[richfaces-svn-commits] JBoss Rich Faces SVN: r4526 - branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Dec 5 21:03:08 EST 2007


Author: nbelaevski
Date: 2007-12-05 21:03:08 -0500 (Wed, 05 Dec 2007)
New Revision: 4526

Modified:
   branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
Log:
onorderchanged event handler updated

Modified: branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages/index.jsp	2007-12-06 02:03:04 UTC (rev 4525)
+++ branches/3.1.x/samples/listShuttleDemo/src/main/webapp/pages/index.jsp	2007-12-06 02:03:08 UTC (rev 4526)
@@ -30,6 +30,7 @@
 					moveControlsVisible="#{listShuttleDemoBean.moveControlsVisible}"
 					fastMoveControlsVisible="#{listShuttleDemoBean.fastMoveControlsVisible}"
 					converter="#{converter}"
+					onorderchanged="orderChanged(event)"
 				
 					sourceSelection="#{listShuttleDemoBean.sourceSelection}"
 					targetSelection="#{listShuttleDemoBean.targetSelection}"
@@ -46,6 +47,18 @@
 					</h:column>
 				</ls:listShuttle>
 			
+				<f:verbatim>
+					<div id="cdiv" style="width: 600px; height: 200px; overflow: auto;"></div>
+	
+					<script>
+						function orderChanged(event) {
+							var cdiv = $('cdiv');
+							Element.clearChildren(cdiv);
+							cdiv.appendChild(document.createTextNode(Object.inspect($H(event))));
+						}
+					</script>
+				</f:verbatim>
+				
 				<h:panelGrid columns="2">
 					<h:outputText value="Order controls visible:" />
 					<h:selectBooleanCheckbox value="#{listShuttleDemoBean.orderControlsVisible}" />




More information about the richfaces-svn-commits mailing list