Submitting a specific form

Hi all.
i have a simple question.
Is it possible to submit a specific form form a commandbutton?.
I have a webpage with a menu and content on it.
I want to submit the form which i defined on the content component when i click on a menu button.
On a click on the button of the menu i want to submit "dossierForm" which is outside of the menu form.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<ui:composition template="/Template.xhtml"
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:a4j="http://richfaces.org/a4j"
     xmlns:rich="http://richfaces.org/rich">
     <ui:define name="title">Account</ui:define>
     <ui:define name="menu">
          <ui:include src="DossierMenu.xhtml" />     
     </ui:define>
     <ui:define name="maincontent">
          <h:form id="dossierForm">
          </h:form>
     </ui:define>
</ui:composition>
<?xml version="1.0" encoding="ISO-8859-1" ?>
<ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:c="http://java.sun.com/jsp/jstl/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:a4j="http://richfaces.org/a4j"
     xmlns:rich="http://richfaces.org/rich">
     <h:form id="menu">
          <div id="menuSpacer"></div>
          <rich:dataList var="action" value="#{dossierBean.actions}">
               <h:commandLink value="#{action.label}" styleClass="menuText"
                    action="#{dossierBean.menuSelection}" type="submit"
                    immediate="true">
                    <f:setPropertyActionListener value="#{action.methodBinding}"
                         target="#{sessionScope.selectedAction}" />
               </h:commandLink>
          </rich:dataList>
          <div id="menuSpacer"></div>     
     </h:form>
</ui:component>

That certainly submits a form, but remember that this is JSF; if you do manual meddling you can make the front-end state and the back-end state go out of sync and "weird" things will start to happen. Just open up the HTML view; you'll see that JSF generates large amounts of javascript tied to each button and link in the page. When you manually submit a form, the javascript behind the submit button is not invoked.
You should be doing it the JSF way; if there is no JSF way to be found (examining the properties of h:commandButton and h:commandLink is enough to draw conclusions) then you should be adapting the webapp design so it again conforms to how JSF works.

Similar Messages

  • Create printouts from data submitted in a form.

    Long story short:
    I'm looking to set up a system that automatically creates a document from data submitted in a form. So imagine I type "Jason" in the name field, "Orangutans" in the favorite animal field, and when I click print I'm presented with an A4/Letter document that says "my name is Jason and I love Orangutans" and the background is covered in cute orange apes. Where do I start?
    Long story long:
    I work at a computer store and due to my experience with Adobe products* I've been tasked with creating all the signage in the store. I've been doing all the signs for a year now and now we have a bunch of different signs that need printing every day. The most in-depth and time-consuming ones for me are signs for Trade-In computers. Unlike new computers, the specs are always different based on the particular model we buyback from the client. There are all kinds of fields that are different in each case.
    As it stands, I have an illustrator file with all the information in the right place, and when a computer comes in I take all the specs, fill in the right boxes and unhide the image layer so I get an image of the corresponding model on my document. This takes considerable time, and means the process is specific to me, i.e if I'm not in the store, the computers don't get put up for sale beacuse we can't add a spec/price sheet.
    What I want to do is automate the process so that anyone in the store can make these signs. All they will have to do is fill in a form (online or locally) that asks for model, year, RAM, HDD, etc**. Then when they click submit it returns a completed sign that they can print and put up next to the computer.
    I'm not entirely sure how to accomplish this. I've looked at Adobe's free online FormCreater***, and I like the simple data output that it creates. However, I'm uncertain as to my next steps. I imagine I'll need it to send the results to a computer with blank templates for the Trade-In computers. It would then need to populate the applicable fields and automate all the work I usually do.
    Where should I start? I'm willing to learn anything to get this working.
    Thanks,
    Jason
    *Illustrator, Photoshop, Flash, inDesign
    **Total of ~18 text and 4 image fields need to be changed per sign.
    ***http://www.adobe.com/ca/products/acrobat/form-creator.html

    I'm willing to learn anything to get this working.
    Excellent! Right attitude.
    Where should I start?
    With my favorite "graphics program": FileMaker Pro. (Yep. My favorite graphics-project tool is a relational database program.)
    You see, you've discovered something that graphics people are discovering with increasing frequency all the time: Your project is not a graphics problem. It's a data problem.
    Note how little of your problem has to do with graphics. Emphasis mine:
    ...we have a bunch of different signs that need printing every day.
    the specs are always different based on the particular model
    automate the process so that anyone in the store can make these signs
    All they will have to do is fill in a form (online or locally)
    an image of the corresponding model
    See if this scenario sounds appealing:
    You have on your computer a single file, named TradeIns. You or one of your authorized users doubleClick it. It opens to a nicely organized form that is completely self-explanatory; requires absolutely no training to use.
    It's completely idiot proof. The user doesn't have to know anything about any graphics program. He can't break anything.
    Consistency is maintained because everything that can be automated is. Dependency intelligence is built in. Popup menus limit data entries to legitimate choices (ex: Models). Subsequent data entry choices are automatically filtered based on data already entered (ex: RAM configurations limited to those possible for Model). User prompts and hints (highlighting, event-driven messages, tooltips, data validation, etc.) make sure that all required information is entered.
    When the data entry is done, the user clicks a button labeled Print Preview: A3 Poster. The display automatically changes to a pre-defined A3 formatted layout with all the data graphically styled (Headline, descriptive blurb, bullet list of features, price, etc., etc.), the company logo and contact info in place, and a graphic of the appropriate model appears in the background. The user clicks a button labeled Print Poster. Next to it, by the way, is a button labeled Email Poster To...
    If you want, you can enable up to five people concurrently to access and interact with the solution in their web browsers from anywhere. So the data entry can be performed by staff members who logon (according to access priviledges you define and control down to the individual field level if need be) in the office, from home, or even on their iPhone. Multiple users can enter/edit data at the same time.
    It's 2:00 Tuesday when Customer leaves with his new machine. You clean up his trade-in a little; put it on the display shelf. Pull out your iPhone and take a photo of it. Tap the specs in. The data, including the photo, are simultaneously entered into the database. You lock the door and go home at 5:00, confident that a formatted sales flier of "Just Arrived" trade-ins will be automatically emailed to your mail list before you get home.
    You, having admin priviledges, can add to, alter, elaborate upon the functionality (ex; add an automatic price calculator) anytime you need, with no downtime on the system.
    How difficult, time-consuming is this?
    Once the requirement details are nailed down, and the raw beginning data for populating values lists is provided, an intermediate level FileMaker developer could build the above-described solution and have it up and running, ready for data entry, in less than a day, easy.
    Cost? $500 for one copy of FileMaker Pro Advanced. That's it. (And...*achem*...it's not rented; it's a normal perpetual license.) And with it you can build an unlimited number of other data-driven solutions for your business. You can even bind them as fully-functional standalone applications which you can distribute without royalties.
    Based on what you've described so far, the solution's starting data schema would be very simple:
    Create a new database with three related tables:
    Models
    Trade Ins
    Specs
    The fields for each table would be something like this:
    Models
    Model ID (primary key; text; unique)
    Model Name (text)
    Brand (text)
    Image (container)
    Trade Ins
    Trade In ID (primary key; text; computer's serial number)
    Model ID (foreign key; text; value list)
    Specs
    Spec ID (auto-enter serial number)
    Model ID (foreign key)
    Trade In ID (foreign key)
    Spec Name (value list)
    Description (text)
    You'd have two Layouts (screens): Data Entry and A3 Poster. You could build as many additional Layouts to display whatever combinations of the data you want for as many purposes as you may encounter. Export to PDFs or Excel spreadsheets any time. Build automated reports with live graphs, use conditional formatting, automate with scripts, etc., etc.
    Marvelous program. Every business should have it.
    JET

  • How can I change the behavior of the Green Enter button when filling out a field in a form? Current it submits the entire form, I would like it to tab to the next field instead

    When using Firefox for Andriod:
    When filling out a field on a form, they keyboard has a Green Enter button that submits the entire form. However, there are multiple fields on the page, and I would like it to tab to the next field. At the very least not submit the form.
    Also, is there a way to configure the keyboard that shows up for each html5 input type?

    They keyboard that shows up has the large "Green Enter" go button, a backspace and some arrow keys, but no tab button.

  • How can know which user accessing specific form in ERP application

    Hi,
    In our organization we have ERP application that is developed based on Orace forms and reports 10g.
    My question is how can i know which user accessing specific form in ERP application based on their login.
    Please do the needful.
    Regards,
    M. Satish

    What I infer from your statements now, significantly different from your OP, is that you do not have any logging mechanism and now want to introduce logging with minimum effort.
    If that is the case you can add the logging code in your Menu(s), before the CALL_FORM/NEW_FORM. Fewer object(s) to modify, but roughly the same lines of code get added.
    Regards,

  • Billed 2X per Month for 16 Months - No Reply After Submitting 3 Contact Forms

    Like the title of my tread states, I am being charged twice a month, sometimes on the same day sometimes on different days, for my spotify service and its been happening for the past 16, yes 16, months! I am very annoyed because of one; the difficulty in trying to contact spotify and two; I have yet to receive a non-automated reply. I would greatly appreciate speaking to a spotify representative. I have submitted 3 contact forms and I have yet to receive a real response. Spotify, please contact me ASAP so I can be issued a refund for the overage charges I have been subjected to. - Zach Wummer

    Support usually replies within 24-48 hours.
    If you still have not gotten a reply:
    Did you get a confirmation email from the contact form? It should be similar to "Spotify Support Case #XXXXXXX". If so, reply back to that email and tell them you still need help.
    If you got an automated reply email telling you to check the help section or the community, you need to reply back to it saying you still need help, even if it's from a no-reply address.
    If you never got an email, look in your spam folder to see if there is an email in there. Make sure you are checking the email account you used to sign up to Spotify. You can check the email on your account here.
    If you still do not get a reply, let me know and I'll try to get support to reply back to you.

  • Handling multiple submits in single form with JSP

    HI,
    I need to handle multiple submits in single form in a JSP.
    <html>
    <body>
    <form action="/Compute" method="post">
    <input type = "Submit" value="Find"/>
    <input type = "Submit" value="Add"/>
    <input type = "Submit" value="Delete"/>
    </form>
    <body>
    <html>
    /Compute wld take the control to a servlet named ComputeController.java .
    In this servlet how should I distinguish which Submit has been clicked(Find or add or Delete).
    TIA

    Give the submit button a name. It will be sent as well, so you can see it in the request variables.

  • Submitting a PDF form and Error Message

    One of my users received the following error message when submitting a PDF form: "An error occurred during the submit process. The server has an invalid SSL certificate." Can anyone tell me what this error is and how do I prevent it?

    I have had the same error - we are behind a webfilter which is very tight
    can you please advise the domains i need to whitelist?
    many thanks
    Bruce

  • Form 11g - Is is possible to block specific forms access when user directly type form name in url ?

    Hi everyone,
    We have XXF000.fmb, XXF001.fmb , XXF002.fmb , XXF003.fmb in 6i.
    For migration to 11g , we recompile these forms and move fmx to 11g form server under form_path.
    In 6i , we login for validation & responsibilities control in XXF000, So we can use account info to verify if user have priviledge to access XXF001, XXF002 and XXF003.
    But in 11g , we can access these forms vial url request , such as : http://<host>:<port>/forms/frmservlet?form=XXF000   ; http://<host>:<port>/forms/frmservlet?form=XXF001  ... etc
    These may cause some unexpected access and operations in functions.
    Is is possible to block specific forms access when user directly type form name in url ?
    Thanks.
    Hendry

    You need to alter your formsweb.cfg file, either directly or through the Fusion web interface. You need to set the following parameters:
    #this sets the default form for your application
    form=yourmenuform.fmx
    #this stops these parameters being entered in the URL, seperate different parameters with commas
    restrictedURLparams=form,pageTitle,HTMLbodyAttrs,HTMLbeforeForm,HTMLafterForm,log

  • Clear Specific Forms Fields

    How can I clear specific forms fields without resetting/clearing entire PDF document, using a button - Can anyone help with the code?
    I am using Adobe Acrobat 6.0 Professional
    Thanks

    In Acrobat forms you can use the following JavaScript for teh "Mouse Up" action:
    var aClearFields = new Array(); // define array for field names
    aClearFields[0] = "FieldName1"; // first field name
    aClearFields[1] = "FieldName2"; // second field name
    // and so on for all the field names
    this.resetForm(aClearFields);
    // or
    // pass an array of strng names
    this.resetForm(["FieldName1", "FieldName2"]);

  • How to consolidate conutry specific forms in to a single form

    Hello,
    I have a requirement where I have to consolidate the country specific forms into a single form. Have country specific forms like France has its own form and US has its own form. How to consolidate these forms into a single form? What is the process?
    I appreciate your responses.
    Thanks,
    mp

    Hello,
    you can use the following way to include different languages.
    Create the Text elements in different languages.
    Then you can call them in your script by giving the language parameter.
    For example:- I have created a text object as ZHEX-MACRO-4MARKEN and then called with language parameter as below.
    INCLUDE ZHEX-MACRO-4MARKEN OBJECT TEXT ID ST LANGUAGE EN
    Thanks,
    Manish

  • How to regenerate specific forms via ADADMIN

    Hello
    How to regenerate the form FAXSUSTL via ADADMIN
    I know how to go to adadmin but theres a choices there
    please anyone can help me
    Thanks

    Hi,
    >
    I know how to go to adadmin but theres a choices there
    Run adadmin - 1. Generate Applications Files menu -- 2.Generate form files enter the values as folows:
    Enter the number of workers : ( give default values)
    Your current character set is "AL32UTF8".
    Do you want to generate Oracle Forms objects
    using this character set [Yes] ? ( give default values)
    Do you want to regenerate Oracle Forms PL/SQL library files [Yes] ? ( give default values)
    Do you want to regenerate Oracle Forms menu files [Yes] ? ( give default values)
    Do you want to regenerate Oracle Forms executable files [Yes] ? ( give default values)
    >Enter list of products ('all' for all products) [all] : FA ( here you need to enter FA)
    Generate specific forms objects for each selected product [No] ? yesThe current set of installed languages is: US
    Please select languages for generating Oracle Forms files.
    You may select all of the above languages, or just a subset.
    Enter list of languages ('all' for all of the above) [all] :
    You selected the following languages: US
    Is this the correct set of languages [Yes] ?
    Reading product form information...
    Selecting Oracle Forms PL/SQL library files and menu files to generate...
    Selecting library and menu files for Assets...
    List of libraries and menus in Assets :
    FAXCDB.pll FAXCORE.pll FAXFLDR.pll FAXGROUP.pll OFG4BSL.pll
    OFG4TEL.pll
    Enter libraries and menus to generate, or enter 'all' [all] : FAXSUSTILSelecting product forms to generate...
    Selecting forms for Assets...
    List of forms in Assets :
    FAEXDEPR.fmx FAXASSET.fmx FAXDPRUN.fmx FAXDTATH.fmx FAXDTCOM.fmx
    FAXINSUR.fmx FAXLPEAP.fmx FAXLSDET.fmx FAXLSSCH.fmx FAXMAABI.fmx
    FAXMACWA.fmx FAXMADDS.fmx FAXMADPA.fmx FAXMAMCH.fmx FAXMAMRT.fmx
    FAXMAMTF.fmx FAXMAPPR.fmx FAXMARCL.fmx FAXMAREV.fmx FAXMTDET.fmx
    FAXMTPUR.fmx FAXMTSCH.fmx FAXOLFIN.fmx FAXOLTRX.fmx FAXORIDE.fmx
    FAXPICMP.fmx FAXPIDEF.fmx FAXPIINV.fmx FAXPRRUN.fmx FAXPURGE.fmx
    FAXRXIRP.fmx FAXRXREP.fmx FAXSUAKY.fmx FAXSUBCT.fmx FAXSUCAL.fmx
    FAXSUCAT.fmx FAXSUCBD.fmx FAXSUCGU.fmx FAXSUDBR.fmx FAXSUDCL.fmx
    FAXSUDST.fmx FAXSUEXL.fmx FAXSUFYR.fmx FAXSUITA.fmx FAXSUITR.fmx
    FAXSULOC.fmx FAXSULUT.fmx FAXSUMET.fmx FAXSUPRC.fmx FAXSUPRX.fmx
    FAXSUSGR.fmx FAXSUSTL.fmx FAXSUWTY.fmx FAXULCBD.fmx FAXUPPPR.fmx
    FAXWHTIF.fmx
    Enter forms to generate, or enter 'all' [all] : FAXSUSTL.fmx -Rk

  • How do you bulk download all files submitted to the form?

    How do you bulk download all files submitted to the form?

    I'm using the fileReference code to pull it from my server
    but I dojn't understand how to specify that it needs to be saved as
    an mp3
    below is an example of the code:
    import flash.net.FileReference;
    var fileRef:FileReference = new FileReference();
    fileRef.addListener(listener);
    var url:String = "URL link here";
    if(!fileRef.download(url, "my audio.mp3")) {
    trace("dialog box failed to open.");
    }

  • Submitting a specific page on a PDF form to a different email address

    Hi
    I have a submit button on my pdf form that emails the completed form to myself. I was wondering if it is possible to send a speceifc page (for example page 2) to a differnt email address.
    Thank you

    The built-in PDF plugins of the browsers are usually quite bad when it comes to scripts, so I would say it will probably be the same. At least with Reader you know for sure what's going to work and what not. With those plugins it's a wild stab in the dark...

  • Elementary Problem With Submitting A PDF Form Via Email?

    Hello all!
    I'm brand new to creating forms with Adobe.  I have Acrobat X Pro.  I have created a form with multiple fields to fill in and placed a button at the top of the form.  Under button properties I selected the submit a form option under the actions tab and chose to email the entire pdf file.  Where it says enter a URL for this link I put mailto: and my email address.
    When I click on the submit button I choose the desktop application option as I use Outlook exchange. (that could be the problem?)  I click on the ok button and immediately get a pop up box that says "Either there is no default mail client or the current mail client cannot fulfill the messaging request.  Please run Microsoft Outlook and set it as the default client.
    I have no idea how to fix this issue or if I'm creating the submit form improperly.  My goal is to get an exact copy of the completed Adobe form emailed to the specified email address.  Any help would be much appreciated!
    Mike

    To answer some of your specific questions:
    2, 3. The submit form button needs to be on the PDF. You can either configure a Submit Form action or use the submitForm JavaScript method.
    4, 6: No to both questions. You can create the form in Acrobat. Such forms are knows as Acroforms, as opposed to XFA forms that are created with LiveCycle Designer. Acroforms have wider support.
    5: Yes, that's the method that's used when submitting to a web server. You have your choice of formats. The "HTML Form" option causes the form data to be submitted in the same format as an HTML form, so the same type of server-side code can be used to process the data. As Dave's tutorial shows, the server should return an FDF as the response, however, as opposed to HTML content.
    It's a mistake to try to embed the PDF in a web page. So much depends on the user's browser, PDF viewer, and how both are configured. PDF forms can be submitted directly from Adobe Reader/Acrobat, so it's not necessary for them to be viewed in a browser. Note that Adobe Reader for iOS/Android don't yet support submitting to a web server (apart from FormsCentral), but that's is supposedly being worked on.
    Since you mentioned digital signatures, be aware that for Reader users to be able to sign, the document has to be Reader-enabled, either with Acrobat Pro or LiveCycle Reader Extensions (which is not the same as LiveCycle Designer). Digital signatures in PDF forms are not yet supported on mobile devices. Also, you will want to submit the entire PDF, as opposed to just the form data, when submitting a digitally signed form.

  • Submitting a PDF form --- save and send completed PDF document?

    A small government site has a number of 'submittable' PDF
    form documents
    that they'd like me to include on the website. I am not very
    familiar
    with PDF forms in this way, and hope someone here can help
    sort out a
    few things...
    Can a PDF form be submitted so that
    a) the completed PDF doc is saved on the server (and renamed)
    b) a printable , completed PDF (looks just like the one they
    filled out,
    with all their values saved in the input boxes) is emailed to
    specific
    address
    c) the raw user data is saved to database (maybe a list of
    fields in one
    column of a db table, and a matching list of values in
    another? this
    would just be for backup in case the completed PDF did not
    save
    correctly to the server, or for later reference)
    We've looked at the standard Acrobat 'submit via email' and
    that won't
    cut it... that method appears to simply trigger a 'mailto'
    popup, with
    the pdf as an attachment. Our system needs to be automated
    via CFmail.
    None of these would handle any 'sensitive' information, the
    main
    concern, from their part, is people being able to submit the
    form and
    have both the city office and the recipient get a copy that
    prints just
    as if they had hit 'print' when filling out the actual PDF.
    Is all of this possible ??
    if so... any tips appreciated!
    Michael Evangelista, Evangelista Design
    Web : www.mredesign.com Blog : www.miuaiga.com
    Developer Newsgroups: news://forums.mredesign.com

    nobody?
    seems i can do some of this with 'cfpdfform'... looking into
    it but also
    seeking live examples/experience.
    Michael Evangelista, Evangelista Design
    Web : www.mredesign.com Blog : www.miuaiga.com
    Developer Newsgroups: news://forums.mredesign.com

Maybe you are looking for

  • Is there a limit to the number of Apple TV's attached to an iTunes Library

    I recently replaced 7 (seven) Version 1 Apple TV's with Version 3 Apple TV's and noticed that I now receive an error, "Cannot connect to the iTunes Library, ensure that you are on the same network, etc." on two of the Apple TV's. Shutting down iTunes

  • Automatic Purchase Requisition Creation in MRP run

    Hi, 1. I create a Sales Order for quantity 20 of main material MAT which has two sub-components - COMP1 and COMP2. The plant in which this sales order is being created does not have any stock quantitiy of the material or its sub-components. For quant

  • ITunes 10.5 randomly stutters when playing music

    Installed iTunes 10.5 last week to get new iOS for iPhone. I have a HP Pavillion notebook running WIndows 7 and have had no problem with iTunes before at all. Now, however, when I am playing music on iTunes little electronic glitches and stutters are

  • Can we attach Parking lots directly to the Arch.View

    Dear all, As per our client requirement we segregated separate master data for the Parking lots & garages.  So I want to assign the Parking lots directly to the Arch.view.  But its not accepting,  So I assigned the parking lots through the property i

  • How to Solve the Pain of Permissions???

    Hi, I asked this question a long time ago when I got my new G5, but never got a satisfactory answer. Only my wife and myself use our iMac G5, and we both want equal administrator rights, permissions, ownership, whatever you call it. I want to stop ha