How to retain page Scroll position after post back

Hi,
I have some long jsf web pages that requires user to user vertical scroll to access some fields. Now the problem I face is that, there are some fields at the bottom of the page, on click of which i need to do a postback, call valueChangeListner in the backing bean and populate some values in subsequent fields. And when the page reloads after the call to valueChangeListner, the top portion of the page is displayed to the user which is a little annoying. I want to display the portion of the page that the user was accessing before.
Could you please help?
Thanks,
Srikanth.
Edited by: sriki79 on Mar 15, 2009 9:45 AM

Several ways:
1) Populate the fields entirely clientside.
2) Use Ajax to populate the fields.
3) Use Javascript during onload to scroll to the desired position/element.

Similar Messages

  • Camino : How to remember last scroll position on previous viewed page?

    I am switching from Safari to Camino. Sa far it was a good experience except one issue:
    When i scroll to half way of a page and click a link, i will be directed to the link within the same tab. After finished viewing the new link, i press the DELETE button to return to the previous page. Camino returns to previous page but not remembering the location, in this case which is the half way of the page. It just loads back the previous page and scrolls to the top again
    Is there any way to configure Camino to remember the last scroll location of the previous page?

    I'm not sure there's a way to do what you want, but if you select command click on a link "open in new window" in Camino prefs, you should have the original window and scroll position in place behind the new window.
    Hope this helps,
    Miriam

  • How can I prevent scroll position changes

    I have a master detail page.
    during insert data in detail form user must scroll down.
    after opening an lov page scroll will change automatically(go to top of the page) and user have to scroll down again for fill next fileds in form.
    how can i lock automatically scroll ? or how can i prevent these scroll position changes.
    tnx
    Edited by: user12052968 on Oct 18, 2009 12:36 AM
    Edited by: user12052968 on Oct 18, 2009 12:41 AM

    Hi,
    Do you have anything in KEY-LISTVAL trigger? If not, create a KEY-LISTVAL trigger (for the item), and do something like this.
    declare
    cur_rec number;
    begin
    cur_rec := TO_NUMBER(:SYSTEM.CURSOR_RECORD);
    SHOW_LOV('<YOUR_LOV>');
    go_record(cur_rec);
    end;The idea is, preserve the current record position before showing the lov and then go to that position after showing the lov.
    -Arun

  • Last page scroll position not remembered

    After getting search results in Google, I click on a subject, then when I click "back" it returns to the top of the previous page. It's like it doesn't remember where it was. One fix I found was to change cache-control in about:config. But I can't find it. Where is I located? Another fix is "Restore Scroll Position" does this work on ver 3.6.12 ?
    TIA

    It is usually easier to open the results in a new tab with a middle click on the link and close that tab with a middle click on that tab on the tab bar.
    For the Google website you can set your preferences on the Google.com page via the [http://www.google.com/preferences?hl=en Google Search settings] link at the top right.
    Results Window: Open search results in a new browser window.

  • How to get/set scrolling position in Frame?

    Hello!
    Help me please!
    I need to remember scrolling position of frame before it's reloading. And restore this position after reloading. How can I do it?
    I Use JDk 1.4.1
    Thanks beforehand!
    Denis.

    Have you tried the following:
    yourScrollPane.getVerticalScrollBar().getValue()
    yourScrollPane.getVerticalScrollBar().setValue(int)Sai Pullabhotla

  • How to make page scroll automatically on click, plz help ASAP

    Hi!
    I need to know how to make a page scroll up or down automatically when i click on an image.
    Too see example click here: http://www.morphix.si/
    I am very new to Dreamweaver and coding, so please be gentle. But I need help A.S.A.P if it's possible! =)
    Thanks!

    Hit F1 (help) and search for Named Anchors.
    The example page is one, very tall page with several named anchors on it.  When you click a button it takes you to the designated anchor on the page.
    <a href="#top">Link to Top</a>
    <a href="#bottom">Link to Bottom</a>
    The gliding effect is done with jQuery.
    http://www.position-absolute.com/articles/better-html-anchor-a-jquery-script-to-slide-the- scrollbar/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How to react to scroll position on TableView

    Hello:
    I'd like to know if it's possible to bind the scroll position on a TableView to the scroll position in other TableView, so both component scroll at the same time. There isn't a scrollProperty in TableView and the onScroll event doesn't seem to work.
    Any idea on how to handle this? Any alternative point of view?
    Thanks in advance.

    I'm not sure there's a way to do what you want, but if you select command click on a link "open in new window" in Camino prefs, you should have the original window and scroll position in place behind the new window.
    Hope this helps,
    Miriam

  • How to restore Pages 4 files after opening in Pages 5

    Here's a tip for those who have discovered the misery of Pages 5 and then wanted to go back to a Pages 4 compatible version of a file. If you simply go to Time Machine, you will find that the file no longer exists in back-ups previous to the date you first saved it in Pages 5. Evidently since Pages 5 files are not back-compatible with Pages 4, once a file has been converted to 5 format, the older versions in 4 no longer "exists". Don't panic, however, they are still there and can be found by manually (i.e. through the Finder) going to the back-up disk and digging around in a back-up folder from any date before you first saved in Pages 5. Once you've found the file, you can simply drag/drop to your current location on your computer, and then select "replace". Bingo! The file can be opened again with Pages 4.

    Don't know. Never having trusted the cloud, I keep all my files locally. Maybe there is a version somewhere on your computer's disk? If so, and if you are using Time Machine, you should be able to find it in a back-up folder.

  • How open new browser in JSF after executing backing bean method

    hi All,
    Can you please tell me how to open a new browser after executing action method in bean.
    I have writen one java script function, i am passing the string url which i got from the backing bean action method.
    First of all i want to execute action method then only javascript function.
    waiting for your quick reply.
    thanks & regards
    bhushanam.

    hi,
    That command link in data table. The requirement is like this:
    I have datatable, the columns are
    1) <h:selectBooleanCheckbox ....
    2) <h:commandLink ....
    requirement 1:
    if user select the boolean check box and click the command link
    then I want to execute the backing bean action method , it returns string url and show in new browser window( popup window with toolbar ).
    requirement 2:
    if user not select the boolean check box and click the command link then I want to excute the backing bean action method, it returns string url and show in the same browser ( through navigation rule we can show that page.)
    Please look the below command link code.......
    <h:commandLink id="belegnr" onmousedown="return showPopupWindowForInvoiceForGraphicImage( '#{row.importKz}', '#{row.blnChecked}', '#{InvoiceMecBoxBean.printInvoiceFilePath}');" styleClass="input" style="color:blue" value="#{row.belegnr}" action="#{InvoiceMecBoxBean.editLinkAction}"/>
    Can u please give me the idea istead of command link can we use outputlink to fullfil the requirement?. Or any suggestion please......
    Here in my case commandlink value is differenet and after action the return value is different to show in new window. that is problem here.
    thanks & regards
    bhushanam.

  • Since Firefox v34, after zooming text on a page Google Search took me to, the Google search page is blank after clicking 'Back' to it. Is this a v34 glitch?

    Since Firefox v34, the Google Search results page is blank after, 1) Clicking on a link in a Google Search results page and loading the linked page, 2) Zooming in on the text on the page Google took me to, and then without resetting text zoom, 3) Clicking the Firefox 'Back' arrow to return to the Google search results. If at that point I either reload the Google results page, or click back a page and then forward again, the full search results are then displayed again.
    This happens on my Windows 7 PC as well as my Vista Notebook. Is this a glitch with text zooming and Google in Firefox version 34?

    '''>>Type about:preferences#advanced<Enter> in the address bar.<'''
    Setting that made no difference. I ran 30-40 test searches on Google with that set and Firefox restarted in Safe Mode with all add-ons disabled. The problem persists on the vast majority of searches. However backing up to Google search results after following some links doesn't result in the problem.
    For instance when I do a Google search from www.google.com (USA) on [https://www.google.com/?gws_rd=ssl#q=%22Steve+Gibson%22+ "Steve Gibson"] and click the first result, which for me is his Wikipedia page: [http://en.wikipedia.org/wiki/Steve_Gibson_%28computer_programmer%29 "Steve Gibson (computer programmer) - Wikipedia"]. If I hit CTRL/+ a couple times to zoom text after the page loads, and then click Firefox's 'Back" icon, the previous Google search result page will be empty.
    However if I click on the 2nd result in Google's search results, which for me is [https://www.grc.com/stevegibson.htm "GRC | Steve Gibson's WebZone:"], I can zoom the text several times and then click back to the Google search results and find them all displayed fine.
    But I've been having this problem when backing up to Google search results probably 70-90% of the time since I updated from Firefox v33 to v34.
    It's frustrating because Firefox seems to remember the text zoom level for entire domains. So if I zoom on one Wikipedia page, Firefox will display all Wikipedia pages I visit subsequently at that zoom level. I used to love this feature. But it's become a real pain now when I back up to Google.
    BTW: If in the 1st example above, I first reset the text zoom level while I'm still on the Steve Gibson Wiki page, all the Google search results are displayed fine after I click Firefox's 'Back" icon. I don't have this problem in Chrome or Opera.

  • How to enable sound scrolling in After Effects?

    So basicly what im trying to do is be able to scroll through my compisition with the mouse and hear sound like in Sony Vegas is this possiple?  So if i drag my mouse over footage sound will play. Also can you enable keyframes on a mask?
    Thanks so much!
    Cam

    According to this page in the Adobe Help you can preview audio by ctrl+alt+drag the current timeline indicator. It also has a lot of other useful info about previewing in AE.
    Now, keep in mind, previewing audio and video in AE is very different from non-linear editors like Vegas. Rick Gerard had a good explanation for this:
    Sony Vegas, Premiere Pro, Final Cut, Avid are all NLE's (Non Linear Editors) and they are specifically designed to playback a video stream. With any of them, if you stack enough layers or effects on the video they will have to render a new video stream based on pixel based calculations for every pixel in the stack. This rendering, especially for HD sources or for complex plug-ins, will take quite a bit of time.
    After Effects, Flame, Fusion, Shake -- are all pixel based image processing applications that act very much like Photoshop. They calculate the values of every pixel in every frame, come up with a new pixel, and then play those pixels back as a video stream. More importantly, AE and all the other pixel based compositing apps, always work internally with completely uncompressed pixel data. NLE's rely on codecs and in some cases, hardware, to playback the video. It's an entirely different way of working with moving images.
    In After Effects you enable the preview by loading a bunch of frames into RAM then the video stream is played back. You start the process with the 0 key on the numeric keypad and not with the Space Bar as you do in nearly every NLE ever created. The length of the preview depends entirely on how much free ram you have available and it takes some time to generate these new pixels. The more layers, the more effects, the more calculations that need to be performed the longer it will take to process the RAM preview. There's currently no way around this rendering time. A modern NLE will handle an amazing number of video streams simultaneously, but as soon as you exceed the capability of the system you're stuck with a render. Most NLE's, given the same number of calculations, actually take a little longer than After Effects to do the same kind of effects. Open GL, and other GPU acceleration helps many NLE's achieve higher performance but it has yet to be implemented into a pixel based compositing app. The sad truth of the matter is that if you want to do compositing in any of the available compositing apps, you have to wait for renders. They are getting better. Memory management and efficiency is improving. GPU accelerated effects are being added, but for now, that's about as good as it gets.
    I hope this helps. As long as you use After Effects to create shots and don't try to make it do the work of a NLE you should be fine. Movies come from NLE's, amazing shots come from AE.
    - Rick Gerard
    This page has links to lots of information about animating masks and shape layers.
    It sounds like you're a beginner in AE. You should really start here to get a foundation in the basics before you just jump into it.

  • How to get the frame position after being moved.

    I created a frame, after I moved it by my mouse, how can I get the new position?

    you could use getLocation() of a JFrame, maybe call it with a mouselistener or windowlistner.

  • How to Create Pages in EP6 after Creating iView

    Dear All,
    I have created a iViews in EP6 based on available par files can any one tell me how to cretae the pages for that iview so that when user logs in he can click on page link and see iView in Ep6
    Thanks and Regards
    Prasad.Y

    Hi Prasad,
    To get more info on this question and your other questions, see this documentation on help.sap.com:
    http://help.sap.com/saphelp_nw04/helpdata/en/a9/76bd3b57743b09e10000000a11402f/frameset.htm
    In the navigation panel on the left choose Administration Guide > Content Administration. You will find topics on Pages, roles, worksets, etc.
    Hope this helps.
    John

  • How to reinstall Pages as free after restoring

    I purchased an iPad Mini in December 2013 and could install the iworks applications for free. Today, my ipad mini got stuck and therefore I needed to restore it via itunes on my laptop.
    Everything is back fine. However I cannot see iworks under Purchased applications including Pages. When I search it in App Store, it displays with a price tag.
    So my question is how I can have these apps free again?
    I tried to sign out from itunes on ipad and signed in like suggested on some websites but it did not help. I signed with a different itunes id and signed out and signed in with original, it still did not help. And I had no backup prior to restoring.
    Any help is highly appreciated.
    Thanks.

    How to get all the iWork apps, iPhoto, and iMovie for free on an eligible iPhone or iPad
    http://www.imore.com/how-get-all-iwork-apps-iphoto-and-imovie-free-eligible-ipho ne-or-ipad
    About Free Apple Apps for iOS 7 compatible devices
    http://support.apple.com/kb/HT5913
     Cheers, Tom

  • How to get last geo position, after 24 hours offline?

    I lost my iphone 5. Then i use the app "find my iphone". And it told that its offline, and i coudnt see the last geo position. How can I get last geoposition?

    Unless you installed a "finder" app that would upload that information there is no way to get previous locations.

Maybe you are looking for