]
Jay Balunas updated RF-11254:
-----------------------------
Fix Version/s: 4.1.0.Tracking
Forum Reference:
)
This should not be to hard to resolve once reproduced. I'm guessing it just needs to
process certain aspects, even if not currently rendered.
Thanks for the jira!
datascroller page not reset if datascroller not rendered, so data
grid is empty
--------------------------------------------------------------------------------
Key: RF-11254
URL:
https://issues.jboss.org/browse/RF-11254
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-tables
Affects Versions: 4.0.0.Final
Reporter: u j
Fix For: 4.1.0.Tracking
RichFaces 4 resets correctly the current page to 1, if the model of the associated
datagrid is reassigned,
but this happens only if the rendered attribute of the datascroller is true.
That is:
- grid with > 1 page
- set page 2 with datascroller
- do some action which produces a new model with only 1 page
- rendered attribute of datascroller is dynamic so it yields false if only one page
(workaround because renderIfSinglePage does not work :-)
-> data grid is empty instead of showing the content, because page is not reset to 1
Binding the page attribute to a bean property and setting it to 1 doesn't help
either.
Code:
<rich:dataScroller rendered="#{fn:length(bean.result) > 6}" />
--
This message is automatically generated by JIRA.
For more information on JIRA, see: