Author: adubovsky
Date: 2008-06-10 08:37:10 -0400 (Tue, 10 Jun 2008)
New Revision: 8978
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
Log:
Add events and parameters
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
---
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-10
12:34:55 UTC (rev 8977)
+++
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-10
12:37:10 UTC (rev 8978)
@@ -36,8 +36,8 @@
ontopclick="showEvent('ontopclickInputID', 'ontopclick
work!')"
onupclick="showEvent('onupclickInputID', 'onupclick work!')"
ondownclick="showEvent('ondownclickInputID', 'ondownclick
work!')"
- onbottomclick="alert('onbottomclick')"
- onheaderclick="alert('onheaderclick')"
+ onbottomclick="showEvent('onbottomclickInputID', 'onbottomclick
work!')"
+ onheaderclick="showEvent('onheaderclickInputID', 'onheaderclick
work!')"
activeItem="#{orderingList.activeItem}"
rowClasses="rowA, rowB"
valueChangeListener="#{orderingList.valueChangeListener}">
<f:facet name="header">
@@ -94,7 +94,7 @@
<f:selectItem itemLabel="select2" itemValue="select2" />
<f:selectItem itemLabel="select3" itemValue="select3" />
<f:selectItem itemLabel="select4" itemValue="select4" />
- <a4j:support event="onclick"
reRender="orderingListID"></a4j:support>
+ <a4j:support event="onchange"
reRender="orderingListID"></a4j:support>
</h:selectOneMenu>
</h:column>
@@ -111,6 +111,7 @@
</f:facet>
<h:graphicImage value="#{item.str3}" />
</h:column>
+
</rich:orderingList>
<h:panelGrid columns="2">
@@ -124,22 +125,22 @@
<h:outputText value="JavaScript API"></h:outputText>
<h:column></h:column>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide"
value="Hide"></a4j:commandLink>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.doShow()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doShow"
value="Show"></a4j:commandLink>
<a4j:commandLink
onclick="alert($('formID:orderingListSubviewID:orderingListID').component.isShown)"
value="isShown"></a4j:commandLink>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.Enable()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doEnable"
value="Enable"></a4j:commandLink>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.Disable()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doDisable"
value="Disable"></a4j:commandLink>
<a4j:commandLink
- onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()"
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled"
value="isEnabled"></a4j:commandLink>
<a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp"