cancel
Showing results for 
Search instead for 
Did you mean: 

Maintain scroll position

dhalupa
Champ on-the-rise
Champ on-the-rise
Hi,

I would like to enable feature that web user interface remains vertical scroll position after refresh of page. I have set parameter org.apache.myfaces.AUTO_SCROLL in web.xml to true but it seems to have no efect.

Is there some other way to enable this feature or do I have to implement this on my own?

thx,

Denis
5 REPLIES 5

kevinr
Star Contributor
Star Contributor
It's on our TODO list. Most of the components we use are not native MyFaces, they are custom components so will not support that property.

Thanks,

Kevin

chrisrobbo
Champ in-the-making
Champ in-the-making
Kevin

Has any action happened on this point ? It is particularly annoying for users to continually have to rescroll after every page refresh.

cheers
Chris

kevinr
Star Contributor
Star Contributor
No sorry, if you raise an issue for it in JIRA and it gets voted on enough then it may climb up the priority list - mostly our UI dev work has been concentrating on the Share client UI.

Kev

mbailen
Champ in-the-making
Champ in-the-making
FYI. I found a temporary solution to this.  It uses the mootools cookie stuff which is included in explorer, but works fairly well.  In titlebar.jsp, I added:

window.onunload = function() {var myCookie = Cookie.set("scroll", getScrollTop());}
function getScrollTop(){
    if(typeof pageYOffset != 'undefined'){return pageYOffset;}
    else {
        var B= document.body;var D= document.documentElement;
        D= (D.clientHeight)? 😧 B;
        return D.scrollTop;
    }
}
var scroll = Cookie.get("scroll");
if (scroll > 1){
  window.addEvent('load',function() {scrollTo(0, scroll);});
}

Thanks, Mark

kevinr
Star Contributor
Star Contributor
Thanks for that, we'll take a look at the solution.
Kev
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.