Back navigation & vo.isPreparedForExecution() trouble

I have a search page and a create page implemented the same way as in the toolbox tutorial. The problem is that if the user navigates back to the search page from the create page (by the use of the browser's back button), and then clicks the create button to navigate to the create page again i get an error saying that my vo is not initialized.
The controller logic for the search page is like this:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
if (TransactionUnitHelper.isTransactionUnitInProgress(
pageContext, TRANSACTION_NAME, false))
am.invokeMethod("rollback");
TransactionUnitHelper.endTransactionUnit(pageContext, TRANSACTION_NAME);
And the controller logic for the create page is like this:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
// Tell log we are entering our code
pageContext.writeDiagnostics(this, "processRequest.begin", OAFwkConstants.PROCEDURE);
// If we do NOT have a "duplicate post" situation
if (! pageContext.isBackNavigationFired(true))
TransactionUnitHelper.startTransactionUnit(pageContext, TRANSACTION_NAME);
if (! pageContext.isFormSubmission())
// Initialise the server side of the middle tier
initPageAm(pageContext, webBean);
// If we have a "duplicate post" situation
else
if (!TransactionUnitHelper.isTransactionUnitInProgress(
pageContext, TRANSACTION_NAME, true));
pageContext.redirectToDialogPage(new OADialogPage(NAVIGATION_ERROR));
And this is the code in the AM that causes problems :
LocationsVOImpl locationsVo = applicationModule.getLocationsVO();
if (! locationsVo.isPreparedForExecution() )
// TODO: We do not get here if user has navigated back to
// the search page with the back button, and then clicked
// create again.
locationsVo.executeQuery();
// Create a new row in the vo to hold data from the UI.
LocationsVORowImpl row = (LocationsVORowImpl) locationsVo.createRow();
locationsVo.insertRow(row);
initNewRow(row, locType);
row.setNewRowState(Row.STATUS_INITIALIZED);
The problem is that locationsVO.isPreparedForExecution does not return false after the user has navigated back to the search page and clicked the create button again..
Is there another way to implement this, or is there something else that I have forgotten? I truly believe that I have followed the guidelines and the tutorials and implemented this the right way, but ....

never mind, I figured this out!! Thanks!

Similar Messages

  • Back navigation arrow doesn't work anymore, also not getting suggestoins when I start typing a URL... how can these be fixed?

    So after I deleted a bunch of files/applications today (computer was threatening to crash), Firefox started to do a couple weird things. Navigating backward is no longer possible; the back navigation arrow is greyed out. Also, when I start typing a URL, it no longer suggests the rest of it, either in the URL bar itself or in a drop down menu (it used to do both). 16.0.2 is the current version, right? That's the one I kept, I deleted the others. Recently, I got the announcement that Apple isn't supporting my operating system, Mac OS X 10.5.8 anymore, I don't know if that is relevant. How can these things be fixed?

    I use Windows but I can suggest you a couple of things that you can try out.
    1. Right click on your toolbar, click Customize. Click on the "'''Restore Default Set'''" button.
    2. Go to Firefox menu > Help menu > Troubleshooting information. In the tab that opens afterwards click "'''Reset Firefox'''".

  • Back Navigation and Browser Buttons

    What is the best way to implement back navigation in JSF, such that the application also behaves as expected when the user sometimes uses the browser's back button?
    Say, we have a page "index.jsp" and a page "results.jsp". From both pages it should be possible to navigate to the page "help.jsp" (which contains a back button). From "help.jsp" it might be possible to further navigate to, say, "about.jsp" (which also contains a back button and is, for example, also accessible directely from "index.jsp").
    After the sequence "index->help->about", the user expects to be at "index" again after clicking back on about.jsp and then clicking back on help.jsp. If the same sequence starts at "results.jsp", the user would expect to be at "results.jsp" after clicking the two back buttons, etc.
    What is the best way to achieve this behaviour? I guess I best store the entire navigation history in a session bean (something like a stack or so). Is that a good idea? I wonder how I best treat the case when the user hits the browser's back button (for example to navigate back from about.jsp to help.jsp). Any ideas? I could imagine that I could send a unique id (e.g. an increasing counter, or a long random variable) for every button click (using a hidden input, maybe?), such that I can always find the right point again in my navigation stack. But how would I nicely integrate something like this in JSF?
    Thanks for any hints!
    Michael

    This one is nice. But it doesn't redirect to a GET-formed URL.
    I just had taken 20 mins to refine it:
    test.jsp<h:form>
        <h:inputText id="paramname1" value="#{myBean.paramname1}" />
        <h:inputText id="paramname2" value="#{myBean.paramname2}" />
        <h:commandButton value="submit" action="#{myBean.action}" />
    </h:form>MyBeanpublic class MyBean {
        private String paramname1;
        private String paramname2;
        // + getters + setters
        public void action() {
            System.out.println("meep");
    }faces-config.xml<lifecycle>
        <phase-listener>mypackage.PostRedirectGetListener</phase-listener>
    </lifecycle>
    <managed-bean>
        <managed-bean-name>myBean</managed-bean-name>
        <managed-bean-class>mypackage.MyBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
            <property-name>paramname1</property-name>
            <value>#{param.paramname1}</value>
        </managed-property>
        <managed-property>
            <property-name>paramname2</property-name>
            <value>#{param.paramname2}</value>
        </managed-property>
    </managed-bean>PostRedirectGetListenerpublic void beforePhase(PhaseEvent event) {
        if (event.getPhaseId() == PhaseId.RENDER_RESPONSE) {
            FacesContext facesContext = event.getFacesContext();
            HttpServletRequest request = (HttpServletRequest) facesContext.getExternalContext().getRequest();
            if ("POST".equals(request.getMethod())) {
                Set paramKeys = facesContext.getExternalContext().getRequestParameterMap().keySet();
                List params = new ArrayList();
                for (Iterator it = paramKeys.iterator(); it.hasNext();) {
                    String componentId = (String) it.next();
                    UIComponent component = facesContext.getViewRoot().findComponent(componentId);
                    if (component instanceof UIInput) {
                        String paramname = componentId.substring(componentId.lastIndexOf(':') + 1);
                        Object value = ((UIInput) component).getValue();
                        String paramvalue = value != null ? value.toString() : "";
                        params.add(paramname + "=" + paramvalue);
                String url = facesContext.getApplication().getViewHandler().getActionURL(
                    facesContext, facesContext.getViewRoot().getViewId());
                for (int i = 0; i < params.size(); i++) {
                    switch (i) {
                        case 0: url += "?" + params.get(i); break;
                        default: url += "&" + params.get(i); break;
                try {
                    System.out.println("PRG to " + url);
                    event.getFacesContext().getExternalContext().redirect(url);
                } catch (IOException e) {
                    e.printStackTrace();
    public void afterPhase(PhaseEvent event) {
        // Do nothing.
    public PhaseId getPhaseId() {
        return PhaseId.ANY_PHASE;
    }For restoring facesmessages, just add the relevant code of the PRG thingy you have found.

  • UIX Struts back navigation

    Hi,
    I have project with UIX 2.2.8 and Struts. There are some pages, where the user can get to from different pages. Is there a suggestion how to provide back navigation functionality?
    Regards,
    Jan

    Hi,
    I have project with UIX 2.2.8 and Struts. There are some pages, where the user can get to from different pages. Is there a suggestion how to provide back navigation functionality?
    Regards,
    Jan

  • Need referring tab open on back navigation

    I have a page with 5 Spry Tabbed Panels, each have many linked pages.
    I'm using Dreamweaver CS4, SpryURLUtils.js - version 0.1 - Spry Pre-Release 1.6.1, SpryTabbedPanels.js - Revision: Spry Preview Release 1.4.
    What code can I add to the main page and linked pages to have the referring tab open when navigating back? The back navigation is done by a manually created breadcrumb.
    Here's the link:
    http://www.wiseye.org/wisEye_programming/campaign10/campaign2010newtabs-3.html
    many thanks!

    First thing, update your Spry Tabbed Panels to at least version 1.6.1.
    Then, if your 'back navigation' will always be static (that is, via your manually created breadcrumb each link goes back to a specific non-changing panel), use the technique that David Powers describes here: http://foundationphp.com/tutorials/spry_url_utils.php
    This technique works very well, and is not difficult to implement. Rather than repeating David's instructions here, I recommend going to his site and following them there!
    Beth

  • The back navigating arrow goes grey and Ihave to use history to return to the search. AmI wrong?

    The back navigation button goes grey when I try to go back to search (www,. Safari); I use history to return when I can remember the start page. Am I wrong?

    You're not  wrong.. it should work.
    Try deleting the cache associated with Safari.
    Quit Safari.
    Now open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy/paste:   ~/Library/Caches/com.apple.Safari
    Click Go then move the Cache.db file from the com.apple.Safari folder to the Trash.
    Relaunch Safari to test.

  • Creating Back navigation in Adobe Acrobat 9 Standard

    I have a huge pdf - actually an e-book - of more than 350 pages. Each page contains a health therapy with certain words hyperlinked which go to an explanation in the glossary, which is towards the end of the document. This means that the reader could click off page 9 to find themselves in page 320, and then after they've got their explanation, they will want to return to their original page (9).
    So how do I get them back easily?
    On Acrobat 7, there was a way of doing this. And it is explained here in this tutorial:
    http://library.queensu.ca/webir/e-theses/word-to-pdf-etd_tutorial.pdf
    The way to do it is found in Lesson 4, Section 3. It says:
    * In the Actions pane select the "Execute a menu item" then click on the "Edit" button.
    * The Menu Item dialog box presents itself. Select, from the menu, "View>Go To> Previous View.
    My problem is that none of these navigation titles such as Actions, or Bookmarks Properties, or Execute a Menu Item appear in my Adobe Acrobat 9 Standard.
    And I'm not even sure whether Adobe Acrobat 9 Standard can perform this navigation tool, or whether it is only available in Adobe Acrobat 9 Professional. I rang Technical Support, but they didn't know. So they referred me to Customer Services, but they didn't know. So Customer Services referred me to Sales, and they didn't know ...
    So please can anyone here help? I would be very grateful.
    Thanks for listening!

    Thank you for your swift response,
    The problem is that the form has to be filled out and then submitted via email, as you mentioned the email clients have trouble, I do not have a problem with the amount of submissions as I do not think I will ever hit the max on the form.
    I have been doing some digging, can I use "Extend Forms Fill-In & Save In Adobe Reader" function on the form so the users can fill out the form and then save it? And if so are you also able to have the "submit Form" function with this or can it only be one or the other?
    Thanks in Advance
    Laig007

  • Opening link in a new tab disables back navigation to the first page

    If I am on page A (for an example, let's say it is www.yahoo.com) and I chose a link on that page and by right-clicking open pop-up menu and choose '''Open Link in New Tab''', the page B (let's say finance.yahoo.com) opens in a new tab. Now, if I click on any link on this page B to be opened in the same tab the page (we will call it C) opens, but all options to navigate back ('''Go Back One Page''' browser button, Alt-Left Arrow, '''Back''' option on pop-up menu) appear disabled. However, if I continue to navigate from page C in the same tab to let's say page D, and from there to pages E and F, I can go back all the way to page C, but no further. It looks like for some reason the opening link in a new tab fails to put it in that tab navigation history.
    I am running Firefox 4.01. It happens only on my office computer and not on any other computers I use. I had this problem before on the same office computer with Firefox 3.6. I could not get rid of it. Only after I uninstalled 3.6, cleaned all remnants of it and installed 4.0 – the problem went away. I updated to 4.01 and it worked fine for a while. But recently (I don't know what triggered it) the problem came back.

    Thanks for your post.
    I've seen it, and that's what I want to avoid. Like I said, if I click on a link which was suppose to open in a new window, it should open in new tab instead.
    Thanks.

  • Firefox 32 back navigation does not work

    Hi:
    The followings happen to firefox 31 beta 9; firefox 32 beta 8 .
    If I want to save pictures or whatever , I open a new window and pull whatever images I want to save to the new window so that I can perform the saves consecutively, say I have pulled 20 images to the new window and starting saving images from the last page of this new window, so the next image to be saves will the second last page and so on and I should be able to go backwards 19 times back to the first image; but upto about 4 backward navigations , the browser stops working as in only "connecting...." appears in the title bar and the browser does not go backwards.
    Also, the browser stops saving images (even for those on pages to which I was able to go backwards) , it always displays "unknown download time" in the download window (the traffic says 0 bytes/s, etc) and the image is never saved.
    This problem is not site specific. Just using Flash player 10 plugin; Adobe PDF plug-in.
    I am using Firefox 30 beta 9 now. No such problems.
    What is causing these problems?
    Also, why is necessary to reboot computer after install? What are these versions doing to the registry, etc??
    Regards

    Hello,
    To find the correct solution to your problem, we need some more non-personal information from you. Please do the following:
    # Use ONE of these methods to open the Firefox Troubleshooting Information page:
    #* Click the menu button [[Image:New Fx Menu]], click on help [[Image:Help-29]] and select ''Troubleshooting Information''.
    #* Type '''about:support''' into the Firefox address bar and press the enter key.
    # At the top of the Troubleshooting Information page that comes up, you should see a button that says "Copy text to clipboard". Click it.
    #Now, go back to your forum post, right-click in the reply box and select '''Paste''' from the context menu (or else click inside the reply box and press the Ctrl+V keys) to paste all the information you copied into the forum post.
    If you need further information about the Troubleshooting information page, please read the article [[Use the Troubleshooting Information page to help fix Firefox issues]].
    Thanks in advance for your help!

  • When trying to sign out of Hotmail the "back navigation button" remains green and I have to click sign out again and the same thing happens over and over and the only way to close Hotmail is to go to File and Close Frame, so what's my problem?

    When I attempt to sign out of Hot Mail by clicking "Sign Out," I get the "Sign In" instruction as I always have, however, the green Firefox navigation button remains on bright green (not going to gray) and my MSN home page will not close automatically as usual. I click on the green arrow and I get an instruction to "Sign Out" again. I click on that and get the "Sign In" again but the arrow stays green. I can repeat this countless times and never get signed out and always remaining on the MSN home page. The only way I can close is to go to File and click on Close Window and then my homepage will close and go back to desktop. I've been using Firefox for a couple of years now (IE prior to that for ten years) and have never had this problem. After using "Close Window" I go back onto my home page, from the desktop, and the navigation button is grayed out normally until I sign in again and we start the cycle over again. Have I been hacked?
    == This happened ==
    Every time Firefox opened
    == Approximately a month ago.

    I was doing a side-by-side comparison of the new and old server (we backed up the server before the reformat) and I can see that, evidently, CR XI was installed.  We have the directory C:\Program Files\Common Files\Business Objects\3.0 and all the versions match what is located in the project's bin directory.  Does this confirm that I did have XI installed and licensed at one time?
    If I purchase a more recent version, couldn't I update the reports to use the newer version?  I have all the source code.
    Thanks for your help, it is a nice sanity check for me after hours of reading forums and documentation.
    Also, just a shot in the dark, but I'm assuming it wouldn't do me any good to simply restore the aforementioned folder to my C drive?  Would that work if I registered all the dll's?
    Edited by: Eric Hollering on Dec 2, 2009 6:40 PM
    To be clear, I do have VS 2003 & 2005, and I have the source code.  I just have never used Crystal Reports in any of my .NET apps because the need wasn't there, so recompiling is not out of the question.
    Edited by: Eric Hollering on Dec 2, 2009 6:49 PM
    Also, I looked at the CrystalDecisions.CrystalReports.Engine.dll that was in the C:\Program Files\Common Files\Business Objects\3.0\Managed folder and when I right-click and view the properties, then the Version tab, in addition to the 11.0.9500.2 version number, there is a property called Product Version that has the value .NET.  Does that mean that this dll was bundled with Visual Studio?
    I also found this directory on the old server...does this tell you anything?
    C:\Program Files\Business Objects\BusinessObjects Enterprise 11
    I did see that you can still buy XI from CDW.  I have a call into them currently to check with Business Objects for any registrations from my company.
    Edited by: Eric Hollering on Dec 2, 2009 8:27 PM

  • Creating "Back" Navigation in a Branching Project Without the Playbar or a TOC?

    Hello,
    I've been struggling with accomplishing a very simple goal: in my Captivate project, I want there to be a "Back" button on every single slide that sends the user back one slide based on their navigation history throughout the slide.  The playbar must be disabled, and I don't want the user to have to deal with a Table of Contents.
    Because this is a somewhat complex branching project, using the "go to previous slide" selection for a button will not work -- this simply sends the user one slide back in the filmstrip, and that might not be where I want them to go.
    Using the "go to last slide viewed" selection for a button also will not work.  This creates an infinite loop in which once the user clicks the "Back" button on one slide, they will go to the previously viewed slide, but when they click it again, they will return to the original slide.  For example, repeatedly clicking this Back button will send the user from slide 2 to slide 1, then slide 1 to slide 2, then slide 2 to slide 1....etc.
    Basically, all I want is an internet browser-style back button within my project.  I figure this is a fairly common thing that project creators want to do, so I checked for any available widgets that might offer the desired functionality, but I've come up with nothing.
    It would seem as if my only hope lies in two potential places: either the execute Javascript selection for buttons, or Advanced Actions.
    Before I dig too deeply there, I was wondering if anyone had a simple solution for this very basic problem.  I've looked around the forums, and this particular thread looks very relevant: http://forums.adobe.com/message/4575291#4575291 .  In that thread, it looks like the original poster just decided to create a separate swf for each of the linear branches of their project.  For my project, this would be a most inelegant and clutttered solution.
    Anyone have any ideas?  If I must use Advanced Actions / variable creation, could you point me in the right direction?  I'm on Captivate 5, by the way.  Thanks.

    Indeed this issue has come up several times over the years, because some authors would like Captivate content to work in much the same way that other web-based content playing in a browser does.  When users see content in a browser, they expect there will be a Back button that takes them to the last-visited slide. If they just keep clicking that Back button, they expect it will retrace their path through the content.
    What happens under the hood in the browser is that it stores all the URLs that the user visited in an array of sequential values, which allows the browser to retrace the user's path.
    Captivate currently has no built-in array facility available to authors for this purpose.  Captivate variables can only store one value.  Advanced Actions are not powerful or flexible enough to build the kind of programmatic loops that would allow you to traverse a series of variables to try and duplicate typical Back button functionality.
    It might be possible to do all of this using some fancy JavaScript coding, but you (or someone that owes you a favour) would need decent coding skills to pull it off.
    I think it would be great to log an enhancement request with Adobe for a couple of Advanced Actions to be added for this need.  Perhaps we could call them Go Back History -1 and Go Forward History +1.  These would just reference an internal array somewhere in the bowels of Cp where the History is kept.  Then all authors would need to do is choose this as a button action or an action in a conditional advanced action of some kind.

  • Left/Right(Forward/Back) navigation buttons NOT working (do NOT change color/activate) in FF 3.6.12

    Since the most recent FF update to the 3.6.12, I find that the navigation arrows (top left) which normally show/allow you to go back or forward in your browsing, are NOT active and do NOT work. Using default theme. Normally, when there is a page to the left or right )forward/back) of the current one, these will turn blue to show where you can move to. Now the are blank/white and do nothing. Same issue with the reload and STOP icons. HP DV9500, Vista HPSP2 X32, Norton 360, Roboforms, Google Toolbar. cable connect, etc. I have tried restart, cache purge, cleaned out add-ons, reibstalled FF on top of current app., etc.
    Any one have any ideas or suggestion? I's appreciate the help.

    `The file mdentioned in this articled does NOT exist in my Firefox Profile folder and DISABLING all things Norton 360 including the Antiphishing has absolutely NO EFFECT on this issued. Nav arrors still in op, still get shut down hangs.
    Other suggestions?

  • Page navigation cache delete on back navigation

    Hi,
    Building a Universal WinRT app.
    Is there any way to delete a pages navigation cache when a user navigates backwards via the WP back button?
    e.g. page saves state when user follows link in that page and returns to it. However if a user navigates away from the page using the back button and then returns to it then no state is saved and it reloads
    Thanks!

    Hi,
    Please see this:
    NavigationCacheMode enumeration
    The NavigationCacheMode enumeration has these members.
    Member
    Value
    Description
    Disabled
    0
    The page is   never cached and a new instance of the page is created on each visit.
    Required
    1
    The page is   cached and the cached instance is reused for every visit regardless of the   cache size for the frame.
    Enabled
    2
    The page is   cached, but the cached instance is discarded when the size of the cache for   the frame is exceeded.
    As your description, you should set the Page’s  NavigationCacheMode to Disabled
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Back Navigation button not visible in tablet resolution

    Hi,
    The back nav button is not visible when we run the application in SAP Webide with 800*600.
    It is visible when we run with mobile resolution 320*480.
    I have attached the screenshots in the attached doc.
    Any ideas.
    Regards
    V

    Hi Sakthivel,
    My oRouter have the following code. Are you talking about this as a device model?
        this.oRouter.navTo(
      "detail",
                    !jQuery.device.is.phone
    Regards
    V

  • Help setting up back navigation button by label name.

    Newbie back for some gems of wisdom.
    I am trying to get forward and back buttons to advance the user along the timeline by label name. I got the forward button to work, but can't seem to find the right code tweakage to get the back button to work.
    Here is what I have:
    stop();
    var myLabels:Array = [ "A","B","C","D","E","F","G","H" ];
    var nextLabel:String;
    var inc:int = 1;
    var prevLabel:String;
    var inc2:int = -1;
    fwdbtn.addEventListener(MouseEvent.CLICK, clickNextSection);
    function clickNextSection(e:MouseEvent):void
        nextLabel = String(myLabels[inc]);
        gotoAndPlay(nextLabel);
        inc++;
    bkbtn.addEventListener(MouseEvent.CLICK, clickPreviousSection);
    function clickPreviousSection(e:MouseEvent):void
        prevLabel = String(myLabels[inc2]);
        gotoAndPlay(prevLabel);
        inc2++;
    I'm sure there are some reduncies and I know I'm missing the variable that tells the timeline to subtract positioning from the array.
    Do I need to define a new array for the back button?
    Any idea what I'm messing up??
    Thanks!!

    Thanks for the reply! Kind of lost unfortunately.
    So can you tell me how to edit the code to reflect that? Not sure how what the deincriment syntax and is and not sure how to set it up the way you are suggesting - only adding deincriment/increment on the fly.
    Any help you could lend to chopping the code would be appreciated.
    Love the logic you suggest. That would ideal for it to work from any point.
    Thanks for your help!

Maybe you are looking for

  • Mac Pro Boot Problems After 10.6.2 Update

    After installing the latest version of snow leopard I am now having boot problems on my mac pro. Symptoms; -Screen resolution is incorrect at apple splash screen. -Takes a lot longer than usual to boot. -Once booted the blue tooth magic mouse isn't i

  • All standard function keys disabled, brightness now on f14 f15, why?

    Nope, selecting "Use all f1, f2, etc" in system preferences doesn't turn them back on. This is a working brand new full sized mac keyboard that my cats walked on and triggered this mystery. I never use expose or spaces so those are turned off, now...

  • Automate MR21 Process

    Hi Experts, We have a client requirement as below: Client wants to compare the info record price per material for all related vendors. Once he arrives at the best effective price (Material Price + Freight + Duty), he would want this price to update i

  • Issue with Artwork not showing just blank when open

    Hi all weird one I have been using Photoshop CC 2014 x64 fine for a while now but recently have had items that I have left open e.g. 1.psd when I clikc on its tab doesnt show the actual work and any layer you select also wont show I have to use resto

  • Dreamweaver interface is all messed up

    I don't know how it became like this. it has seemed to just degrade more and more today. I am a noob to dreamweaver, though learned a whole lot about CSS today. The graphical interface in dreamweaver is out of place with images, margins/paddings all