<%@ 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="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}">

			<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:column>
				<f:facet name="header">
					<h:outputText value="Link"></h:outputText>
				</f:facet>
				<h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
			</rich:column>
		</rich:listShuttle>
</f:subview>