<%@ 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="scrollableDataTableSubviewID">
		<rich:scrollableDataTable id="sdt" var="sdt" value="#{scrollableDT.data}" rows="#{scrollableDT.rows}" width="#{scrollableDT.width}" 
		hideWhenScrolling="#{scrollableDT.hideWhenScrolling}" reRender="inputID"  
		oncomplete="print('oncompleteInputID', 'oncomplete work!')" onselectionchange="print('onselectionchangeInputID', 'onselectionchange work!')">
			<rich:column width="100px">
				<f:facet name="header">
					<h:outputText value="Number" />
				</f:facet>
				<h:outputText value="#{sdt.data1}" />
			</rich:column>
			
			<rich:column width="100px">
				<f:facet name="header">
					<h:outputText value="Name" />
				</f:facet>
				<h:outputText value="#{sdt.data0}" />
			</rich:column>

			<rich:column width="100px" sortable="false">
				<f:facet name="header">
					<h:outputText value="Status" />
				</f:facet>
				<h:selectOneMenu value="#{sdt.data2}">
					<f:selectItem itemLabel="error" itemValue="error"/>
					<f:selectItem itemLabel="fatal" itemValue="fatal"/>
					<f:selectItem itemLabel="info" itemValue="info"/>
					<f:selectItem itemLabel="passed" itemValue="passed"/>
					<f:selectItem itemLabel="warn" itemValue="warn"/>
				</h:selectOneMenu>
			</rich:column>

			<rich:column width="30px" sortable="false">
				<f:facet name="header">
					<h:outputText value="Icon" />
				</f:facet>
				<h:graphicImage value="#{sdt.data3}" />
			</rich:column>
		</rich:scrollableDataTable>
</f:subview>
