UIX Controller - using the browser back button

I'd like to understand more about the controller and what is going on behind the scenes when I hit the back button. It would appear that some form of page caching is taking place and I want to know if I can effectively get a refreshed version of a page (although in some cases it might be just some elements of a page). My application scenario is this:-
Having done a search, I select a row from a results table and add it to a short list (similar to shopping cart) which is then displayed. My search results page i.e. the previous page has a link to the shortlist with its text attribute databound to a string generated when items are added to the shortlist '3 items shortlisted'. When I hit the back button I get the state of the page before I added my item to the shortlist so the description is wrong. Hitting the browser refresh button displays the correct link text. Anyway I can force this behaviour? Is this what I should be trying to do or is there some best practice technique that I can use? There are several instances where I want to do this sort of thing.
Hope that makes sense
Thanks
Ian

Hi,
In the Struts Framework, I have found code in the controller servlet, like this:
* Render the HTTP headers to defeat browser caching if requested.
* @param response The servlet response we are creating
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet exception occurs
protected void processNoCache(HttpServletResponse response)
          throws IOException, ServletException
          if (!nocache)
          return;
          response.setHeader("Pragma", "No-cache");
          response.setHeader("Cache-Control", "no-cache");
          response.setDateHeader("Expires", 1);
nocache is a boolean that gets initialized from a parameter specified in the web.xml!
multiple header fields for all different web browsers.
(how to set these header fields in JSP, over to someone else)
I can not remember if, when the user uses the Back button to return to a page with these header fields, he gets a 'Page Expires' message, or if the browser will automagically refresh the page.
(It might even be so that for example IE5 will refresh, and that IE6 will give the message)
Luc

Similar Messages

  • The browser back button is not working correctly when using the search funtion in ProBoards forums. Is there a known issue with ProBoards & FF?

    I have submitted a bug report to ProBoards, but they cannot duplicate the problem I am having, so I am submitting this here in hopes you can find a solution.
    At ProBoards Support and another PB forum while doing searches I found this problem, which continues with repeated testing over the past week or so:
    url: http://support.proboards.com/search
    1. enter perameters for the search (posts only by staff for the last 2 days)
    2. choose one of those post results & click on it (choose a post on page 14 and not on page 1 of the results)
    3. using the browser back button, attempt to return to the previous page of search results
    4. rather than being taken back to the search results with my parameters, the search parameters have been removed and the page show 1000 results of posts by everybody.
    I have tested this over and over again, disabling plugins, and nothing seems to alter the malfunctioning of the back button when I am doing this search function at ProBoards.
    I have tested it in Internet Explorer and find that in IE the browser back button works properly with ProBoards searches. I always get the result I expect, so it's a problem with how FF interfaces with ProBoards, I think.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Using the Safari Back button to navigate?

    Why is it when I'm navigating the Support communities and I use the Safari back button it always goes to the top of the list and not to the list that I have already expanded. It gets pretty annoying to have to keep expanding the topic list to get back to were a left off.

    Every "List" you see is sorted by activity - latest first. If you navigate away, then back, you are reloading the page with a new set of activity.
    If you wish to use a list as a "Home Base" after using "Load More", COMMAND > Click the link (Title?) to open the thread in a new TAB. when finished, close the TAB and you will see your Home Base as you left it - likely with the thread you chose Underlined
    ÇÇÇ

  • Since I've updated to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.

    Since I've updated from iOS 5 to iOS 6 I am unable to use the next/back buttons from Headphone for audio book chapters.
    This is working fine for albums but are broken for audio books.
    The back button refers always to the first chapter of the audio book (very annoying if you are in the middle of an audio book) and the nex button goes one level higher back to the selection of the audio book itself.
    In iOS 5.0 it was still possible to navigate throught the audio book chapters using these buttons.
    This still happens in iOS 6.1.
    Is this a known bug?
    Does any solution exist?
    Thx,
    Oliver

    To gdgmacguy your a f****** idiot for one I'm having the same problem as pennymar. And you tell me to quit whinning. You got more problems then the iOS 6 you did not answer my question nor the other 13 or whatever you replied to within a 30 min time frame. You must got nothing better to do then to harass people and to pretend you know something about apple products. Which you don't from what I've read the other advices you should have gave to other people. But you didn't you replied a question back to the people asking a question. So if your not gonna use these community forums the right way don't use them at all.

  • Incorporating the BROWSER back button in flash

    I have seen a new layout in Flash, where the browser's back
    button can be used to hit different pages that have been visited
    INSIDE the flash clip. So for ex, you go to a URL and its a full
    browser flash site, then click "news" and go to the news page. If
    you click back on the BROWSER, it takes you back to the main page
    of the flash site, not the last URL visited in the browser. Here is
    a good example:
    http://www.opcd.net/#/lomo_-_mr._wig/
    going back in the browser will take you to other visted image
    pages. Can somebody point me in the right direction to figure out
    how to incorporate this in my layouts?
    Pat

    Have a look at this article:
    http://www.adobe.com/devnet/flash/articles/deep_linking.html.
    It will probably answer your question.

  • When clicking on a link on a web page it would go to that page in the same tab and you could use the GO BACK button to bring up the previous page? Now clicking the link always goes to a new tab, can this be fixed.

    Tried to change tab options and it didn't help.

    It's a good idea to try disabling Flash completely and see whether the problem continues. If it does, then my guess is incorrect. To test that, open this tab:
    orange Firefox button (or Tools menu) > Add-ons > Plugins category
    Here you can locate Shockwave Flash and use the Disable button. Keep this tab open for easy access when doing your test.
    ''If your test confirms that Flash is causing the problem,'' then the other thread has two suggested workarounds. The first is simple to understand (keep some Flash running at all times) but may be inconvenient to do all the time. The second is trickier because it requires editing a file in (or creating and then dragging a file into) a system folder. Fortunately you only need to do it once.

  • Open previously viewed Tabbed Panel when using browser back button

    I have a page containing SPRY tabbed panels, and was wondering if there was a way that if a user navigates back to this page using the browser back button, the last panel viewed could remain open. Using hash tags in the URL works for Mozilla but not for IE8. Here is the sample page: http://www.davidkneale.com/wcusa/expedition_leader.html
    Does anyone know how I can get this to work in IE8?

    Perhaps you missed the announcement that Adobe is no longer investing in the development of Spry. See: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l.
    There used to be a dedicated Spry forum, but it has been changed to read-only.
    Spry isn't exactly dead, but nor is it in the best of health. Add to that the fact that IE 8 doesn't support the HTML5 history management API, and the lack of replies isn't really surprising.

  • Reporting Services add (browser) back button

    Dear all,
    I have a client that has 4 reports; 1 main, and 3 that are rendered when the user clicks the report data on the main report (which passes parameters to generate the other 3).
    They would like to have a back button in the report header of the 3 reports (they don't want to use the browser back button).
    Is this possible using a text box, then editing the navigation properties and does anyone have an example? Or am I missing something quite obvious?
    Any help would be gratefully received!!
    Dan

    Check this link on how to implement it
    http://road-blogs.blogspot.com/2010/04/adding-breadcrumbs-to-your-drillthrough.html
    Cheers,
    Jason
    P.S. : Please click the 'Mark as Answer' button if a post solves your problem! :)

  • Browser Back Button x Stale Data

    Hi,
    I'm facing a weird issue with back button handling.. whenever two sessions of the browser are opened to access the Oracle Applications, when changing something in one session, moving to the other session to change another thing and come back to the first session, even for completely different products and responsibilities, it gives me the stale data error as below. It seems like the session has been invalidated since I'm sure I haven't use the browser back button.
    Is this an expected behavior?
    ++Error: Cannot Display Page++
    ++You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).++
    ++To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.++
    Thanks,
    Eduardo

    Yes,that is the expected behaviour. In oaf http session is synchronised with the clicks, so on same desktop if u open two different apps sessions you will face the error, which ur facing now.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Browser Back Button and form navigation

    Some times when you use browser back button and adf-taskflow navigation buttons, validation on form fails, witout having made any change even with enabled token validation.
    Reproduction steps on HR schema:
    1. Create QueryDepartment and EditDepartment Views and navigation rules in adfc-config.xml
    2 Create ADF view only table page for QueryDepartment selectable, and add navigation button to go to EditDepartment
    3. Create EditDepartment form with navigation buttons and button to navigate back to QueryDepartment
    test:
    1.Run QueryDepartment and select a department
    2.Go to Edit Department using navigation button
    3.Navigate to next department pressing the 'Next' button
    4.Navigate back using the Browser Back button.
    5.Try to navigate back to QueryDepartment using the navigation button.
    My result is validation error on DepartmentId field 'Error: JBO-25013: '
    Is this a bug or am i doing something wrong?

    Hi,
    maybe I don't get it, but as I understood you have problem with focus on select button. So why don’t you set focus onLoad on another element of your page?
    Something like onload=”$x(‘ELEMENT_NAME’).focus()”;
    Regards,
    Przemek

  • Browser Back Button

    Could someone please explain to me why users cannot use the browser back button with SP 2013? What is the purpose of preventing its use?
    Also, if there is no legitimate technical reason to disable this capability, how do I stop SP 2013 from redirecting the user to the current page when they try to use the browser back button?

    What page? On some you're being bounced from a link to a re-direction so when you hit back you just hit the redirect again and end up in the same place...
    There are other times the back behaviour might be interfered with as ajax controls weren't anticipated as part of basic HTML and browser construction.

  • OA Framework browser back button

    Hello,
    How does OA Framework figure out navigation using browser back button?
    I am taking an example from the tutorial which comes with JDeveloper.
    There are these 2 pages EmpSearchPG(X) and EmployeePG(Y), there is an explict link from X to Y and an implicit link from Y to X (when you create an employee or cancel employee creation process).
    This is the scenario
    1. You start from page X
    2. You go to page Y, by clicking on the link to page Y from page X
    3. You come back to page X with browser back button
    4. You again go to page Y, by clicking on the link to page Y from page X
    In this case control first comes in processRequest of the page X controller and then processFormRequest of the page X controller and
    OA Framework does this because it detects the browser Back button navigation. How does OA Framework figure this out?
    regards, Yora

    Which function are you using for parameter setting? Setting parameter on pageContext will be lost on back button. Use putTransientSessionValue to set the parameter.
    But to be on the safer side, now that you have found the reason of NPE as the back browser button, follow the back browser button handling section in Dev guide to handle that scenario also.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Form field validation: All required data lost when clicking browser-back-button!

    Hi folks,
    I have a big problem using the validation text  field components of Spry when the user must click the browser back button (or clicking a history.back()-Link) because he has  entered a wrong CAPTCHA-code!
    Right now, all the data - only in the required fields - not in the optional  fields!!! - is lost and the user has to enter all data once  again;-(
    Does anybody know why only the data in the  required fields is lost? Is there a nice workaround?
    I really  appreciate a quick answer:-)
    Kind regards from cloudy Germany
    Thomas

    rememberFormInputs('frmlogin', 'input-');
    'frmlogin' should be the id of page, not the name. so on your <form> tag, add the id="frmlogin"
    remove the
    // overload alert
    function alert(str) {
         var el = document.getElementById('alert');
         if (el) {
              el.value += str+"\r\n";
    Its really bad practice to overwrite the alert. and inside the rememberFormInputs remove these lines:
    alert('old value remembered: '+old_value);
    alert('setCookie: '+name + ' = '+value);
    and it should work

  • Browser "back" button won't work when linked from Catalyst graphic

    I am using Flash Catalyst in (CS5 Design Premium) because I am much more a print than web designer so bear with me.
    I created a .swf file in FC, and placed it at the top of a "router index" page. I linked 10 "buttons" in the .swf, each to a different anchor on the "router index" page. Clicking on each "button" jumps to the correct anchor, so far so good.
    The problem is, when I hit the browser "BACK BUTTON" in IE only (Safari and Firefox work fine), it does not jump back to the top of the "router index" page. It jumps back to a previously opened page (homepage or another page), instead of back to the FC .swf graphic on the "router index".
    FC apparently only allows linking to "absolute" URL's, not "relative" URL's, (so my links to the anchors are "absolute"). I don't know if this is the source of the problem with IE. I have always linked to anchors previously in Dreamweaver using "relative" URL's, and have never encountered this problem.
    I looked over the files that FC creates and cannot find one that I understand, or shows an editable file path that I can change.
    I hope i don't have to buy Flash Builder. Right now I have Design Premium. And... I don't understand Actionscript.

    Hi azaral
    Take a look at Project > Quiz Manager... > Quiz
    Settings tab. My guess is that you have DE-selected the "Allow
    backward movement" check box.
    Cheers... Rick

  • Browser back button does not work (IE) - Error On Page message

    Just take over website from our designer; I'm new, probably doing more fiddling on the live remote website than I should be...
    http://www.cmcwny.org
    Error On Page message, internal links work, but the browser Back button does not (at least in IE). 
    I have a backup of my local site from before this happened, but I do not know how to actually replace it.
    Any help on either issue will be appreciated, thanks!
    Larry Congdon
    Buffalo, NY, USA

    Hi
    First, get rid of your designer, the page design/code is a mess.
    There are a number of problems with the page, not least being the disabling of the back button in all browsers I tested it in, (visitors may visit once with this, but are unlikely to do so a 2nd time).
    The menu system is a fixed size so that when the browser is resized it overflows the browser window.
    The use of tables for layout is not recommended as it is inaccessible to users using assistive devices.
    To put this more politely, if you paid for this, ask for your money back. If you did not pay, then start again and use one of the dreamweaver layouts for your page, for more info, see - http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html.
    PZ

Maybe you are looking for