-
1. Re: proposed solution for remembering scroll position
Jason Young Apr 5, 2007 5:34 PM (in response to Jason Young)bump
Is this a topic for the developer forum? -
2. Re: proposed solution for remembering scroll position
Sergey Smirnov Apr 5, 2007 6:55 PM (in response to Jason Young)post this issue to jira as a request for new feature. Refer to this post.
-
3. Re: proposed solution for remembering scroll position
Jason Young Apr 6, 2007 10:57 AM (in response to Jason Young)Thanks for the response, Sergey. I will open a request. Do you think this is something that could be slipped into the next point release?
-
5. Re: proposed solution for remembering scroll position
Sergey Smirnov Apr 6, 2007 1:51 PM (in response to Jason Young)not sure about the next release. First, because we have other tasks with higher priority. Second, the similar attempt to scroll the page in the MyFaces had many side effects. So, we have to investigate the possible side effects before add such feature in production release.
-
6. Re: proposed solution for remembering scroll position
Jason Young Apr 10, 2007 12:11 PM (in response to Jason Young)Wanted to post an update on this issue. I have found a workaround for the scroll issue. Also, the proposed solution I added above does not always work for IE. Sometimes, the node is not ready to have the scroll position set (scrollHeight is still zero), resulting in a script error.
The solution I found is to have a hierarchy of a4j:outputPanel. In my case I need 3 levels. This seems to at least work in IE6, IE7, and FF2. Not sure about other browsers.<a4j:outputPanel id="panel0" layout="block" style="clear:both; height: 400px; overflow: auto; width:100%;"> <a4j:outputPanel id="panel1" layout="block"> <a4j:outputPanel id="panel2" layout="block"> ... content here ... </a4j:outputPanel> </a4j:outputPanel> </a4j:outputPanel> <a4j:poll id="poller" interval="5000" eventsQueue="pollerQueue" bypassUpdates="true" ajaxSingle="true" action="#{myBean.checkForNewData}" reRender="panel2"/>