<%@ 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="DataScrollerSubviewID">
	<h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
		var="dT" cellpadding="5px" rows="5" border="1">
		<f:facet name="header">
			<rich:datascroller inactiveStyle="#{style.inactiveStyle}" inactiveStyleClass="#{style.inactiveStyleClass}" selectedStyle="#{style.selectedStyle}" selectedStyleClass="#{style.selectedStyleClass}" style="#{style.style}" styleClass="#{style.styleClass}" tableStyle="#{style.tableStyle}" tableStyleClass="#{style.tableStyleClass}" 
				fastControls="#{dataScroller.fastControls}" action="#{dataScroller.act}" actionListener="#{dataScroller.actListener}"
				align="#{dataScroller.align}" rendered="#{dataScroller.render}"
				limitToList="#{dataScroller.limitToList}"
				renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
				maxPages="#{dataScroller.maxPages}"
				scrollerListener="#{dataScroller.ScrollerListener}"
				onclick="#{event.onclick}" oncomplete="#{event.oncomplete}"
				ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}"
				onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
				onmousedown="#{event.onmousedown}"
				onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
				onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}"/>
		</f:facet>
		<h:column>
			<h:outputText value="#{dT.data0}" />
		</h:column>
		<h:column>
			<h:outputText value="#{dT.data1} " /> <h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
		</h:column>
	</h:dataTable>
	<h:panelGrid id="dataScrollerActionID" columns="1">
		<a4j:commandButton value="Show action" reRender="dataScrollerActionID" style=" width : 95px;"></a4j:commandButton>
		<h:outputText value="#{dataScroller.action}" />
		<h:outputText value="#{dataScroller.actionListener}" />
	</h:panelGrid>
</f:subview>
