Ctrl+F5 and Browser Back Button

I have read many posts about these issues, but did not reach to any result.
I realize that they are a kind of validation, but how can we work around them?
I have tried to set "EnableTokenValidation" property in the page definition to false, but this causes more problems, since instead of "Creation/Insert" mode, the page appears to be in an "Update" mode.
It came upon my mind to hide browser's tool bars, but I am not sure for this...
So, please, does anyone have reached a solution, or even any recommendations?
Thanx in advance

Hi,
you are tackling two issues here:
1 - page refresh
2 - browser back button
Both are typical JavaEE issues
1 - If you submitted a page then a refresh will not bring it back into createInsert mode. If you want it to get back into CreateInsert mode, set an invokeAction on the executableSection of the binding to invoke CreateInsert on any page request
2 - The recommended way of doing this - described as a pattern in J2EE - is a dejavu token that allows you to detect duplicate requests. The best solution I saw working though is a piece of JavaScript that on the client side deleted the browser history. This way the browser back button became non-functional
Frank

Similar Messages

  • Data usage AND Browser Back Button?

    1.  How accurate is the data tracker?  I call DATA from my phone and get the usage via text, and check the Verizon site and they are both the same, HOW accurate are they?  In other words, am I getting a surprise at the end of the month?
    I have used 1.2mb out of 75mb.
    2.  Is there a back button for the browser besides the touch one?  Like a physical button or button sequence?
    Thanks all!

    The data information on My Verizon and #DATA refreshes within 45 minutes of the data transaction. In some cases, it may be delayed over 24 hours due to system delays. 
    Thank you, LatachaM_VZW

  • 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 not working with ADF Application integrated with SSO

    I have integrated an adf application with Oracle SSO Authentication. Application is running fine.
    Though, while navigating between pages, using browser back button , it is not redirecting the url properly
    Should Redirect it to : http://<hostname>:<port>/<contex-root>/<servlet>/<id>
    Presently Redirecting it to :http://<hostname>:<port>/<contex-root>
    As, directory browsing is not allowed, there is Error 403--Forbidden .
    Can anybody tell what changes needs to be made to make browser back button work.

    In some of the documentation I have read, they have mentioned that using the back button in a browser doesn't work too well with any JSF type of application (not just ADF and Jdeveloper apps).
    http://docs.oracle.com/cd/E15051_01/web.1111/b31974/web_form.htm#CFHHJGJH
    Instead, they suggest using buttons on the form.
    There is a video on using navigation between forms that may be of value: http://www.youtube.com/watch?v=bsPtmRID5XI&feature=plcp
    Stuart
    Edited by: Stuart Fleming on Sep 11, 2012 5:30 AM

  • 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!

  • 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! :)

  • I open a new webpage in a new tab. I then go to a link and the back button does not allow me to go back to the original webpage. Any suggestions?

    I open a new webpage in a new tab. I then go to a link and the back button does not allow me to go back to the original webpage. Any suggestions?

    I don't think you understood the question. I am having the exact same issue. I open a link in a new tab or window, for example: https://addons.mozilla.org/firefox/addon/backforedrop/
    When the new tab opens, I click on "reviews" to open the link: https://addons.mozilla.org/en-US/firefox/addon/backforedrop/#reviews in the existing tab because I want to see the reviews for this feature. After I read the reviews, I want to go back to the main link, but the back button on my browser is greyed out, as though I was never even on the previous page. So my options are 1) Open every link I ever click on in a new tab or window, or 2) Hope the website is user friendly and attempt to navigate back to the previous page using links inserted on the current page.
    You never realize how frustrating not having back button is until it happens.

  • PPR and the Back Button

    Hi all,
    I posted recently about a workaround Oracle showed me for helping manage back button problems more efficiently, but now I'm having a separate back button problem.
    Changes that were made to a page via PPR disappear after coming back to the page by clicking the browser back button--for example, if I added a row to an <af:table> using PPR, navigate off the page, and click the back button, the row will disappear again--although it will reappear as soon as any event re-refreshes the table. I've tried turning off browser chaching, and it makes no difference, which makes me suspect this is not a browser caching issue.
    Does anyone know if there's a way to make sure a component is always refreshed when the page is loaded, even if it was loaded via the browser back button?
    Thanks much,
    Avrom

    Hi Frank,
    Great idea, thanks! I haven't tried it out in all my cases, but it looks like it's going to work!
    For the use of others, here's what you do:
    1) Make sure your model layer is capable of supporting the back button here, of course.
    2) Create a method, String refresh(), in a backing bean. This method can be a no-op (just return null) if you don't need to do any work to re-set the page. But if, for example, you calculated values referred to in the page, you should re-calculate them here. If you had code that calculated them when the page was originally loaded (*not* for PPR), you can take that out, because this will always get called on a new load/back button load/reload.
    3) Add a CommandLink like this one to your page (needs to be in a form, but otherwise it doesn't really matter where):
    <af:commandLink id="refresh" partialSubmit="true"
      action="#{yourBean.refresh}"/>4) Add a call to a javascript function like the following in your <afh:body>'s "onload" tag:
    function refreshPage() {
        var refreshComp;
        if (document.getElementById)
            refreshComp = document.getElementById("refresh");
        else if (document.all)
            refreshComp = document.all["refresh"];
        else if (document.layers)
            refreshComp = document.layers["refresh"];
        if (refreshComp) {
          refreshComp.click();
    }(All of that rigmarole is to support different browsers, which have different ways of retrieving a DOM element by its id.)
    5) For each component you need refreshed on a back button, set (or add) "refresh" to its partialTriggers property.
    6) Sit back and watch the Back button work.

  • How do i have status bar and a back button  for applets?

    I have an applet which displays a set of panels in order. Is there any way that i can have a status bar like in an browser and a back button so that it can go back and go forward. What do i need to do? Is there any sample code to do so. I am new to java and learning.
    Thanks
    Ram

    Status-Bar -- a long thin panel with a long TextField. Perhaps use something from the BorderFactory class to seperate it from other parts of the screen...
    Back Button -- Keep track of your panels in a CardLayout, for example, then use a Button with an action listener that uses the CardLayout's previous() method to move back to the last panel.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • IE and the back-button

    Hi all...
    I've used JHeadstart 10.1.2 to build a fairly simple UIX based web application. This application is completely a read-only view of some data, layed out as master-detail-detail over a few screens.
    As such, I followed the directions in the JHeadstart Dev Guide to disable back-button protection, since my application didn't need to be protected against misuse of the browser back button.
    Everything works fine in Firefox... users can query the master screen and drilled into details, and use the browser back button to back out of the details to the master page.
    However, IE does not like this at all. It intercepts this back-button use with pages that employ POST form submissions by throwing the following rendering when navigating back up from my app's details pages:
    ================
    Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
    To resubmit your information and view this Web page, click the Refresh button.
    ================
    What kind of mods in my UIX/Struts JHeadstart code can I make in order for IE to accept use of the back-button in this scenario?
    I realize I can add breadcrumbs to my application, but that doesn't necessarily mean that the users will use this instead of the back button (especially since the users will be public anonymous Internet users -- training is not an issue)?

    Timothy,
    If you google on "how to prevent Warning: Page has Expired" you will find lots of useful links. You nee dto set your caching policy on the http header. You can do this by overriding JhsActionServlet.process, and register your custom action servlet in web.xml.
    You can add calls like this to set caching strategies:
    response.addHeader("Cache-Control", "max-age=3600");
    response.addHeader("Cache-Control", "private");
    Google on "response.setHeader" or reponse.addHeader for more examples.
    Steven Davelaar,
    JHeadstart Team.

  • Browser back button not maintain selections on previous page?

    Hi every one
    1. The following is my code for a home page.
    <h:form>
        <h:selectManyCheckbox value="#{home.value}">
             <f:selectItems  value="#{brandItems}"/>                  
        </h:selectManyCheckbox>
        <h:commandButton action="#{home.display}" value="Submit" />
        <s:link value="view newxt page" action="#{temp.getAll}" view="/table.xhtml" />
    </h:form>2. This is my session bean code
    @Stateful
    @Name("home")
    public class TempAction  implements Temp,Serializable
         private static final long serialVersionUID = 1L;
         String []value;
        @Out(required=false)
        List<SelectItem> brandItems;
         @Begin(join=true)
         public void getAll() {
              brandItems=new ArrayList<SelectItem>();
              brandItems.add(new SelectItem("First","First"));
              brandItems.add(new SelectItem("Second","Second"));
         public String[] getValue() {
              return value;
         public void setValue(String[] value) {
              this.value = value;
         public void display() {
              for(String a:value)
                   System.out.println("________________"+a);
        @End
        public void reset() {}
        @Destroy
        @Remove
        public void destroy() {}
    }3. I invoke getAll method by using following code in my pages.xml
    After visiting the second page by clicking the s:link , I go back to the first page by using browser BACK button . Then when I hit the SUBMIT button, I get the following error message in my jboss console and also the check boxs are deselected.
    16:29:05,843 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
    sourceId=j_id16:j_id17[severity=(ERROR 2), summary=(value is not valid), detail=(value is not valid)]Kindly assist to resolve this problem. Many thanks in anticipation.
    By
    Thiagu.m

    Did you ever find a solution? I'm having this issue also.

  • 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.

  • 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

  • IE Browser back button goes to two pages back

    I am not using JSPs, using a servlet ABSServlet to display the search page, after entering the search criteris I'm displaying a report page. The report page has a button 'Save As Excel' which open the report in the Excel form. When I click on this button browser asks 'Open' or 'Save'. I clicked on 'Open'. It open the report in excel form in the same page. Now if I press the IE Browser back button it takes me to the Search page instead of the report page.
    Ideally it should go back to the Report page(preiosu page) if I click the back button and not to the previous to previous page. Can someone help?

    You cannot (practically) modify the function of the browser's back button...
    You can patch it though.
    Put in the intermediate (search) page something like
    <script language="Javascript"><!--
    function sendBack()
      wherefrom=history.forward(1); //only valid if the back button has been used. otherwise null
      length=wherefrom.length();//length of 'forward page's url'
      if (history.forward(1).substring(length-4)==".xls") //the back button has been press on a url ending .xls - back from a spreadsheet
        location.href=history.back(1); //go back once more from here
      else
        //this is if the back button was not used or if back button was used from a page that is not an excel spreadsheet;
        //if you write nothing here, the page just display as though this function were not here
    //--></script>
    <body onload="sendback()">Not really a Java solution, but should work.
    Bamkin :-)

Maybe you are looking for