Author: mvitenkov
Date: 2008-07-01 12:37:01 -0400 (Tue, 01 Jul 2008)
New Revision: 9333
Modified:
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-07-01
16:28:13 UTC (rev 9332)
+++
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-07-01
16:37:01 UTC (rev 9333)
@@ -8,7 +8,8 @@
<h:column></h:column>
<h:panelGroup>
<a4j:commandButton value="reRender"
reRender="listShuttleID"></a4j:commandButton>
- <a4j:commandButton immediate="true" reRender="listShuttleID"
value="immediate submit(); (a4j)"></a4j:commandButton>
+ <a4j:commandButton immediate="true" reRender="listShuttleID"
+ value="immediate submit(); (a4j)"></a4j:commandButton>
<h:commandButton value="submit();" />
<h:commandButton immediate="true" value="immediate submit();"
/>
</h:panelGroup>
@@ -16,7 +17,8 @@
<h:outputText value="Enter quantity of lines" />
<h:panelGroup>
<h:inputText value="#{listShuttle.lenght}" />
- <a4j:commandButton action="#{listShuttle.addNewItem}"
reRender="listShuttleID" value="ok" />
+ <a4j:commandButton action="#{listShuttle.addNewItem}"
+ reRender="listShuttleID" value="ok" />
</h:panelGroup>
<h:outputText value="first" />
@@ -25,22 +27,28 @@
</h:inputText>
<h:outputText value="showButtonLabels" />
- <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}"
onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}"
+ onchange="submit();" />
<h:outputText value="orderControlsVisible" />
- <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}"
onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}"
+ onchange="submit();" />
<h:outputText value="moveControlsVisible" />
- <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}"
onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}"
+ onchange="submit();" />
<h:outputText value="fastOrderControlsVisible" />
- <h:selectBooleanCheckbox value="#{listShuttle.fastOrderControlsVisible}"
onchange="submit();" />
+ <h:selectBooleanCheckbox
+ value="#{listShuttle.fastOrderControlsVisible}"
onchange="submit();" />
<h:outputText value="fastMoveControlsVisible" />
- <h:selectBooleanCheckbox value="#{listShuttle.fastMoveControlsVisible}"
onchange="submit();" />
+ <h:selectBooleanCheckbox
+ value="#{listShuttle.fastMoveControlsVisible}"
onchange="submit();" />
<h:outputText value="switchByClick" />
- <h:selectBooleanCheckbox value="#{listShuttle.switchByClick}"
onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.switchByClick}"
+ onchange="submit();" />
<h:outputText value="sourceCaptionLabel" />
<h:inputText value="#{listShuttle.sourceCaptionLabel}">
@@ -111,21 +119,65 @@
<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>
+ <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>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getActiveItem"
reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
+ value="#{rich:findComponent('listShuttleID').activeItem}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
Show replies by date