Author: tkuprevich
Date: 2008-04-10 09:03:14 -0400 (Thu, 10 Apr 2008)
New Revision: 7734
Modified:
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
Log:
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-04-10
13:02:46 UTC (rev 7733)
+++
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-04-10
13:03:14 UTC (rev 7734)
@@ -9,17 +9,35 @@
<h:messages />
</a4j:outputPanel>
- <rich:orderingList id="orderingListID"
value="#{orderingList.list}" var="item"
listHeight="#{orderingList.listHeight}"
- listWidth="#{orderingList.listWidth}"
controlsType="#{orderingList.controlsType}"
converter="orderingListConverter"
- bottomControlLabel="#{orderingList.bottomControlLabel}"
captionLabel="#{orderingList.captionLabel}"
- topControlLabel="#{orderingList.topControlLabel}"
upControlLabel="#{orderingList.upControlLabel}"
- controlsHorizontalAlign="#{orderingList.controlsHorizontalAlign}"
controlsVerticalAlign="#{orderingList.controlsVerticalAlign}"
- downControlLabel="#{orderingList.downControlLabel}"
- orderControlsVisible="#{orderingList.orderControlsVisible}"
fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
- rendered="#{orderingList.rendered}"
showButtonLabels="#{orderingList.showButtonLabels}"
selection="#{orderingList.selection}"
- 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!')"
onheaderclick="showEvent('onheaderclickInputID', 'onheaderclick
work!')">
+ <rich:orderingList id="orderingListID" immediate="false"
+ binding="#{orderingList.myOrderingList}"
value="#{orderingList.list}"
+ var="item" listHeight="#{orderingList.listHeight}"
+ listWidth="#{orderingList.listWidth}"
+ controlsType="#{orderingList.controlsType}"
+ converter="orderingListConverter"
+ bottomControlLabel="#{orderingList.bottomControlLabel}"
+ captionLabel="#{orderingList.captionLabel}"
+ topControlLabel="#{orderingList.topControlLabel}"
+ upControlLabel="#{orderingList.upControlLabel}"
+ controlsHorizontalAlign="#{orderingList.controlsHorizontalAlign}"
+ controlsVerticalAlign="#{orderingList.controlsVerticalAlign}"
+ downControlLabel="#{orderingList.downControlLabel}"
+ orderControlsVisible="#{orderingList.orderControlsVisible}"
+ fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
+ rendered="#{orderingList.rendered}"
+ showButtonLabels="#{orderingList.showButtonLabels}"
+ selection="#{orderingList.selection}"
+ 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!')"
+ onheaderclick="showEvent('onheaderclickInputID', 'onheaderclick
work!')">
<f:facet name="header">
<h:outputText value="header" />
</f:facet>
@@ -45,7 +63,8 @@
<f:facet name="header">
<h:outputText value="Button" />
</f:facet>
- <h:commandButton onclick="submit();"
action="#{orderingList.cbAction}" value="#{item.str0} submit();"
/>
+ <h:commandButton onclick="submit();"
+ action="#{orderingList.cbAction}" value="#{item.str0} submit();"
/>
</h:column>
<h:column>
@@ -59,14 +78,15 @@
<f:facet name="header">
<h:outputText value="Link" />
</f:facet>
- <a4j:commandLink action="#{orderingList.clAction}"
value="#{item.str1} submit()"
reRender="orderingListID"></a4j:commandLink>
+ <a4j:commandLink action="#{orderingList.clAction}"
+ value="#{item.str1} submit()"
reRender="orderingListID"></a4j:commandLink>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="select" />
</f:facet>
- <h:selectOneMenu value="#{item.str2}" >
+ <h:selectOneMenu value="#{item.str2}">
<f:selectItem itemLabel="select0" itemValue="select0" />
<f:selectItem itemLabel="select1" itemValue="select1" />
<f:selectItem itemLabel="select2" itemValue="select2" />
@@ -90,21 +110,52 @@
<h:graphicImage value="#{item.str3}" />
</h:column>
</rich:orderingList>
+
+ <h:panelGrid columns="2">
+ <a4j:commandButton reRender="outBindingCheck"
actionListener="#{orderingList.bindingCheck}"
+ value="binding Check" />
+ <h:outputText id="outBindingCheck"
value="#{orderingList.bindingCheck}" />
+ </h:panelGrid>
+
<h:panelGrid columns="3">
<h:column></h:column>
<h:outputText value="JavaScript API"></h:outputText>
<h:column></h:column>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide()"
value="Hide"></a4j:commandLink>
- <a4j:commandLink
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()"
value="Enable"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.Disable()"
value="Disable"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()"
value="isEnabled"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp"
value="moveUp"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown"
value="moveDown"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop"
value="moveTop"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom"
value="moveBottom"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.getSelection"
value="getSelection"></a4j:commandLink>
- <a4j:commandLink
onclick="$('formID:orderingListSubviewID:orderingListID').component.getItems"
value="getItems"></a4j:commandLink>
- </h:panelGrid>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide()"
+ value="Hide"></a4j:commandLink>
+ <a4j:commandLink
+ 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()"
+ value="Enable"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.Disable()"
+ value="Disable"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()"
+ value="isEnabled"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp"
+ value="moveUp"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown"
+ value="moveDown"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop"
+ value="moveTop"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom"
+ value="moveBottom"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.getSelection"
+ value="getSelection"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:orderingListSubviewID:orderingListID').component.getItems"
+ value="getItems"></a4j:commandLink>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file