Auto submit

hi i have a form where i retrieve info from. certain parts of the info are then appended to the url of which the url string is formatted accordingly. how do i
send the url string automatically without having to click on a some sort of button to url1 without the user being redirected to url1. ie the user must still remain on the page he/she was on

Aha, now I understand better.
What you could do, is to open the link (URL) in another window. That would be done by setting the target of the link to _blank. That way your application stays where it is. If you generate a page that closes itself, the newly displayed window vanishes. You would have to program your servlet to do this.
Alternatively, you could have an action associated with your link (use the Link Action component) and have that return null so you stay where you are, but in the action, create a new thread that issues a HTTPRequest to the URL you've got. This should be rather straightforward. Since the URL is opened in another thread, your application is not experiencing anything for this. The thread by the way can finish after the URL is openened.
But maybe there're other ways to handle this. I don't know to which extend this is required. Basically what you need is some asynchronous communication with your URL consumer. That could be a webservice, a JMS consumer.
With just JSF and some basic programming I guess my first two approaches in this reply are most straight forward.
Iwan

Similar Messages

  • Delete from wwv_flow_files after auto submit

    Hi,
    I have a situation in a file upload page (based on the How TO Doc), where auto submitting is done when an item (select list with submit) is used. We stored the uploaded file in a custom file and normally it works. But when the select list item is used before the submit button is pressed, then the file is automatically upload. (see posted topic Re: File Upload Submit Woes
    In this previously posted topic, Scott Spadafore described a workaround using a computation where to delete files from wwv_flow_files. I implemented it and it works fine, when auto submit is done. But when doing this, my doSubmit Process is not executed properly, this means storing the uploading files in a custom table fails.
    I think computation (after Submit) is done before validation and processing (after submit).
    Anyone any idea how to solve the problem (to delete file from wwv_flow_files after auto submit is done and to insert uploaded file in in a custom file when submit button pressed)?
    Conditional computation does not have "When no button pressed" condition or something like this.
    I'm searching for a solution to implement a computation (with deleting auto-submitted files from wwv_flow_files), but only when no submit button was used.
    Thomas

    Thomas,
    When a button is used, or a doSubmit submits the page, the "request" value is set and is available for inspection by computations, processes, etc. In your case, you cannot use the declarative "when button pressed" controls, but you can use built-in condition types that evaluate the request or you can code pl/sql expression conditions like :REQUEST = 'button name'.
    Scott

  • Auto-Submit On Change in DropDown List not working properly!

    Hi all,
    I�ve got a problem with a drop down list an a table with some rows on my page. The property "Auto-Submit on Change" is set for the drop down because the valueChange-method has to do some work when the user selects another value from the drop down.
    The problem is that after selecting another item from the drop down, the table fields don�t keep their values, which I had entered before I selected another item in the drop down. But: When I select an item again, suddenly exactly these values are set.
    Here my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{Page1.page1}" id="page1">
    <ui:html binding="#{Page1.html1}" id="html1">
    <ui:head binding="#{Page1.head1}" id="head1">
    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{Page1.form1}" id="form1">
    <ui:table binding="#{Page1.table1}" id="table1" style="height: 488px; left: 24px; top: 120px; position: absolute; width: 1376px"
    title="Table" width="1376">
    <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{SessionBean1.columnProvider}" sourceVar="currentRow">
    <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="field1" id="tableColumn1" sort="field1">
    <ui:textField binding="#{Page1.textField1}" id="textField1" text="#{currentRow.value['field1']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="field2" id="tableColumn2" sort="field2">
    <ui:textField binding="#{Page1.textField2}" id="textField2" text="#{currentRow.value['field2']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn3}" headerText="field3" id="tableColumn3" sort="field3">
    <ui:textField binding="#{Page1.textField3}" id="textField3" text="#{currentRow.value['field3']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn4}" headerText="field4" id="tableColumn4" sort="field4">
    <ui:textField binding="#{Page1.textField4}" id="textField4" text="#{currentRow.value['field4']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn5}" headerText="field5" id="tableColumn5" sort="field5">
    <ui:textField binding="#{Page1.textField5}" id="textField5" text="#{currentRow.value['field5']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn6}" headerText="field6" id="tableColumn6" sort="field6">
    <ui:textField binding="#{Page1.textField6}" id="textField6" text="#{currentRow.value['field6']}"/>
    </ui:tableColumn>
    </ui:tableRowGroup>
    </ui:table>
    <ui:dropDown binding="#{Page1.dropDown1}" id="dropDown1" items="#{Page1.dropDown1DefaultOptions.options}"
    onChange="common_timeoutSubmitForm(this.form, 'dropDown1');"
    style="position: absolute; left: 48px; top: 24px; width: 240px; height: 24px" valueChangeListener="#{Page1.dropDown1_processValueChange}"/>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    and the code of the valueChange-Method:
    public void dropDown1_processValueChange(ValueChangeEvent event) {
    getSessionBean1().getColumnProvider().commitChanges();
    List positions = getSessionBean1().getColumnProvider().getColumnList();
    Is there some explanation for this behavior or it�s really a bug in the way how the drop down is submitting the form? I would understand it when commitChanges is not working here because of auto submit on change (==immediate?). but once it works und once it doesn�t work!

    Hi There,
    Not sure what you mean. Have you tried Netbeans 6 yet. Do you see same behaviour in it as well?
    This might be of help to you
    http://www.netbeans.org/kb/55/dropdowncomp.html
    Thanks
    K

  • Auto Submit in Tabular form

    I have a tabular form in which I want a select list to auto submit. I have tried using OnChange but can't seem to get it to work.
    What would I need to change on this select list to get it to auto submit the tabular form for me?
    Thanks!
    Edited to add -- I have added this code to the element attributes of the field and it does submit but the LOV then returns blank.
    onchange="doSubmit('SAVE')"
    Edited by: mtuser on Nov 19, 2009 3:11 PM

    Hi
    How did you get it to work? I kind of have a similar issue. Thanks.
    Suni

  • Repository Service for Auto Submit for Approval

    Hi all,
    Can anyone help me with the creation of a Repository Service to auto 'submit for approval' any document created.
    My main problem is in two methods:
    1) removeRepositoryAssignment(IRepositoryManager mgr)
      In some samples, I saw always this code line:
      mgr.getEventBroker().unregister(this, ResourceEvent.CREATE_CHILD);
      But in my project the unregister method doesn't have that parameters
    2) received(IEvent event)
      I need some help to know what code should I put
    The remaining steps, I think I can handle by myself.
    Many Thanks,
    Luis

    Hi,
    1) make sure you use com.sapportals.wcm.repository.manager.IRepositoryManager, use the JAR (bc.rf.framework_api.jar from the \usr\sap\XXX\JCXX\j2ee\cluster\serverX\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.netweaver.bc.rf\lib folder) from the portal you are willing to develop to make sure you have the actual libraries.
    2) in this method you have to catch the events that creates the resource (ResourceEvent.CREATE_CHILD) - later you will see, that you have to handle also the CHANGE events and so on. When you have the event, get the resource - for CREATE_CHILD it is
    event.getResource()
    Now you can handle the submit for approval by yourself.
    Romano

  • Auto submit virtual form on change (not the whole form)

    If you tick the "auto submit on change" option of a drop down, it submits the whole form, thus all the required fields have to be filled. Are there any way to submit only the perticular virtual form on change?
    Thank you very much.

    I don't see the problem... Are the files being digitally signed? If not then there's no difference at all between submitting the form data and using it to populate a local copy of the file and submitting the entire file.
    It's technically impossible to extract a page from a PDF viewed in Reader.
    Another alternative: Split the file in two parts and put a link on the last page of the first file to the second part, which will contain only the page with the form fields. You can add a link and some text to the page saying that it is a continuation of the first document.

  • Auto submit trigger required validation

    I am using Jdeveloper 11g R (11.1.2.3) & weblogic 10 G
    In my pages I use JSF & Facelet
    In a page I have a field with Auto submit = true and another field with required = true
    When I a create a new record and add some thing in first field second field field required validation is also triggered
    Is that correct behaviour? any work around to fix it?
    Thanks
    Mohsen

    This
                <af:panelGroupLayout id="pgl1">
                  <af:inputText label="Name" id="it1" value="#{bindings.myName1.inputValue}" autoSubmit="true"/>
                  <af:outputText value="---#{bindings.myName1.inputValue}---" id="ot2" partialTriggers="it1"/>
                  <af:inputText label="Required" id="it2" value="#{bindings.myReq1.inputValue}" required="true"/>
                  <af:commandButton text="Submit" id="cb1"/>
                </af:panelGroupLayout>
    Works for me. As long as the required field is empty you can AutoSubmit the Name field without seeing an error.
    Timo

  • How to Auto Submit a Page Process or Page in APEX ???

    Hi All,
    I have a requirement to auto submit a Page in my Application after a certain time interval.
    When the page is submitted I need to call a PL/SQL process to insert data in base table.
    Research Done so far: I tried achieving it by using "<PRE><meta http-equiv='refresh' content="20;f?p=&APP_ID.:15:&SESSION.::&DEBUG.::P15_TRY:R:" /></PRE>" in Page Header.
    This tag does refresh the page but also clears the value of items on the page.
    I have added a PL/SQL process that executes On-Load page header. This process does executes but by this time value of items on my page
    is cleared, so no record gets inserted in table.
    Ultimate issue is How to set the item values and Submit the page automatically at certain time interval.
    Thanks in Advance,
    Pushpendra Tomar

    I think you should use a javascript setInterval() event to re-submit your page:
    If you include something along these lines into your page's HTML header attribute:
    <script>
      dtm_timeout = 300; // you need to specify the timeout in milliseconds
      setInterval('doSubmit("FOOBAR")',dtm_timeout);
    </script>where "FOOBAR" is your request (i.e. replace with the appropriate value);
    Edited by: JoelC on 25-Apr-2010 22:23
    Whoops! missed out the quotes!

  • Auto submit a form

    In my form processing pages, I have some values I'd like to
    pass as hidden form fields. On this page I create hidden form
    fields based on info defined in the URL. The fields are created and
    then a cflocation takes the user to the next page. Since everything
    on this page is automatic, is there a way to get the form to auto
    submit so the hidden values are usable on the next page? Thanks for
    the help!

    Session variables are simply variables that are 'remembered'
    for the duration of that particular user's session. So, when you
    have the value you want, you use <cfset session.yourVariableName
    = yourValue>. Then, for the rest of the session, you can call on
    that variable to use in your code.

  • PartialSubmit & Auto Submit

    Hi Friends,
    I am using JDeveloper 11.2.1.I need the samples for the both Auto submit and Partial Submit Properties usage with bean class.
    Thanks.

    AdfContext.getCurrentInstance.addPartialTarget(component)is the programmatic way of doing partialSubmit
    autosubmit will notify the components which is waiting for the current component to change. if you set autosubmit=true for a component that means the current component notifies other observers that the value has changed which will refresh the other components to refresh based on the values

  • Auto Submit the form..

    Hi
    I am developing an application where I run a timer using javascript..
    All I want is to auto-submit the form when my timer comes to zero..
    whenever the form is submitted I should get all the values from the HTML file..
    The user is given a submit button where in which the user can submit the form before the time runs to zero..
    How can I auto submit the form..??

    BalusC wrote:
    The forms[0] returns the first form in the document root. I'd rather to use the form name instead.
    document.formname.submit();
    I personally use getElementById() :)
    And by the way, isn't the 'name' attribute for form deprecated? At least, that's what an IDE I used to use kept displaying as a warning; I never bothered to actually look it up.

  • Problems with ADF auto submit.

    Hi,
    I am new to ADF application development and I face an issue while working with the auto submit attribute.Please help me if I am doing anything wrong. The scenario is as follows....
    I have a adf table where columns values needs to be entered by the user thorough LOV, inputtext box and checkboxes. For the sake off validation to occur while typing manually in the lov fields we have included auto submit in LOV field. We have set auto submit to true to other fields also to set the values as in while we change it since it was refreshing the values to it previous state/empty when the LOV field get loaded.
    Now the problem is that when I change value in a text field and without shifting the focus (the auto submit is not triggered yet), I click the check box (now auto submit is triggered for the input text box) to deselect/select. What happens is that the checkbox gets refreshed back to it previous state (since the change event for the input box is in progress when I clicked the checkbox).
    What I do have in my code when I debug is the getter setter methods in the viewRowImpl class for that table view object is called 5-6 times before it renders the page. I tried to figure it out by understanding the phases in the life cycle but I couldnt get it right......
    I like to add that i didnt implement any value change listener thinking it will increase complexity. Correct me if I am wrong.....
    So pls help me with these .
    1. how to make the checkbox persist even if I change it before the change event autoSubmit process is in progress for other fields.
    2. Why is the getter methods called 5-6 time before it get the page rendered ?.
    3. Is it a mistake I did implement the valueChangeListener to set the values.
    4. Finally is there any alternate way to implement the above scenario more efficiently.
    thank you.....

    Hi subu,
    I am sorry that have not got it right.... let me explain in with an example code.
    <af:table value="............"
    var="row"
    rows="..........."
    selectedRowKeys="........................."
    selectionListener="........................."
    rowSelection="single" id="t1" styleClass="SimpleTable"
    contentDelivery="immediate"
    columnSelection="none"
    disableColumnReordering="true"
    horizontalGridVisible="false"
    verticalGridVisible="false" dontPersist="ALL"
    partialTriggers="........................."
    autoHeightRows="5"
    binding=".........................">
    <af:column headerText="..............................." id="c6" width="45">
    <af:inputListOfValues id="bankTypeId" value="......" required="......" columns="...." autoSubmit="true">
    <f:validator binding="..............................."/>
    </af:inputListOfValues>
    </af:column>
    <af:column sortProperty="....," sortable="false" id="c3" width="75">
    <af:inputText value="....." required="....." autoSubmit="true" id="it23" >
    <f:validator binding="...."/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="PayableByBacs" sortable="false" headerText="......." id="c7" width="60" align="center">
    <af:selectBooleanCheckbox value="...." autoSubmit="true" id="sbc2"/>
    </af:column>
    </af:table>
    Now the when I change value in 'bankTypeId' (LOV) the other pre-entered values gets refreshed even though they have no partial trigger. So I have included the autosubmit to the checkbox and text field too.....
    Now the value stays when I change the LOV field value. But When I enter a new value in the text field (it23) and without shifting the focus I change the selectBooleanCheckbox value. It load for a second and the value gets changed to previous value.
    I think now I made myself little bit more clearer.... Pls do tell if there needs any more clarity.
    Thank you.......

  • How to enable auto submit true

    Hi to all
    How to set the auto submit true in adf, tel me process? and what happened it is true?
    What is parital trigger? where is is use?
    please help me ...
    bittu

    I would recommend you to go through the documentation.
    http://docs.oracle.com/cd/E16764_01/web.1111/b31973/af_ppr.htm
    -Arun

  • LOV filter - Auto Submit not working after the value is made to VS.filter

    JDeveloper 11.1.1.4.0
    I have cascading LOV filters for a table with fields id, deptid, projectName. The filters are for deptid and projectName. When I select a deptid, the projectNames belonging to that deptid should be populated. I have set Auto submit for deptid filter and partial trigger for project Name. So if I select a deptid and when I navigate to Project Name filter I get the list of project Names in the Project LOV filter.This worked fine as long as I didnt change the value for LOV to Vs.filtercriteria.deptid. Once I changed it the LOV filter for Project Names only got refreshed once I hit ENTER key after changing the value of Deptid. But I have to keep the value for LOV to Vs.filtercriteria.deptid. Other wise the records in the table after applying the filter values didnt function properly. I dont know whether the AutoSubmit does not work when the value is changed to Vs.filtercriteria.deptid

    duplicate post.
    Frank

  • Auto Submit option on calendar

    Try as I might, I can't get a calendar component to auto submit when a new date is selected....the auto submit option is ticked on the sub menu....the onChange code (common_timeoutSubmitForm(this.form, 'calendar1');) is there, but nothing happens in either firefox or internet explorer.....and I can't find a solution anywhere
    Any ideas??

    Hi Edwin,
    When I change a start date, I want to check if it is
    greater than end date and automatically change the
    end date to be the same as start.I'm not sure I understand. How are you changing the startDate? The current calendar requires one to choose a startDate and endDate in advance before rendering. So your app needs to decide what the interval should be and set the startDate and endDate in the init() or prerender() method. The page will then be rendered, then the user chooses a date and submits the page, then your app can then access the selectedDate property.
    I agree that the calendar is difficult to use. For one thing, I think the basic function of a calendar or date picker type component should be to choose any date at all. I think we need a new calendar component to solve this problem and to fix a number of other bugs with the current one. So the best I can do is to offer some workarounds.
    BTW, as part of my component authoring work, I am developing a sample DHTML calendar that does solve some of these problems. It could be the basis of an improved popup calendar. I hope to publish it soon.
    >
    I have tried several javascript onchange event and
    this never gest fired. The onclick works, but not
    want I want.OK, I don't remember what I tried before.
    >
    Setting auto-submit to on never fires the calendar
    validate or valuechange events.Yes, auto-submit does not work, but does it need to? I can't think of a common use case where a user selects a date and it would automatically submit the page. I've surveyed several calendar components on the web and do not see any with an auto-submit feature. Is it not possible to add a submit button to the page next to calendar.
    Thanks for your feedback.
    -Edwin
    Creator team
    http://blogs.sun.com/edwingo/

  • Is there a way to auto-submit numbers for a Text Entry Box and allow for commas or no commas?

    During a software simulation, the user can enter either 20,000 or 20000. Both are acceptable. Is there a way to validate both as acceptable answers and auto-submit? Using version 8.

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

Maybe you are looking for