Author: adubovsky
Date: 2008-09-02 11:15:59 -0400 (Tue, 02 Sep 2008)
New Revision: 10274
Modified:
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
Log:
Correct JS API for List Shuttle
Modified: trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-09-02
15:15:18 UTC (rev 10273)
+++
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-09-02
15:15:59 UTC (rev 10274)
@@ -5,7 +5,67 @@
<f:subview id="listShuttlePropertySubviewID">
<h:commandButton value="add test"
action="#{listShuttle.addHtmlListShuttle}"></h:commandButton>
-
+
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.hide()"
+ value="hide"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.show()"
+ value="show"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isShown())"
+ value="isShown"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.enable()"
+ value="enable"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.disable()"
+ value="disable"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isEnabled())"
+ value="isEnabled"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.up()"
+ value="up"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.down()"
+ value="down"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.top()"
+ value="top"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.bottom()"
+ value="bottom"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy()"
+ value="copy"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove()"
+ value="remove"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll()"
+ value="copyAll"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll()"
+ value="removeAll"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.targetList.getSelection())"
+ value="targetList.getSelection"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.sourceList.getSelection())"
+ value="sourceList.getSelection"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.targetList.getItems())"
+ value="targetList.getItems"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.sourceList.getItems())"
+ value="sourceList.getItems"></a4j:commandLink>
+ </h:panelGrid>
+
<h:panelGrid columns="2">
<h:column></h:column>
<h:panelGroup>
@@ -117,59 +177,7 @@
<a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
</h:inputText>
</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:listShuttleSubviewID:listShuttleID').component.doHide()"
- value="Hide"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doShow()"
- value="Show"></a4j:commandLink>
- <a4j:commandLink
- onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isShown()"
- value="isShown"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Enable()"
- value="Enable"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Disable()"
- value="Disable"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.isEnabled()"
- value="isEnabled"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveUp()"
- value="moveUp"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveDown()"
- value="moveDown"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveTop()"
- value="moveTop"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveBottom()"
- value="moveBottom"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy()"
- value="copy"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove()"
- value="remove"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll()"
- value="copyAll"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll()"
- value="removeAll"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getSelection()"
- value="getSelection"></a4j:commandLink>
- <a4j:commandLink
- onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getItems()"
- value="getItems"></a4j:commandLink>
- </h:panelGrid>
+
<br />
<br />
<div style="FONT-WEIGHT: bold;">rich:findComponent</div>