Submit a form in a region

Hi,
I've got a struts based portlet in a web provider with a jsp building an html form.
I do need to submit this form inside the region with the portlet, not in the whole window.
I've put the line < inlineRendering >true< /inlineRendering > (without spaces) at provider.xml
I've tried to submit directly with a submit button, with a javascript function which submits the form, with another javascript function, this one making a location.href,... No way, just building at the "href" the url with struts taglibs.
Does anybody know how to submit inside the region smartly?
Thanks a lot.

Hi,
If you are trying to do Form based inline rendering, then it is not supported by PDK URL Based Portlets. PDK URLBased portlets, support inline rendering of links only and not forms.
For your application, you can try using iFrame portlet.
Sriram

Similar Messages

  • Call submit request form

    Hi,
    In my custom controller, I want to call the submit request form,
    and pass a specific request id in order to open a XML Publisher report I created.
    I am using the following code:
    com.sun.java.util.collections.HashMap parameters = new HashMap();
    String url = "OA.jsp";
    parameters.put("akRegionApplicationId", "0");
    parameters.put("akRegionCode", "FNDCPPROGRAMPAGE");
    String id = "" + V_Request_ID + "";
    parameters.put("requestMode", "DEFERRED");
    parameters.put("requestId", id);
    pageContext.setForwardURL(url,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    parameters,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    But my page is not redirecting...without giving any errors...
    Any ideas ?
    Thanks
    Edited by: costas on 29 Μαρ 2011 11:31 μμ

    Hi,
    I used OA.jsp?akRegionCode=FNDCPREQUESTVIEWREGION&akRegionApplicationId=0
    and I'm getting the following error:
    oracle.apps.fnd.framework.OAException: No data found for region (FNDCPREQUESTVIEWREGION).
    Thanks

  • My safari is blocked. When I press a window comes up sasking Are you sure you want to submit this form again and it will not let me cancel or submit

    My safari is blocked. When I press a window comes up sasking Are you sure you want to submit this form again? and it will not allow me to cancel or submit

    These are your options:
    1. Restore the iPhoto library from the most recent backup that predates the issue.
              Advantages: Always works, if library damage is causing the problem and the backup is intact.
              Disadvantages: Impossible if you don't have a backup. All changes made since the backup are lost.
    2. Repair or rebuild the library. Be sure to back it up first.
              Advantages: May solve the problem with no loss of data.
              Disadvantages: May fail. May take a long time if the library is large.
    3. Scavenge the library with a third-party application called "iPhoto Library Manager," which you can find in a web search. From the application's menu bar (not the iPhoto menu bar), select Library ▹ Rebuild.
              Advantages: All images should be preserved.
              Disadvantages: All books, calendars, and slideshows will be lost.

  • Unable to get the "Submit a form" action working with Webmail: Gmail

    I am attempting to create interactive PDF forms for the website which the end user will email back once filled out.
    I have added a link to the form that runs the "Submit a form" action, this appears to work if you have a mail client installed, but if you specify Webmail "Gmail", the system appears to start the process with:
    First asking you for the email account details to add
    You are then asked to allow Adobe Acrobat permissions to your access your email account
    It then attempts to create a draft message but fails with:  "Error while creating message ..."
    NB: I have logged into my Gmail account on the client PC and I am able to send emails.
    Any ideas if this has a known problem and if a fix is available, without a fix it makes interactive PDF's a bit pointless?
    Message was edited by: Neil Newman

    Hi Aniket,
    To the Clusters .. do you mean at the j2ee engine side?can you please give me info in detail
    Thnx for valuable inputs
    Vijay
    Message was edited by:
            NR

  • Sharepoint 2010, InfoPath 2010 with Custom Workflow. Error Message: InfoPath cannot submit the form. An error occured while form was submitted...

    I have created an InfoPath form that submits to a Sharepoint library with custom workflow attached. The workflow is initiated when the user submits the form. An email is sent to the supervisor who clicks the "Encoded Absolute URL" and approved
    the form via the emailed form. Then, based on certain criteria the form is either emailed to the VP or the workflow is complete. The VP is sent an email and clicks the "Encoded Absolute URL" and sumbits the form via the emailed form. This is
    how I would like it to work. The reality is, the form submits and is emailed to the supervisor and the supervisor is able to approve but when the form is sumbitted I get an error. The error is "InfoPath cannot submit the form. An error occured while
    this form was being submitted. The form cannot be submitted to the following location: <URL> The file <URL> is checked out for editing by <me> The operation completed successfully." The operation did not complete successfully and it
    is not checked out. I have read in previous posts that the file is locked. Since I am in the testing faze of the project there is no one else using the form. I have waited 24 hours and the lock has not been released. Please help!!! My deadline is growing short.

    I ran into your post while having a similar issue.  I don't have a 'full' fix for you, but I noticed at least in our case if you made sure you opened the Infopath form through the browser instead of the client Infopath program (use the drop-down menu
    and open in browser) the error doesn't occur.  Hope that helps some....

  • Error message when i try to submit a form?

    Certain users are receiving the following error message when they try to submit their form.
    Can you help explain what the issue is, and is there a fix in place?  Many thanks!
    This form is linked to Innovation Showcase at Partner Briefing at Summit, so we need to get this fix ASAP.
    Any guidance community members can provide is greatly appreciated!
    An error has occurred.
    There was an error communicating with the server. Please try again later.
    [ref: nxh9wbB5YgOyoERrSKDtA, serverUnknownError]

    cid:[email protected]
    From: Josh_Corey [email protected]
    Sent: Thursday, November 07, 2013 12:29 PM
    To: Whaley, Magean
    Subject: I get an error message when I try to attach a file.  Why is this?
    Re: I get an error message when I try to attach a file. Why is this?
    created by Josh_Corey<http://forums.adobe.com/people/Josh_Corey> in FormsCentral - View the full discussion<http://forums.adobe.com/message/5824088#5824088

  • How to submit a form with checkboxes in a page flow?

    I'm having some trouble with a form that contains several checkboxes, and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean, can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

    I am new to this, but I think this may solve your problem:
    I am not sure if this is what you are looking for, but you can create a LinkedHashMap
    with the req key/value pairs in the page-calling action in the pageflow and then
    pass that via a getRequest().setAttribute("myCheckboxes",myCheckboxHashMap);
    You can then access it in code using the optionsDataSource portion of the netui:checkBoxGroup
    - ie
    <netui:checkBoxGroup dataSource="{actionForm.thisCheckbox}" optionsDataSource="{request.myCheckboxes}">
    Hope this helps!
    m
    "Craig Coffin" <craig+1268fbec@nfld-dot-com> wrote:
    I'm having some trouble with a form that contains several checkboxes,
    and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an
    XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give
    me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean,
    can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

  • Cannot submit pdf form online

    the problem seems to be that the interactive pdf form that used to open within the browser is now opening outside the browser (both IE8 and Firefox) as a temp file so I can fill it out but when I hit "save for later" or "submit" I get the adobe error "error opening url to submit this form". What setting has gotten set incorrectly? I have been using this site for years with no problem up until recently.

    the problem seems to be that the interactive pdf form that used to open within the browser is now opening outside the browser (both IE8 and Firefox) as a temp file so I can fill it out but when I hit "save for later" or "submit" I get the adobe error "error opening url to submit this form". What setting has gotten set incorrectly? I have been using this site for years with no problem up until recently.

  • Acorbat Reader users cannot submit my form to me

    I created a form for use by the nine members of my brokerage team. Some people have Acrobat Standard; but some only have Reader. It seems as if the Reader users are unable to submit the forms. When the Reader users click on the button to e-mail the form back to me, they get an error message saying "This operation is not permitted."
    I have looked for solutions online, but cannot find any that fit this situation, given the versions of Acrobat that are being used: Pro XI (used by three of us with Creative Cloud), Standard X, Reader (multiple). The solutions that have been posted involve making changed within the Registry; and those solutions that do not involve the Registry make suggestions for setting changes within Pro that don't even exist in my version of Pro XI. (Go figure.)
    It would be really nice to get this issue resolved once and for all. If anyone has any recommendations, I would love to hear them.
    Cheers!

    You don't need to change the registry. It sounds like the form is set up so that the entire PDF is included in the submit, instead of just the form data. For this to work with Reader versions prior to 11, the document needs to be Reader-enabled, since Reader otherwise is not able to save a filled-in form. This won't be needed if Reader 11 is used since it is able to save a non-enabled form (AcroForm, not XFA).

  • Manually submit a form without using javascript?

    i'm trying to automate registration of a site by using java (no gui). However there is no direct submit button or form.submit() present in its registration url. Checked the javascript codes and it opens a window, and checks if the window opener is present .
    if (window.opener && !window.opener.closed)
    window.opener.document.theForm.submit();
    window.close();               
    }Is there a solution for this problem?

    I'm trying to access an http url (not mine).
    (1) By setting post variables , I can retrieve the html of the url as string. Here's the code.
         static String getHtml(String url_nm, HashMap variables)
              String html = "";
              String data = "";
              boolean firstRun = true;
              if (variables != null)
                   Set keys = variables.keySet();
                   Iterator iterator = keys.iterator();
                   while (iterator.hasNext())
                        if (firstRun)
                             firstRun = false;
                        else
                             data += "&";
                        String name = iterator.next().toString();
                        try
                             data += URLEncoder.encode(name, "UTF-8") + "=" +
                                  URLEncoder.encode(variables.get(name).toString(), "UTF-8");
                        catch (Exception e1)
              try {
                 URL url = new URL(url_nm);
                 URLConnection conn = url.openConnection();
                 conn.setDoOutput(true);
                 OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
                 wr.write(data);
                 wr.flush();
                 BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                 String line;
                 while ((line = rd.readLine()) != null) {
                      html += line;
                 wr.close();
                 rd.close();
             } catch (Exception e) {
                  e.printStackTrace();
              return html;
    [/code
    (2) The problem is even if i set the post variables, i cannot submit the form since the form can only be submitted if i was actually browsing it in a web browser. The html displays a window where the actual submit  form is set (as you can see in my later post) .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Is there a command to Submit a form from a custom button?

    I am going to add a custom button to allow the user to click on the button to Print the form.  I have found the example code of how to do this.
    My question is as follows:
    Is there a command I can add to a custom button to Submit the form after it prints?
    I want the submit to be automatic after they print using my custom "Print" button on the form.
    Thanks so much,
    Susan

    Here is who you would do this :
    1) Import your PDF in FormsCentral
    2) Save the Submission Enabled Form from the Distribute Tab
    3) Open the PDF in Acrobat XI
    4) File > Save a Copy...
    5) Open the copy in Acrobat XI
    6) Tools > Forms > Edit
    7) Find the Submit button on the form right click on it to show the properties dialog
    8) Go to the Actions Tab
    9) Select "Run a Javascript" and click on the "Edit" button
    10) Add the this.print() javascript line to the button's javascript
    11) Close the dialog with "OK"
    12) Close the property dialog with "Close"
    13) Click on "Close For Editing" (top right corner in Acrobat XI)
    14) File > Save as Other... > Reader Extended PDF > Enable More Tools (includes form fill-in & save)...
    15) Test your form (make sure it submits to FormsCentral without errors)
    Hope this helps
    Gen

  • Opening a Word document in a form layout html region

    Hi all,
    In an Interactive Report I use
    select '<img src="#WORKSPACE_IMAGES#'||package.f_get_document_type ( doc.id )||'" title="Document" width=20 height=20>'
    ) document
    from table
    to show an icon that eventually downloads (and shows) a word document.
    Now I have a form layout html region and I want to have the same icon\link to show a document.The document however is not in the same table as the rest of the page is based on.
    How can I show the document on this page?
    Kind Regards,
    Maurice
    Environment = Apex 4.0 database 11G
    Edited by: maurice.niezen on Aug 31, 2010 2:10 AM

    One way, create a hidden item, and return the value into it from your package (by having a computation that calls the function package.f_get_document_type(:P1_DOC_ID) . Let's say it's called :P1_DOC_TYPE
    There's a new item type in Apex 4, which is Display Image.
    When you get to settings in the item creation wizard, specify what the image is based on. From there, you can set it to be 'Image URL stored in Page item Value. Then on the source page, you can just specify the URL, #WORKSPACE_IMAGES#&P1_DOC_TYPE.

  • Problem using javascript to submit jsf form, values not submitted

    Greetings!
    I have a t:selectOneMenu where I want the page to be submitted when they change the selected value. At this point, I am able to get the form to submit and reload the page, which is all fine. The problem is that none of the values from the page are not set in the backing bean. I have break points on the setter methods that are not being hit.
    I have tried a number of things from searching multiple forums, but here are snippets from my latest version...
    <h:form>
    <t:commandLink id="hiddenLink" forceId="true" value="test link"
    action="#{pc_PageX.doBtnHiddenLinkAction}"></t:commandLink>
    <t:selectOneMenu id="pageList_top" forceId="true" value="#{pc_PageX.ValueX}"
         onchange="jspellSync(); submitPageX();">
         <f:selectItems value="#{pc_PageX.ListX}" />
    </t:selectOneMenu>
    </h:form>
    function submitPageX(){
         var hiddenLink = document.getElementById("hiddenLink");
         hiddenLink.click();
    }Note that the <t:commandLink> is not hidden, though it will be in the final version if I can get this to work.
    If I click the commandLink myself, the page is submitted with all the page values as expected. If I change the list value, thus using javascript to fire the commandLink's click event, the page is submitted with NO values.
    Can anyone come up with an explanation for this behavior? Or better yet, a solution?
    A couple other things I've tried...
    - Not using a commandLink and using jsf's submit function -> onchange="jspellSync(); submit();"
    - Clicking the link using other ways -> hiddenLink.fireEvent('onclick');
    If all else fails, I'll just add a button that they have to click to submit the form.

    snotmare wrote:
    BalusC wrote:
    I recall this problem in one of the ancient JSF versions. Which JSF version do you use? Do you have any room to upgrade to latest? We're using an IBM implementation of JSF, which is at version 7.0. The IBM implementation appears to be built on the JSF base 1.1.That's not an IBM JSF implementation, they do not have any one, they just have some component libraries which runs on top of some JSF implementation. RAD/WSAD ships by default with Sun JSF RI. Try upgrading to at least 1.1_02 which you can download from the aforementioned link. There's a gap of 2 years (and inherently a lot of bugfixes) compared to 1.1. If the application server used supports Servlet 2.5, you could even upgrade to the latest 1.2.
    We've had other issues with the IBM implementation, which could be the cause in this case too. We've been talking about switching to MyFaces, but there is one feature of the IBM version that we like. It's basically a script collector (hx:scriptCollector) that allows us to do pre-processing on the page.As said before, IBM does not have a JSF implementation. So replacing RI by MyFaces wouldn't make any difference.

  • [SOLVED] Using wget to submit a form

    Edit: Figured out I was using the wrong URL and needed some necessary POST/GET data I wasn't filling out.
    Hm, I am trying to be able to submit a form using wget. I am able to actually put data in <textarea> like I want, but I fail to submit it through wget.
    I was able to login to the site by cheating a little bit. I came up with two methods to do it, the first one is easy which is just going to ~/.mozilla/firefox/<xxxx>/cookies.sqlite, and converting it to a *.txt. Easy. Or you can do it the slightly more complicated way by going to page you want, typing the url bar javascript:document.write(document.cookie); document.close(); and manually create the cookies.txt file using the information from that. Anyhow, that is how I am able to go into the site without having to submit my username/password in the first place (I kept failing to do that, it didn't even return the page with my username and password typed in like what's going on below). Anyhow, now I am stumped at actually submitting the post I want to. I execute:
    wget --cookies=on --keep-session-cookies --load-cookies=cookie.txt --post-data="Post=test" http://www.url-to-the-site.com/
    and the end result is:
    ^This is what wget returns and what it looks like when I open it in Firefox.^
    Which is what it returns. I checked the website and it didn't post it (I expected that since it returns that and not the post itself). I know you can't see it in the image there, but there is a submit button at the bottom of the page.
    The form looks something like this (stripped down):
    <form action='<url of website>' method='post' name='REPLIER' onsubmit='return ValidateForm()'>
    <input type='hidden' name='act' value='Post' />
    <input type='hidden' name='s' value='xxxxxx' />
    <input type='hidden' name='f' value='24' />
    <input type='hidden' name='auth_key' value='xxxxxx' />
    <input type='hidden' name='CODE' value='09' />
    <input type='hidden' name='t' value='41457' />
    <input type='hidden' name='p' value='514135' />
    <input type='hidden' name='st' value='0' /><br />
    <input type="submit" name="submit" value="Add Reply" tabindex='4' class='forminput' accesskey='s' />
    <input type="submit" name="preview" value="Preview Post" tabindex='5' class='forminput' />
    </form>
    Any idea?
    **Meh, in my experience of posting here, helpers/answers/whatever usually like an answer of why I have to do this the difficult way instead of just going there and posting myself in the first place (after all, it might help you answer the question). Well, we are playing a little game in there and I wrote a little script that keeps track of the points in the game... It makes a nice little pretty table that I use cron to update every hour, but then people have to wait until I actually post the table to see how they are doing in the game. So... I'd like to have it automatically post each update.
    Then I have a second use: If I am able to successfully post this, I am trying to get into a class at college. I already wrote a script that detects whether there is available space or not in the class. I'd like to be able to have it monitoring for an open spot in the class and if so... to check it [x] and submit so I can get in the class without having to sit at the computer refreshing all day hopelessly.
    And plus I learned programming, how to use so much utilities to do whatever... why stop now?
    In advance, thank you for taking the time to help me with this.
    Last edited by Aprz (2009-12-05 11:25:51)

    have you considered using curl? Submitting forms in curl is very easy. and saving cookies is easy as well.
    for example:
    curl -s -D lccookie -d "login=$login&password=$password" http://somepage.com/index.php?
    to log in (which also is submitting a form), and
    curl -s -b lccookie -e http://somepage.com/index.php --data-urlencode "EntryEffect%3A=$entryeffect" --data-urlencode "ClosingEffect%3A=$closingeffect" --data-urlencode "Color%3A=$colour" --data-urlencode "messagefield=$OPTARG" -d "Submit=Submit" http://somepage.com/index.php?
    to reuse the cookie and submit a form. (This is from a script I wrote that sends formated messages to a page which shows them on a ledbar.)
    Last edited by Shapeshifter (2009-12-03 14:09:36)

  • Using CFHTTP to submit a form directly to a google docs form

    Ok so here is some background
    Google has a service where you can create forms using google docs and embed them into your webpage, Results are automatically stored in a google spreadsheet upon submission.
    I want to use my own form to submit to to the google form processing page which I can get to work however the default generic google hosted thank you page appears upon submissing.
    I know you can use cfhttp to submit a form from a coldfusion server so I was thinking that I could simply pass my form variables to a action page that resubmitted them via cfhttp and thus bypass the thank you page altogether
    however when I try this it does not work and the results do not show up in the google spreadsheet. I figured that mabye the google processing page could tell that it was not submitted from a browser so I tired adding a useragent string but still no luck.
    Here is the code I was trying to use
    <cfhttp method="POST" url="https://spreadsheets.google.com/formResponse?key=tlo4FjygqMuUGmvuOb2_Gjw" redirect="yes" useragent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.2; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)">
         <cfhttpparam type="Formfield" name="entry.0.single" value="testValue1" >
         <cfhttpparam type="Formfield" name="entry.1.single" value="testValue2" >
    </cfhttp>
    And the online spread sheet can be viewed here
    http://spreadsheets.google.com/pub?key=tlo4FjygqMuUGmvuOb2_Gjw&single=true&gid=0 &output=html
    Does anyone know why this is not working?
    To recap I am able to use the following form on my own comptuer to directly submit to the processing page and this works
    <form action="https://spreadsheets.google.com/formResponse?key=tlo4FjygqMuUGmvuOb2_Gjw" method="POST">
    <input type="text" name="entry.0.single" value="" >
    <input type="text" name="entry.1.single" value="">
    <input type="submit" name="submit" value="Submit">
    </form>
    Any help would be greatly appreciated

    YES!!!!!!!!!!!!!!!!!!!!!! This did it final code is as follows thanks for you help
    <cfhttp method="POST" url="https://spreadsheets.google.com/formResponse?key=tlo4FjygqMuUGmvuOb2_Gjw" useragent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.2; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)">
         <cfhttpparam type="Formfield" name="entry.0.single" value="final test">
         <cfhttpparam type="Formfield" name="entry.1.single" value="final test">
          <cfhttpparam type="Formfield" name="submit" value="Submit">
    </cfhttp>
    Man this is great! and has eliminated half my database requirements! now only if you could pull the results back out!

Maybe you are looking for