Author: adubovsky
Date: 2008-10-21 11:22:10 -0400 (Tue, 21 Oct 2008)
New Revision: 10854
Modified:
trunk/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java
trunk/test-applications/jsp/src/main/java/util/data/Data.java
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp
Log:
Corrections in ListShuttle
Modified: trunk/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java 2008-10-21
14:58:50 UTC (rev 10853)
+++ trunk/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java 2008-10-21
15:22:10 UTC (rev 10854)
@@ -76,9 +76,9 @@
this.upControlLabel = "up";
this.info = new ArrayList<String>();
this.switchByClick = false;
- this.targetListWidth = "300";
- this.sourceListWidth = "300";
- this.listsHeight = "400";
+ this.targetListWidth = "450";
+ this.sourceListWidth = "450";
+ this.listsHeight = "300";
this.sourceCaptionLabel = "sourceCaptionLabel";
this.targetCaptionLabel = "targetCaptionLabel";
this.targetValue = new ArrayList<Data>();
@@ -217,7 +217,7 @@
sourceValue.remove(i);
else
for(int i = sourceValue.size() + 1; i <= lenght; i++)
- sourceValue.add(new Data(i, "Button " + i, "Link " + i,
"select" +(i % 5), statusIcon[i % 5]));
+ sourceValue.add(new Data(i, "Button " + i, "Link " + i,
"Select" +(i % 5), statusIcon[i % 5], "Input " + i));
}
public int getLenght() {
Modified: trunk/test-applications/jsp/src/main/java/util/data/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/data/Data.java 2008-10-21 14:58:50 UTC
(rev 10853)
+++ trunk/test-applications/jsp/src/main/java/util/data/Data.java 2008-10-21 15:22:10 UTC
(rev 10854)
@@ -22,6 +22,7 @@
private String str1;
private String str2;
private String str3;
+ private String str4;
private int int0;
private int int1;
private int int2;
@@ -140,6 +141,16 @@
this.str2 = str2;
this.str3 = str3;
}
+
+ public Data(int int0, String str0, String str1, String str2, String str3, String str4){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.str4 = str4;
+ }
+
//for scrollableDataTable component
public Data(int int0, String str0, String str1, String str2, String str3, Date date0){
this.int0 = int0;
@@ -297,4 +308,12 @@
return str0 + ":" + str1 + ":" + str2 + ":" + str3 +
":" + int0 + ":" + int1 + ":" + int2 + ":" + int3
+ ":" + bool0 + ":" + bool1 + ":" + bool2 + ":" +
bool3;
}
+
+ public String getStr4() {
+ return str4;
+ }
+
+ public void setStr4(String str4) {
+ this.str4 = str4;
+ }
}
Modified: trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2008-10-21
14:58:50 UTC (rev 10853)
+++ trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2008-10-21
15:22:10 UTC (rev 10854)
@@ -4,90 +4,149 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="listShuttleSubviewID">
- <rich:listShuttle id="listShuttleID" var="item"
binding="#{listShuttle.htmlListShuttle}"
- sourceValue="#{listShuttle.sourceValue}"
targetValue="#{listShuttle.targetValue}"
- bottomControlLabel="#{listShuttle.bottomControlLabel}"
copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
- copyControlLabel="#{listShuttle.copyControlLabel}"
downControlLabel="#{listShuttle.downControlLabel}"
- fastMoveControlsVisible="#{listShuttle.fastMoveControlsVisible}"
converter="dataConverter"
- fastOrderControlsVisible="#{listShuttle.fastOrderControlsVisible}"
first="#{listShuttle.first}"
- moveControlsVisible="#{listShuttle.moveControlsVisible}"
orderControlsVisible="#{listShuttle.orderControlsVisible}"
- removeAllControlLabel="#{listShuttle.removeAllControlLabel}"
removeControlLabel="#{listShuttle.removeControlLabel}"
- sourceSelection="#{listShuttle.sourceSelection}"
targetSelection="#{listShuttle.targetSelection}"
- showButtonLabels="#{listShuttle.showButtonLabels}"
switchByClick="#{listShuttle.switchByClick}"
- targetListWidth="#{listShuttle.targetListWidth}"
sourceListWidth="#{listShuttle.sourceListWidth}"
- listsHeight="#{listShuttle.listsHeight}"
sourceCaptionLabel="#{listShuttle.sourceCaptionLabel}"
- targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
- topControlLabel="#{listShuttle.topControlLabel}"
upControlLabel="#{listShuttle.upControlLabel}"
- onmousemove="#{event.onmousemove}" onclick="#{event.onclick}"
ondblclick="#{event.ondblclick}" onmouseout="#{event.onmouseout}"
onmouseover="#{event.onmouseover}"
onorderchanged="#{event.onorderchanged}"
ontopclick="#{event.ontopclick}" onupclick="#{event.onupclick}"
ondownclick="#{event.ondownclick}"
onbottomclick="#{event.onbottomclick}">
+ <rich:listShuttle id="listShuttleID" var="item"
+ binding="#{listShuttle.htmlListShuttle}"
+ sourceValue="#{listShuttle.sourceValue}"
+ targetValue="#{listShuttle.targetValue}"
+ bottomControlLabel="#{listShuttle.bottomControlLabel}"
+ copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
+ copyControlLabel="#{listShuttle.copyControlLabel}"
+ downControlLabel="#{listShuttle.downControlLabel}"
+ fastMoveControlsVisible="#{listShuttle.fastMoveControlsVisible}"
+ converter="dataConverter"
+ fastOrderControlsVisible="#{listShuttle.fastOrderControlsVisible}"
+ first="#{listShuttle.first}"
+ moveControlsVisible="#{listShuttle.moveControlsVisible}"
+ orderControlsVisible="#{listShuttle.orderControlsVisible}"
+ removeAllControlLabel="#{listShuttle.removeAllControlLabel}"
+ removeControlLabel="#{listShuttle.removeControlLabel}"
+ sourceSelection="#{listShuttle.sourceSelection}"
+ targetSelection="#{listShuttle.targetSelection}"
+ showButtonLabels="#{listShuttle.showButtonLabels}"
+ switchByClick="#{listShuttle.switchByClick}"
+ targetListWidth="#{listShuttle.targetListWidth}"
+ sourceListWidth="#{listShuttle.sourceListWidth}"
+ listsHeight="#{listShuttle.listsHeight}"
+ sourceCaptionLabel="#{listShuttle.sourceCaptionLabel}"
+ targetCaptionLabel="#{listShuttle.targetCaptionLabel}"
+ topControlLabel="#{listShuttle.topControlLabel}"
+ upControlLabel="#{listShuttle.upControlLabel}"
+ onmousemove="#{event.onmousemove}" onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}" onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onorderchanged="#{event.onorderchanged}"
+ ontopclick="#{event.ontopclick}" onupclick="#{event.onupclick}"
+ ondownclick="#{event.ondownclick}"
+ onbottomclick="#{event.onbottomclick}">
+ <%--
+ <f:facet name="topControl">
+ <h:outputText value="top" />
+ </f:facet>
+ <f:facet name="bottomControl">
+ <h:outputText value="bottom" />
+ </f:facet>
+ <f:facet name="upControl">
+ <h:outputText value="up" />
+ </f:facet>
+ <f:facet name="downControl">
+ <h:outputText value="down" />
+ </f:facet>
+ <f:facet name="topControlDisabled">
+ <h:outputText value="top disabled" />
+ </f:facet>
+ <f:facet name="bottomControlDisabled">
+ <h:outputText value="bottom disabled" />
+ </f:facet>
+ <f:facet name="upControlDisabled">
+ <h:outputText value="up disabled" />
+ </f:facet>
+ <f:facet name="downControlDisabled">
+ <h:outputText value="down disabled" />
+ </f:facet>
+
+
+ <f:facet name="copyControl">
+ <h:outputText value="copy" />
+ </f:facet>
+ <f:facet name="removeControl">
+ <h:outputText value="remove" />
+ </f:facet>
+ <f:facet name="copyAllControl">
+ <h:outputText value="copy all" />
+ </f:facet>
+ <f:facet name="removeAllControl">
+ <h:outputText value="remove all" />
+ </f:facet>
+ <f:facet name="copyControlDisabled">
+ <h:outputText value="copy disabled" />
+ </f:facet>
+ <f:facet name="removeControlDisabled">
+ <h:outputText value="remove disabled" />
+ </f:facet>
+ <f:facet name="copyAllControlDisabled">
+ <h:outputText value="copy all disabled" />
+ </f:facet>
+ <f:facet name="removeAllControlDisabled">
+ <h:outputText value="remove all disabled" />
+ </f:facet>
+ --%>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Output" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="Number" />
- </f:facet>
- <h:outputText value="#{item.int0}" />
- </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str4}" />
+ </h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="Input" />
- </f:facet>
- <h:inputText value="#{item.str0}" />
- </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton value="#{item.str0} sbmt();" />
+ </h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="Button" />
- </f:facet>
- <h:commandButton onclick="submit();"
action="#{listShuttle.cbAction}" value="#{item.str0} submit();"/>
- </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="a4jLink" />
+ </f:facet>
+ <a4j:commandLink action="#{listShuttle.clAction}"
+ value="#{item.str1} a4j"
reRender="listShuttleID"></a4j:commandLink>
+ </h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="Input" />
- </f:facet>
- <h:inputText value="#{item.str1}" />
- </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="Link" />
- </f:facet>
- <a4j:commandLink action="#{listShuttle.clAction}"
value="#{item.str1} submit()"
reRender="listShuttleID"></a4j:commandLink>
- </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="GraphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="select" />
- </f:facet>
- <h:selectOneMenu value="#{item.str2}">
- <f:selectItem itemLabel="select0" itemValue="select0" />
- <f:selectItem itemLabel="select1" itemValue="select1" />
- <f:selectItem itemLabel="select2" itemValue="select2" />
- <f:selectItem itemLabel="select3" itemValue="select3" />
- <f:selectItem itemLabel="select4" itemValue="select4" />
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:selectOneMenu>
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="Text" />
- </f:facet>
- <h:outputText value="#{item.str3}" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="graphicImage" />
- </f:facet>
- <h:graphicImage value="#{item.str3}" />
- </h:column>
-
- <rich:column>
- <f:facet name="header">
- <h:outputText value="Link"></h:outputText>
- </f:facet>
- <h:outputLink
value="http://www.jboss.com/"><f:verbatim>Link</f:v...
- </rich:column>
- </rich:listShuttle>
+ <rich:column>
+ <f:facet name="header">
+ <h:outputText value="OutputLink"></h:outputText>
+ </f:facet>
+ <h:outputLink
value="http://www.jboss.com/">
+ <f:verbatim>outputLink</f:verbatim>
+ </h:outputLink>
+ </rich:column>
+ </rich:listShuttle>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-10-21
14:58:50 UTC (rev 10853)
+++
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-10-21
15:22:10 UTC (rev 10854)
@@ -4,68 +4,79 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<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>
+ <h:commandButton value="add test"
+ action="#{listShuttle.addHtmlListShuttle}"></h:commandButton>
+
+ <br />
+ <br />
+ <h:outputText value="JavaScript API" style="font-weight: bold;"
/>
+ <h:panelGrid columns="4" border="1">
+ <h:panelGroup>
<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>
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.enable()"
+ value="enable"></a4j:commandLink>
+ <br />
<a4j:commandLink
- onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.sourceList.getItems())"
- value="sourceList.getItems"></a4j:commandLink>
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.disable()"
+ value="disable"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isEnabled())"
+ value="isEnabled"></a4j:commandLink>
+ </h:panelGroup>
+ <h:panelGroup>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.up()"
+ value="up"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.down()"
+ value="down"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.top()"
+ value="top"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.bottom()"
+ value="bottom"></a4j:commandLink>
+ </h:panelGroup>
+ <h:panelGroup>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy()"
+ value="copy"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove()"
+ value="remove"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll()"
+ value="copyAll"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll()"
+ value="removeAll"></a4j:commandLink>
+ </h:panelGroup>
+ <h:panelGroup>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.targetList.getSelection())"
+ value="targetList.getSelection"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.sourceList.getSelection())"
+ value="sourceList.getSelection"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.targetList.getItems())"
+ value="targetList.getItems"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.sourceList.getItems())"
+ value="sourceList.getItems"></a4j:commandLink>
+ </h:panelGroup>
</h:panelGrid>
-
+
<h:panelGrid columns="2">
<h:column></h:column>
<h:panelGroup>
@@ -84,9 +95,7 @@
</h:panelGroup>
<h:outputText value="first" />
- <h:inputText value="#{listShuttle.first}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.first}" onchange="submit()"
/>
<h:outputText value="showButtonLabels" />
<h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}"
@@ -113,73 +122,59 @@
onchange="submit();" />
<h:outputText value="sourceCaptionLabel" />
- <h:inputText value="#{listShuttle.sourceCaptionLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.sourceCaptionLabel}"
+ onchange="submit()" />
<h:outputText value="targetCaptionLabel" />
- <h:inputText value="#{listShuttle.targetCaptionLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.targetCaptionLabel}"
+ onchange="submit()" />
<h:outputText value="sourceListWidth" />
- <h:inputText value="#{listShuttle.sourceListWidth}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.sourceListWidth}"
+ onchange="submit()" />
<h:outputText value="targetListWidth" />
- <h:inputText value="#{listShuttle.targetListWidth}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.targetListWidth}"
+ onchange="submit()" />
<h:outputText value="listsHeight" />
- <h:inputText value="#{listShuttle.listsHeight}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.listsHeight}"
onchange="submit()" />
<h:outputText value="copyControlLabel" />
- <h:inputText value="#{listShuttle.copyControlLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.copyControlLabel}"
+ onchange="submit()" />
<h:outputText value="removeControlLabel" />
- <h:inputText value="#{listShuttle.removeControlLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.removeControlLabel}"
+ onchange="submit()" />
<h:outputText value="copyAllControlLabel" />
- <h:inputText value="#{listShuttle.copyAllControlLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.copyAllControlLabel}"
+ onchange="submit()" />
<h:outputText value="removeAllControlLabel" />
- <h:inputText value="#{listShuttle.removeAllControlLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.removeAllControlLabel}"
+ onchange="submit()" />
<h:outputText value="bottomControlLabel" />
- <h:inputText value="#{listShuttle.bottomControlLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.bottomControlLabel}"
+ onchange="submit()" />
<h:outputText value="downControlLabel" />
- <h:inputText value="#{listShuttle.downControlLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.downControlLabel}"
+ onchange="submit()" />
<h:outputText value="topControlLabel" />
- <h:inputText value="#{listShuttle.topControlLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.topControlLabel}"
+ onchange="submit()" />
<h:outputText value="upControlLabel" />
- <h:inputText value="#{listShuttle.upControlLabel}">
- <a4j:support event="onclick"
reRender="listShuttleID"></a4j:support>
- </h:inputText>
+ <h:inputText value="#{listShuttle.upControlLabel}"
onchange="submit()" />
</h:panelGrid>
-
+
<br />
<br />
+ <%--
<div style="FONT-WEIGHT: bold;">rich:findComponent</div>
<h:panelGrid columns="2">
<rich:column>
@@ -190,4 +185,5 @@
value="#{rich:findComponent('listShuttleID').activeItem}" />
</rich:column>
</h:panelGrid>
+ --%>
</f:subview>
\ No newline at end of file
Modified:
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp 2008-10-21
14:58:50 UTC (rev 10853)
+++
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp 2008-10-21
15:22:10 UTC (rev 10854)
@@ -5,27 +5,34 @@
<f:subview id="listShuttleStraightforwardSubviewID">
<h:panelGrid columns="3">
- <a4j:commandButton value="Show selection (reRender)"
reRender="infoLSID"></a4j:commandButton>
+ <a4j:commandButton value="Show selection (reRender)"
+ reRender="infoLSID"></a4j:commandButton>
<h:column>
- <h:selectBooleanCheckbox value="#{listShuttle.showSelect}"
onclick="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showSelect}"
+ onclick="submit();" />
</h:column>
<h:column>
- <h:dataTable id="infoLSID" value="#{listShuttle.info}"
var="info" rendered="#{listShuttle.showSelect}"
border="1">
+ <h:dataTable id="infoLSID" value="#{listShuttle.info}"
var="info"
+ rendered="#{listShuttle.showSelect}" border="1">
<h:column>
<h:outputText value="#{info}" />
</h:column>
</h:dataTable>
</h:column>
- <a4j:commandButton value="Show all source (reRender)"
reRender="allInfoLSSourceID"></a4j:commandButton>
+ <a4j:commandButton value="Show all source (reRender)"
+ reRender="allInfoLSSourceID"></a4j:commandButton>
<h:column>
- <h:selectBooleanCheckbox value="#{listShuttle.showAllSourceData}"
onclick="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllSourceData}"
+ onclick="submit();" />
</h:column>
<h:column>
- <h:dataTable id="allInfoLSSourceID"
value="#{listShuttle.sourceValue}" var="allInfo"
rendered="#{listShuttle.showAllSourceData}" border="1">
+ <h:dataTable id="allInfoLSSourceID"
+ value="#{listShuttle.sourceValue}" var="allInfo"
+ rendered="#{listShuttle.showAllSourceData}" border="1">
<h:column>
<f:facet name="header">
- <h:outputText value="Number" />
+ <h:outputText value="Output" />
</f:facet>
<h:outputText value="#{allInfo.int0}" />
</h:column>
@@ -34,7 +41,7 @@
<f:facet name="header">
<h:outputText value="Input" />
</f:facet>
- <h:outputText value="#{allInfo.str0}" />
+ <h:outputText value="#{allInfo.str4}" />
</h:column>
<h:column>
@@ -46,50 +53,40 @@
<h:column>
<f:facet name="header">
- <h:outputText value="Input" />
+ <h:outputText value="a4jLink" />
</f:facet>
- <h:outputText value="#{allInfo.str1}" />
+ <h:outputText value="#{allInfo.str1} a4j" />
</h:column>
<h:column>
<f:facet name="header">
- <h:outputText value="Link" />
+ <h:outputText value="Select" />
</f:facet>
- <h:outputText value="#{allInfo.str1} submit()" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="select" />
- </f:facet>
<h:outputText value="#{allInfo.str2}" />
</h:column>
<h:column>
<f:facet name="header">
- <h:outputText value="Text" />
+ <h:outputText value="GraphicImage" />
</f:facet>
<h:outputText value="#{allInfo.str3}" />
</h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="graphicImage" />
- </f:facet>
- <h:outputText value="#{allInfo.str3}" />
- </h:column>
</h:dataTable>
</h:column>
- <a4j:commandButton value="Show all target (reRender)"
reRender="allInfoLSTargetID"></a4j:commandButton>
+ <a4j:commandButton value="Show all target (reRender)"
+ reRender="allInfoLSTargetID"></a4j:commandButton>
<h:column>
- <h:selectBooleanCheckbox value="#{listShuttle.showAllTargetData}"
onclick="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllTargetData}"
+ onclick="submit();" />
</h:column>
<h:column>
- <h:dataTable id="allInfoLSTargetID"
value="#{listShuttle.targetValue}" var="allInfo"
rendered="#{listShuttle.showAllTargetData}" border="1">
+ <h:dataTable id="allInfoLSTargetID"
+ value="#{listShuttle.targetValue}" var="allInfo"
+ rendered="#{listShuttle.showAllTargetData}" border="1">
<h:column>
<f:facet name="header">
- <h:outputText value="Number" />
+ <h:outputText value="Output" />
</f:facet>
<h:outputText value="#{allInfo.int0}" />
</h:column>
@@ -98,7 +95,7 @@
<f:facet name="header">
<h:outputText value="Input" />
</f:facet>
- <h:outputText value="#{allInfo.str0}" />
+ <h:outputText value="#{allInfo.str4}" />
</h:column>
<h:column>
@@ -110,38 +107,31 @@
<h:column>
<f:facet name="header">
- <h:outputText value="Input" />
+ <h:outputText value="a4jLink" />
</f:facet>
- <h:outputText value="#{allInfo.str1}" />
+ <h:outputText value="#{allInfo.str1} a4j" />
</h:column>
<h:column>
<f:facet name="header">
- <h:outputText value="Link" />
+ <h:outputText value="Select" />
</f:facet>
- <h:outputText value="#{allInfo.str1} submit()" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="select" />
- </f:facet>
<h:outputText value="#{allInfo.str2}" />
</h:column>
<h:column>
<f:facet name="header">
- <h:outputText value="Text" />
+ <h:outputText value="GraphicImage" />
</f:facet>
<h:outputText value="#{allInfo.str3}" />
</h:column>
- <h:column>
+ <rich:column>
<f:facet name="header">
- <h:outputText value="graphicImage" />
+ <h:outputText value="OutputLink"></h:outputText>
</f:facet>
- <h:outputText value="#{allInfo.str3}" />
- </h:column>
+ <h:outputText
value="http://www.jboss.com/" />
+ </rich:column>
</h:dataTable>
</h:column>
</h:panelGrid>