-
1. Re: problem getting current page from datascroller
nimoh Jun 3, 2011 11:00 AM (in response to nimoh)I have a workaround for this issue. I changed the datascroller to use the page attribute, and added the following method to do filtering:
In my name column, the filter facet is as follows (filterMethod defined in column definition):
<f:facet name="filter">
<h:inputText value="#{participationStatusHandler.currentNameFilterValue}"
id="nameFilterInput" style="width:90%" onkeyup="executeNameFilter(this.value);">
</h:inputText>
</f:facet>Function invoked by onkeyup event in filter facet:
<a4j:jsFunction id="executeNameFilter" name="executeNameFilter" requestDelay="700"
ignoreDupResponses="true" oncomplete="reRenderTable('nameFilterInput');">
<a4j:actionparam name="pageNumber" value="1" assignTo="#{participationStatusHandler.scrollerPage}"/>
</a4j:jsFunction>This seems to do the trick, but I don't believe it should be necessary, I would appreciate any insight into why binding to a UIDatascroller always has a value of 1 for page.