aspose file tools*
The moose likes JSF and the fly likes Help with rich:datascroller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Help with rich:datascroller" Watch "Help with rich:datascroller" New topic
Author

Help with rich:datascroller

bash bashtoko
Greenhorn

Joined: Jan 20, 2011
Posts: 14

Hello All,


I need help with the DataScroller of the DataTable

I have the following

<rich:dataTable value="#{userTableBean.dataList}" var="dataItem"
rowClasses="row1, row2" id="taskList" rows="2"
columnClasses="50,100,100,100"
width="350">

<f:facet name="header">
<rich:columnGroup>

<rich:column colspan="4">
<hutputText value="Trouble Tickets opened" />
</rich:column>

<rich:column breakBefore="true">
<hutputText value="Ticket Id" />
</rich:column>


</rich:columnGroup>
</f:facet>


<rich:column>
<hutputText value="#{dataItem.userName}" />
</rich:column>

<rich:column>
<hutputText value="#{dataItem.lastName}" />
</rich:column>

</rich:dataTable>


<rich:datascroller align="left" for="taskList" immediate="true" maxPages="20" />


Now as you see the datascroller ...

The issue is that .. when there is pagination .. i.e: there is scrolling when data doesnt fit.. when I click on the second index or third ...

it doesnt bring its results until the WHole page is refreshed ...

can any 1 help me with this ???

THANKS a lot
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665
    
  15

If you use the "Code" button on the editor, you can make this kind of stuff more readable.

By default, RichFaces isn't going to do partial page refreshes. If you want the table display to update without updating the entire page, you need to indicate that it's part of the page that gets re-rendered by supplying the reRender attribute on the control that submits the postback request.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with rich:datascroller
 
Similar Threads
two rich:datascroller in one page, one works, the other doesn't
richfaces:: richdatatable problem.
Header, Footer with dynamic data
rich:dataTable sorting issue (AJAX) + rich:datascroller does not go passed page 2
h:selectManyCheckbox reRender rich:dataTable