1 Reply Latest reply on Aug 10, 2011 4:26 AM by u j

    datascroller page not reset if datascroller not rendered

    u j Novice

      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 on datascroller page 2

      - do some action which produces a new model with only 1 page

      - rendered of datascroller is dynamic so it yields false if only one page (workaround because renderIfSinglePage does not work :-)

      -> grid is empty, page is not reset to 1


      Binding the page attribute to a bean property and setting it to 1 doesn't help either.