<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<f:subview id="listShuttleSubviewID">
		<rich:listShuttle id="listShuttleID" var="item" sourceValue="#{listShuttle.sourceValue}" targetValue="#{listShuttle.targetValue}"
			bottomControlLabel="#{listShuttle.bottomControlLabel}" copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
			copyControlLabel="#{listShuttle.copyControlLabel}" downControlLabel="#{listShuttle.downControlLabel}"
			fastMoveControlsVisible="#{listShuttle.fastMoveControlsVisible}" converter="listShuttleConverter"
			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}">

			<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.str0}" />
			</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="Input" />
				</f:facet>
				<h:inputText value="#{item.str1}" />
			</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="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:listShuttle>
</f:subview>