[ http://issues.apache.org/jira/browse/MYFACES-259?page=comments#action_12317052 ]
Mathias Broekelmann commented on MYFACES-259: --------------------------------------------- that´s a tricky issue ... First of all it´s a datatable issue. The datatable.first attribute is used to determine at which element of the datamodel the rows start. The datascroller has no chance to manipulate the datatable.first between jsf invoke application and encode phase of the datatable in which the change of the rowcount happens. So we have to handle this in the datatable. I see two options for the datatable if the first value is greater than the rowcount: - leave first as it is which is implemented now - set first to 0 which may have side effects if your want to have a different behavior. That´s the reason why it is not implemented You could define your own datatable renderer which only implements encodeBegin() and checks if the first value is greater than the rowcount value and set first to a different value. If you have any suggestions how we could do it more generally please let me now. > datatable, datascroller problem with mbean in session scope > ----------------------------------------------------------- > > Key: MYFACES-259 > URL: http://issues.apache.org/jira/browse/MYFACES-259 > Project: MyFaces > Type: Bug > Versions: 1.0.9 beta > Reporter: Stephan > Assignee: Mathias Broekelmann > Attachments: DatatableTestBean.java, HitBean_snippet.java, dataScroller.jsp, > hitlist_snippet.jsf, output.txt > > I have a MBean in session scope, which holds the data for the datatable. > The scroller for the table works fine, when I use it once or the rowCount of > data never changes. But I get in trouble when I change the page of the > scroller and change the rowCount. > Example: > 1. datatable has 100 rows, scroller shows 10 rows > 2. I jump to page 5 > ... everything is fine > After this the data changes ... the datatable has now 5 rows > And now the problem comes out: The pageIndex of the scrollerComponent is > still on page 5 ... and ... there is no data. When I jump to page 1 manually > (by rewind-button) the data shows up on the first page. > I tried all the examples with this combination and got allways the same > situation. So, I think it could be a bug ... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
