I am seeing some very strange behavior with the datascroller component after
adding the tomahawk-sandbox-1.1.6.jar to my classpath. Whenever I go to any
of my pages that has a datascroller on it, if I click on the next/previous
buttons or any of the numbered pages in my datascroller, I am immediately
taken back to my login page. I'm not sure why it goes back to that page, and
I don't see any errors in the logs, though I do see the following javascript
error:
document.forms.Mainform.elements['Mainform:scrollerForCompTable'] has no
properties
which makes me think it's related since scrollerForCompTable is the id of my
datascroller. As soon as I remove the tomahawk-sandbox-1.1.6.jar from my
build path, the problem goes away and the datascroller works perfectly.
Some additional information:
We're using the following in our project:
myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
tomahawk-1.1.6.jar
tomahawk-sandbox-1.1.6.jar (I also tried 1.1.7 snapshot but saw the same
behavior)
This problem occurs both with tomcat 5.5 and websphere 6.1.
Here's the jsp snippet for the datascroller:
<h:panelGroup
style="background-color:#c2c1a3;width=100%;text-align:center;">
<t:dataScroller
id="scrollerForCompTable"
for="resultsCompTable"
fastStep="1"
pageCountVar="pageCount"
pageIndexVar="pageIndex"
styleClass="scroller"
paginator="true"
paginatorMaxPages="9"
paginatorTableClass="paginator"
paginatorActiveColumnStyle="font-weight:bold;">
<f:facet name="first" >
<t:graphicImage url="images/arrow-first.jpg" border="1"
rendered="#{pageIndex gt 1}"/>
</f:facet>
<f:facet name="last">
<t:graphicImage url="images/arrow-last.jpg" border="1"
rendered="#{pageIndex lt pageCount}"/>
</f:facet>
<f:facet name="previous">
<t:graphicImage url="images/arrow-previous.jpg" border="1"
rendered="#{pageIndex gt 1}"/>
</f:facet>
<f:facet name="next">
<t:graphicImage url="images/arrow-next.jpg" border="1"
rendered="#{pageIndex lt pageCount}"/>
</f:facet>
</t:dataScroller>
</h:panelGroup>
Any ideas?