please try a4j:commandLink instead of s:link.
Tried it. Still getting behavior where page is popped to top on rerender.
Unfortunatelly not reproducible under
reducing the window size, scrolling and clicking the link - causes only the outputText to be rerendered.
You could send me your sample directly in war.
all depend on what we rerender... if we are in a DIV that have scrolling, and we rerender the content of the div, the scrolling will stay... like it does in the demo because the scrolling is on HTML block...
if you rerender the parent of the div, the scrolling is lost...
i haven't made exact test about that but it's what i think it does, i haven't any issue about that in my application and using several DIVs... sometime i would prefer that the div return to top after pressing a link : for exemple a link on my paginator component, when going on next page, it's better returning on top... (i'll work on it later...)