Hi all,

 

I still have one problem with the Datascroller and Ajax (A4J). I think
that the problem is not caused by A4J so I ask it here.

 

My page contains an a4j:outputPanel with datatable and datascrollers.
This a4j:ouputpanel can be refreshed via ajax links which is working
fine so far. When the user enters the page then there is no datatable.
After executing a search command the outputpanel is refreshed via ajax
and the datatable and the scrollers are displayed correctly.

 

Problem now is that the links of the datascroller don't work correyctly
until the page is left. The corresponding action listeners are called,
but the datatable does still display the old data page.

The encode methods of the HtmlDatascrollerRenderer are not called. When
the user now leaves this page and comes back to it (without ajax) then
he is on the right data page and from now on the datascroller works as
expected!!!

 

So this problem only occurs when the datascroller is rendered the first
time via an AJAX request and the page is not completely refreshed.

I assume that the problem is caused by the link generation in the
HtmlDataScrollerRenderer during the first ajax request.

 

(The same effect happened when I manipulate the number of pages in the
underlying datamodel by setting/removing a display filter via AJAX.

I solved this by creating always the paginatorMaxPages number of pages
in my extended HtmlDataScrollerRenderer, but I render only the existing
pages.)

 

Has anybody now an idea how to solve the above issue with the first
request?

Do I have to create dummy links even if the datascroller is not rendered
to be able to use it via AJAX in subsequent requests?

 

Any help is highly appreciated

Michael

 

Reply via email to