Staying on the edit page after posting

There's something that I can't get to work and probably is not difficult at all.
I want users to stay on the editpage after posting the form.
I thought to do it in the processEdit method.
By creating an url and give this as a return value. But I keep comming back to the default portal page.
My users can go to the edit page of a channel. On the editpage I have made a telephonebook in which the users can search.
The intention is that the users see their results on the edit page and they can select some of the results.
my code (which doesn't work):
String url = request.getRequestedURL().toString();
URL editpageURL = new URL(url);
return editpageURL;

I use the following piece of code to display error messages on the edit pages and to redirect to the user back to the same edit screen. It has been working for me for quite a while.
desktopUrl = context.getDesktopURL(request);
containerName = request.getParameter("containerName");
provider = request.getParameter("editChannelName");
targetprovider = request.getParameter("provider");
if (log.isDebugEnabled()) {
log.debug("desktopUrl: "+context.getDesktopURL(request));
log.debug("containerName: "+containerName);
log.debug("provider: "+ provider);
log.debug("targetprovider: "+ targetprovider);
log.debug("errorMessage: "+ errorMessage);
url = new StringBuffer();
url.append(desktopUrl);
url.append("?action=edit");
url.append("&provider="+provider);
url.append("&targetprovider="+targetprovider);
url.append("&containerName="+containerName);
if (errorMessage != null) url.append("&error="+URLEncoder.encode(errorMessage));
if (log.isDebugEnabled()) log.debug("errorUrl: "+ url.toString());
url = new StringBuffer(context.encodeURL(url.toString()));
errorUrl = new URL(url.toString());
return errorUrl;

Similar Messages

  • Stay on the edit page once saved and see the record as a table

    I like to click on the edit of an interactive report to go to the edit page.
    Once in the edit page, I like to see not only the form to edit the record but also
    the record as a table to see what the record looks like once the save button is clicked below the edit form.
    Thanks.

    Look at the page branches. There will be one or more which goes to the first page. Change it to go to the current page instead of the first page.

  • How to stay on the same page after submitting the Page to commit the row.

    I have a page where I am accepting a ket column from the users , Now I want to have to buttons where user can enter one row and click 'Create & Exit' which would them to the menu. But another button would be 'Create' that would create the row in the table would keep user on the same page , so he/she can enter more rows.
    My 'Create & Exit' button has settings in 'Actions when Button Clicked'
    Action - Submit Page
    Execute Validation - Yes
    Database Action - SQL INSERT Action.
    My 'Create' button has settings in 'Actions when Button Clicked'
    Action - Redirect Page in this application
    Page - 9 (Same page)
    Database Action - SQL INSERT Action
    When this didn'tr work
    I changed
    Set This items - All the variable from the table
    With These Values - All the variable from the page
    Still this doesn't work.
    I very new to APEX application.

    Here's an approach:
    Delete your existing Create button and then redefine it as a copy of Create & Exit.
    Then create two Page Branches, one that branches back to your Menu when the Create & Exit is pressed and another Page Branch that remains on your current page when the Create button is pressed.
    Jeff

  • Stay on the same page when applying changes

    I have a simple master detail form where we have master form and tabular detail on the second page. The first page has a master form in read only as per standard wizard creation. When I delete and or make changes to the detail the app by default commits and navigates to the master read only page 1. My requirement is to stay on the second page after every update or delete to the detail tabular section . Does anyone have any hints ?

    Look at the page branches. There will be one or more which goes to the first page. Change it to go to the current page instead of the first page.

  • Preflight keeps saying  "Unable to save the PDF File after post processing"

    I'm at a loss how to overcome this. Spent almost a whole day, together with another person, trying to fix it with no success!
    I use Adobe pro CC on a PC
    I usually receive pdf files from this one client who edits and formats a book in Mac Pages. Up until a few days ago I had no problems converting the client's pdfs into pdf/x3, but the last three versions of the latest file have stumped me.
    Just to test, I first just tried to convert the file (33MB), unchanged, to pdf/x3 using the save as other option - message reads  "the document has been saved, however, it could not be converted according to the selected standard profile: convert to PDF/X. Please use preflight with the profile "Convert to PDF/X" in order to identify those properties of the document which prevent it from being compliant to this profile"
    if I then choose under Profiles - convert to PDF/X3 - it says no problems found, and appears to have saved the file. If I try to save again as a pdf/x3, just to make sure, it then tells me it's not pdf/x3 compliant
    OK - so then I go back to preflight - and choose the standards function - then pdf/x3, then continue with the default colour profile. About halfway through the conversion, at the point of saving the file,  I get the message "unable to save the pdf file after post processing"
    So far I've had no luck figuring out what this is.
    I then choose the option of "verify compliance of ppdf/x3" - message reads "pdf/x3 version key (GTS_PDFXVersion) missing", and "Trapped key not true or false"
    Help!! How can I be sure the file converted / or not?
    kim

    Yes I was/am aware of Preflight's inability to play nicely over cloud technologies in certain cases, especially wrt Standards technologies, this will be partially addressed in an upcoming version of Preflight without saying too much.  But the same thing could theoretically have happened if the file was also located on another local network client or server.  Leaving aside the argument that this may violate the Acrobat User Agreement - since purchasing the software, the user agrees to employ its functionality on a single host system and precludes host-client-based scenarios - this simply is not a supported use, meaning the user may not have expectations that it will work at all, if the applications requirements are not observed.  There do exist server-solutions for Preflight files within networks, but Acrobat and by extension Acrobat Preflight is not one of those solutions, and (still) belongs in the single host-based desktop environment.
    However most (99.9%) functions within Acrobat <-> acrobat.com file exchange are supported, file syncing across multiple devices will soon be supported, but Standards compliance is still admittedly a problem at this point.  Some testing has been done using 3rd party cloud technologies starting with enterprise-based solutions, such as Office 365, and this will continue to ramp up to include other 3rd party products.
    As for the second point, Preflight will usually change the PDF version to be complaint, are you saying that it was unable to do so in this case?  It seems that this error should have popped up during the normal Preflight conversion attempt.  Personally I think solving a workflow problem using the print path is a little bit of a heavy-handed approach, but if helped and the results are acceptable, then that is good.  Since that path is non-existent on a Mac, as one needs to Save as Adobe PDF from the Print dialog's PDF drop-down menu, I am assuming your workflow involved file creation on a Mac, then further processing on Windows using the PDF printer.  I am wondering if a simple resave/Save As... to PDF with overwrite on a Mac, or Preflighting the file using a PDF version compatibility profile before the PDF/X conversion would have helped.  Since there are such a multitude of methods that a PDF can be created, there are also many ways within Acrobat that a user can shape the file to be compatible with the expected workflow, ie, 'many ways to skin a cat', without being morbid.

  • I have trouble with page turning, whatever page I turn to, it still stays in the same page.

    Well,  this is the first time that I use the Adobe digital edition, but after I open an e-book, I found that the page always stays in the first page unless I fullscreen it. Can anybody help me out?

    Sounds that you have some malware on your computer.
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

  • My macbook pro running lion will not boot . it stays on the grey page with the cog spinning. I have tried all methods of booting to no avail. I have removed the bottom and taken out the battery and the ram . will this affect my applecare warranty.

    my macbook pro running lion will not boot . it stays on the grey page with the cog spinning. I have tried all methods of booting to no avail. I have removed the bottom and taken out the battery and the ram . will this affect my applecare warranty. I had to try myself as I'm overseas for two months and nowhere near any sort of help .

    there was a recent software update that seemed to screw HDV up.  Do some searching here over the last month or 2 and you'll find a bunch of posts and some possible solutions.
    Worst case scenario, do as Shane suggests.  But might I suggest you take a look at the user tips section of the forum.  there are some great tips on how to prevent these sorts of problems by cloning your startup drive, etc.

  • Delete and stay on the same page!!!!

    Hi guys,
    As elaborated in the following Picture:
    http://www.9m.com/upfiles/PlT97853.png
    I have a report and a form on the same page. When press delete I want to delete the checked boxes and refresh "DOWNLOAD" region or stay on the same page.
    NOTE: "The Action" Of delete button is - Submit page.
    I hope my question is clear and look forward to get help.
    Thanks In Advance,
    Fateh

    Hi,
    Can you please create a branching statement under after processing, you can refer the same page itself. So after deleting process it will come to same page.
    Hope this might help you.
    Thanks & Regards
    Srikkanth.M

  • Get the subsequent page after login

    I would like to retrieve the content of site that required the login using userid and password via post method. I am able to login using HttpUrlConnection by setting method to POST providing the id and password. However when I tried to access the subsequent pages (after login) by issuing new HttpUrlConnection, it said I've not login. I believe this is something to do with cookies setting which is done internal by browser. If we login using browser, and type in the subsequent page, the browser will direct to the correct page. But in actual Java program environment, it does seem to be working this way. Can anyone help?
    thx.

    Show us the code, please.

  • Not able to get the login page after installing 12.1.1

    HI,
    i am not able to get the login page after installing in the 12.1.1. when i accessed from client machineo.Please help me in fixing out this problem.
    Thanks,
    venkat.

    Hi,
    What is the OS?
    What is the error message?
    Any errors in Apache/Database log files?
    Thanks,
    Hussein

  • Unable to  get the login page after upgrade from 11.5.10.2 to R12

    Hi ,
    We are unable to get the login page after upgrade from 11.5.10.2 to R12, all the services are up and running.
    Pls let me know if someone has come across this issue.
    Thanks&Regards,
    Apps DBA

    Hi ,
    After compile JSP files manually , now we are facing problem after logging.
    Error : You have encountered an unexpected error.
    Thanks&Regards,
    Apps DBA

  • HI .. PROBLEM IN SUBMITTING THE EDITED DATA FROM THE EDIT PAGE

    HI,
    I am having a Main form consiting of a af:table which is binded .. so when i select the row and click on "edit" button binded with the table.. i am able to get the respective data form in the Edit page.
    Now when i modify any data in the binded textbox ..... and when i submit the form the "row currency change error " is displayed...
    Plz help me how to solve this problem.....

    Hi,
    so you have a table, select a row and navigate to an edit form. Inhere you change the data displayed and press submit to navigate back to the table. On otn.oracle.com/products/jdev this scenario is available in the OBE (Oracle By Example) if you need a sample.
    What you should try is to open the pageDef file in the StructureWindow, select the iterator, e.g. DepartmentsIterator, that populates the table and open teh Property Inspector. Under "Refresh Condition" set ${!adfFacesContext.postback} to avoid the table being refreshed on JSF postback
    Frank

  • How to do that when you open a new tab to appear like the start page after opening the browser?

    How to do that when you open a new tab to appear like the start page after opening the browser?

    https://addons.mozilla.org/en-US/firefox/addon/newtaburl/
    Never used it myself, so I'm not sure if you can set to about:home or not. You'll have to give it a try.

  • When I open a link in a website it opens as a new window instead of just staying on the same page

    In any website, when I click on a link it opens in a new window.this even occurs in google when I click any of the results it opens in a new window instead of just staying on the same page.tabs work fine however, it is just links on websites.

    Did you check the search settings on the Google Search Settings page?
    * http://www.google.com/preferences?hl=en
    ''Where results open: Open search results in a new browser window.''
    You can set the browser.link.open_newwindow pref to 1 to open links by default in the current tab.
    *http://kb.mozillazine.org/browser.link.open_newwindow (3)
    You can set this pref to 0 (zero) to do this for all widows opened via JavaScript.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction (0)

  • How to disable the edit Permission after the task approval in project server 2010.

    Hi ,
    Can this be done.
    How to disable the edit Permission after the task approval in project server 2010.
    I mean How to Disable approve/Reject Permission Once task approved in project server 2010.
    Any Help Would be more than Welcome.

    Hi Rohan,
    Just talking about the tool capabilities, preventing a task approver (status manager) to approve/reject updates once he has already approved once is not possible out-of-the-box. You grant permissions to user: if you grant a user to approve task updates then
    he has the permission to approve updates, no matter if it is the 2nd or 3rd time the task is approved or rejected.
    Then of course you could do not custom development to do that.
    I'd say that in order to help you, we would need to understand a little bit more your business need. Why do you need to achieve such a goal? We can surely propose you workaround.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

Maybe you are looking for

  • Satellite Pro A120-144 - can I run Product Recovery from an external DVD/CD

    DVD/CD Driver is not working properly. Is it possible to run Toshiba Product Recovery CD from an external DVD/CD player?

  • Jtabbed pane problem + flags printout

    Hi, I am having difficulty displaying a JTabbedPane which is contained by a dialog. When I display the Dialog for the first time the Tabbed displays perfectly - anytime after that it disappears. I found this really strange so I put in some printout s

  • Re-trigger failed proxy message after certain time automatically in CRM

    Hi experts, Can anyone tell me if we can automate the process of re-triggering failed proxy messages in SAP CRM sxmb_moni, say after a certain period of time. Thanks Swapna .

  • Error when configuring HFM DCOM

    I am installing HFM on Windows 2003 R2 64bit 32GB RAM 8 CPU machine. It is in a domain and we are using a domain account that in in the local server's administrator group. We have also edit all the DCOM components related to HFM installation and manu

  • WLAN Problem 857W

    Hello, I am having trouble setting up windows workgroup over the wireless connection. All computers over the wireless connection can see each other but can't ping or access shared folder (network path not found) however the wirless connected pc's can