Datagrid scrolling is not working in RF4
bmon Nov 7, 2011 10:08 AMHi, we are moving to RF4 and I am having problem with datagrid scrolling:
Here is my page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:hx="http://www.ibm.com/jsf/html_extended"
xmlns:p="http://primefaces.prime.com.tr/ui">
<f:view>
<h:head>
<link rel="stylesheet" type="text/css" href="../theme/stylesheet.css"/>
<script type="text/JavaScript" src="script/curvycorners.js"></script>
<script language="JavaScript" type="text/javascript">
</script>
<style>
</style>
</h:head>
<h:body>
<h:form>
<rich:tabPanel id="tabpanel" switchType="client">
<rich:tab id="tab1" header="tab1">
tab1
</rich:tab>
<rich:tab id="tab2" header="tab2">
<rich:dataGrid value="#{news.news}" var="newsBean" id="newsGrid"
columns="1" elements="1" width="100%" border="0">
<rich:panel bodyClass="pbody">
<f:facet name="header">
<h:outputText value="News">
</h:outputText>
</f:facet>
<h:panelGrid columns="1" id="newsPanel">
<h:commandLink value="#{newsBean.linkNews}">
<rich:componentControl target="popup" operation="show" />
</h:commandLink>
#{newsBean.shortNews}
</h:panelGrid>
</rich:panel>
<f:facet name="footer">
<rich:dataScroller />
</f:facet>
</rich:dataGrid>
</rich:tab>
</rich:tabPanel>
</h:form>
</h:body>
</f:view>
</html>
When I click on a different page in the scroller I see javascript:void(0); in the left bottom corner of the screen and content of the 1st page is still displayed.
P.S. switchtype="ajax" doesn't work either.
Any suggestions what the problem could be?
Thank you.