Author: adubovsky
Date: 2008-09-02 11:15:18 -0400 (Tue, 02 Sep 2008)
New Revision: 10273
Modified:
trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
Log:
Correct JS API for List Shuttle
Modified:
trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2008-09-02
13:18:00 UTC (rev 10272)
+++
trunk/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2008-09-02
15:15:18 UTC (rev 10273)
@@ -6,6 +6,67 @@
xmlns:rich="http://richfaces.org/rich"
id="listShuttlePropertySubviewID">
<h:commandButton action="#{listShuttle.add}" value="add test"
/>
+
+ <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,62 +178,10 @@
<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>
+ <!-- <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
<h:panelGrid columns="2">
<rich:column>
<a4j:commandLink value="getActiveItem"
reRender="findID"></a4j:commandLink>
@@ -181,5 +190,5 @@
<h:outputText
value="#{rich:findComponent('listShuttleID').activeItem}" />
</rich:column>
- </h:panelGrid>
+ </h:panelGrid>-->
</f:subview>
\ No newline at end of file