Author: adubovsky
Date: 2008-06-10 08:32:24 -0400 (Tue, 10 Jun 2008)
New Revision: 8976
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
Log:
Add new events and parameters
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
===================================================================
---
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2008-06-10
12:30:59 UTC (rev 8975)
+++
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2008-06-10
12:32:24 UTC (rev 8976)
@@ -4,6 +4,12 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="listShuttleSubviewID">
+ <rich:messages ajaxRendered="true" showDetail="true">
+ <f:facet name="errorMarker">
+ <h:graphicImage value="/pics/error.gif" />
+ </f:facet>
+ </rich:messages>
+
<rich:listShuttle id="listShuttleID" var="item"
sourceValue="#{listShuttle.sourceValue}"
targetValue="#{listShuttle.targetValue}"
bottomControlLabel="#{listShuttle.bottomControlLabel}"
copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
copyControlLabel="#{listShuttle.copyControlLabel}"
downControlLabel="#{listShuttle.downControlLabel}"
@@ -15,8 +21,27 @@
showButtonLabels="#{listShuttle.showButtonLabels}"
switchByClick="#{listShuttle.switchByClick}"
targetListWidth="#{listShuttle.targetListWidth}"
sourceListWidth="#{listShuttle.sourceListWidth}"
listsHeight="#{listShuttle.listsHeight}"
sourceCaptionLabel="#{listShuttle.sourceCaptionLabel}"
- targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
- topControlLabel="#{listShuttle.topControlLabel}"
upControlLabel="#{listShuttle.upControlLabel}">
+ targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
+ topControlLabel="#{listShuttle.topControlLabel}"
upControlLabel="#{listShuttle.upControlLabel}" required="true"
+ controlsType="#{listShuttle.controlsType}"
rendered="#{listShuttle.rendered}"
+ onmousemove="showEvent('onmousemoveInputID', 'onmousemove
work!')"
+ onclick="showEvent('onclickInputID', 'onclick work!')"
+ ondblclick="showEvent('ondblclickInputID', 'ondblclick
work!')"
+ onmouseout="showEvent('onmouseoutInputID', 'onmouseout
work!')"
+ onmouseover="showEvent('onmouseoverInputID', 'onmouseover
work!')"
+ onorderchanged="showEvent('onorderchangedInputID', 'onorderchanged
work!')"
+ ontopclick="showEvent('ontopclickInputID', 'ontopclick
work!')"
+ onupclick="showEvent('onupclickInputID', 'onupclick
work!')"
+ ondownclick="showEvent('ondownclickInputID', 'ondownclick
work!')"
+ onbottomclick="showEvent('onbottomclickInputID', 'onbottomclick
work!')"
+ onlistchanged="showEvent('onlistchangedInputID', 'onlistchanged
work!')"
+ oncopyallclick="showEvent('oncopyallclickInputID', 'oncopyallclick
work!')"
+ oncopyclick="showEvent('oncopyclickInputID', 'oncopyclick
work!')"
+ onremoveallclick="showEvent('onremoveallclickInputID',
'onremoveallclick work!')"
+ onremoveclick="showEvent('onremoveclickInputID', 'onremoveclick
work!')"
+
+ moveControlsVerticalAlign="#{listShuttle.moveControlsVerticalAlign}"
+ orderControlsVerticalAlign="#{listShuttle.orderControlsVerticalAlign}">
<h:column>
<f:facet name="header">
@@ -63,7 +88,7 @@
<f:selectItem itemLabel="select2" itemValue="select2" />
<f:selectItem itemLabel="select3" itemValue="select3" />
<f:selectItem itemLabel="select4" itemValue="select4" />
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
+ <a4j:support event="onchange"
reRender="listShuttleID"></a4j:support>
</h:selectOneMenu>
</h:column>
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
---
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-06-10
12:30:59 UTC (rev 8975)
+++
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-06-10
12:32:24 UTC (rev 8976)
@@ -23,6 +23,29 @@
<h:inputText value="#{listShuttle.first}">
<a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
</h:inputText>
+
+ <h:outputText value="controlsType" />
+ <h:selectOneRadio value="#{listShuttle.controlsType}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="button" itemValue="button" />
+ <a4j:support event="onchange"
reRender="listShuttleID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="moveControlsVerticalAlign" />
+ <h:selectOneRadio value="#{listShuttle.moveControlsVerticalAlign}">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onchange"
reRender="listShuttleID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="orderControlsVerticalAlign" />
+ <h:selectOneRadio value="#{listShuttle.orderControlsVerticalAlign}">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onchange"
reRender="listShuttleID"></a4j:support>
+ </h:selectOneRadio>
<h:outputText value="showButtonLabels" />
<h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}"
onchange="submit();" />
@@ -41,6 +64,9 @@
<h:outputText value="switchByClick" />
<h:selectBooleanCheckbox value="#{listShuttle.switchByClick}"
onchange="submit();" />
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{listShuttle.rendered}"
onchange="submit();" />
<h:outputText value="sourceCaptionLabel" />
<h:inputText value="#{listShuttle.sourceCaptionLabel}">