2 forms in one page and same backing bean

Hi,
Can I use the same backing bean to handle 2 forms in the same page?
I have something like
<h:form id="form1">
<h:commandButton action="#{myBackingBean.doForm1}" />
</h:form>
<h:form id="form2">
<h:commandButton action="#{myBackingBean.doForm2}" />
</h:form>
When I click the first button, "doForm1()" is invoked. But when I click the second button, "doForm2()" is not invoked!!!
What do I do wrong here?
Thanks!
Qingtian

Hi user11969500,
If you are using same item names in the multiple forms in a page you will definitely get the error.
Create forms in separate pages you can display those forms in a page using iframe or frames concept
Thanks and Regards
Maheswara

Similar Messages

  • Cant multiple JSF Forms post to same Backing Bean?

    Wondering why cant i have two jsf forms (for example : Create & Update jsf form) post to same backing bean using value binding technique

    I have one more question
    Cant i have single JSF form post to multiple backing beans even this doesnt work for me
    Please not backing bean is in session scope in both the cases

  • How to print 20 lines in one page and remaining lines in another in script?

    Hi I created 2 pages in script for page1 next page is page2 , how i can print 20 lines in one page and remaining in next page plz send me the code for that and is windows same for 2 pages?...

    Hi Krishna,
    Try below code...
        CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          form                              = form.
        CALL FUNCTION 'START_FORM'
        EXPORTING
         language               = sy-langu
         startpage              = page1
      LOOP AT itab.
        count = count + 1.
        item = count mod 20.
        IF item EQ '1' AND count NE '1'.
           CALL FUNCTION 'END_FORM'.
           CALL FUNCTION 'START_FORM'
           EXPORTING
             language               = sy-langu
             startpage              = <b>page2</b>
        ENDIF.
       "write_form statement ....
      ENDLOOP.
    Message was edited by:
            Hikaruno

  • How to change/update one page and all others at once?

    I'm quite new to Dreamweaver. I am trying to add some things to my sidebar and I would like it to appear on all of my other pages. I used a template for the index(homepage) then I just saved the page so I could create other pages for it to have the same logo and such on those pages. So how do I go about editing one page and all others at once?

    If you used DW Templates to create your child pages, open your .dwt file. 
    Make changes to the sidebar.
    Save and populate changes to child pages.
    Unfortunately, making changes to child pages will not populate to other child pages.  Only the master template.dwt in DW can populate changes across to child pages.
    Nancy O.

  • My hp 4580 "all-in-one" scans one page and then ... "scanner failure - recyle power and try again"

    HP 4580 "all-in-one"  scans one page and then ... "scanner failure - recyle power and try again" 
    Not ONE time but, EVERY Time !    WHY ? ! ?

    Were you able to make a copy? Just to make sure that there is nothing wrong with the hardware.
    Thanks.
    I do work for HP. But i speak for myself.
    Click the Kudos star as a way to say "thank you" for helpful posts.
    Be sure to come back and click the 'Accept as Solution' button on the post that solved your issue - it may help someone else.
    For more information you can always check the RULES FOR PARTICIPATION

  • How do I make a "yes" or "no" radio button in one page, and "mirror" the two to another page?

    Hello,
    How do I make the radio button in page 10 mirror the choice made at page 3? Thank you.
    Page 3:
    Page 10:

    Simply copy the fields from one page and paste them in the other. Just make
    sure you tick the option that says "Buttons with the same name and choice
    are selected in unison" under the field's Properties, Options tab.

  • How to set cookie value in one page and retrieve in another page using setA

    How to set cookie value in one page and retrieve in another page using setActionListener?
    I have tried with following code srcpage.jspx->destpage.jspx
    srcpage.jspx
    <af:table value="#{bindings.DepartmentsView1.collectionModel}"
    var="emp" rows="#{bindings.EMPView1.rangeSize}"
    first="#{bindings.EMPView1.rangeStart}"
    emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
    <af:column sortProperty="EmployeeName" sortable="false"
    headerText="Cookie Testing">
    <af:commandLink text="#{emp.EmployeeName}" action="success">
    <af:setActionListener from="#{emp.EmployeeName}"
    to="#{cookie}"/>
    </af:commandLink>
    </af:column>
    </af:table>
    espage.jspx
    <af:outputText value="Test Cookie Value: #{cookie}"/>
    ,Here Test Cookie Value prints the following instead of its original String value
    {JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
    I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
    Thanks in advance
    Kalee

    Hi,
    "cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
    #{cookie.cookieName}
    Note that #{cookie} writes to and returns a map
    check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
    Frank

  • How do I make an uploaded document like an order form work in pages and how do I save it to a bookmark

    How do I make an uploaded document like an order form work in  pages and how do i bookmark it for later use

    Pages can work with Word documents. It can save the results as either PFd or Word documents.
    Allan

  • How do I  take four pages on one page, and give them each their own page?

    How do I take four  images on one page, and put them on their own page?

    You need a unique AppleID for each iCloud account.  So grab some free gmail, hotmail, aol, yahoo or whatever email addresses to make five new AppleIDs.  Now, everybody make an iCloud account for themselves, and keep the existing shared AppleID and password just for use in the iTunes and App Stores.  You can also each use your own unique AppleIDs to make iMessage accounts and keep those separate as well.

  • My bookmarks disappeard one night and then back the next. Now contacts are showing up that I deleted months ago.  Does anyone know what is going on? Thanks!

    My bookmarks disappeard one night and then back the next. Now contacts are showing up that I deleted months ago.  Does anyone know what is going on? Thanks!

    My bookmarks disappeard one night and then back the next. Now contacts are showing up that I deleted months ago.  Does anyone know what is going on? Thanks!

  • My safari opens with a blank page and closes back. What should I do?

    My safari opens with a blank page and closes back. What should I do

    Hi there,
    I would recommed trying this: force close the Safari application and then reset the iPhone.
    -Griff W.

  • HT1430 How do I change page and get back to app store homepage?

    How do I change page and get back to app store homepage?

    Reset your homepage. <br />
    http://support.mozilla.com/en-US/kb/How+to+set+the+home+page

  • WebSphere Custering and JSF Backing Beans

    Hello All,
    Can anyone enlighten me on exactly how backing bean state is maintained by JSF?
    In what scope does JSF store the backing beans? (session perhaps)
    Does it make sense to use JSF without stateful backing beans?
    What would happen if a client post did not find its corresponding backing bean on the application server calling it?
    Background:
    In a clustered WebSphere Server environment, a client post may be directed to any one of the machines in the cluster. If the client post gets directed to a machine other then the machine that originally sent the client a response, the page will not find the corresponding page beans.
    It is possible to serialize session beans in WebSphere and have each machine share its memory with all the boxes in the cluster. However, this practice is not permitted in some environments.
    Any thoughts? Thanks in advance.

    I am probably not an expert on the subject. But here are some thoughts:
    1. A backing bean can have (application, session, request or None) as a scope.
    Less app or session scope beans the better (from server perspective). But
    There are practical reasons why you would want to use them in many cases.
    2. JSF supports Client State Saving mode. But keep in mind the overhead
    Involved (serialization, de-serialization, bandwidth,...).
    3. You probably need to read about WebSphere load balancing capability. From
    what I know it is somehow sophisticated. People typically use session affinity
    to force requests initiated by same session to be served by the same app
    server (enforced by network, hardware/software tools available to do so,...). Of
    course with failover mechanism to ensure high availability.
    Hope that helps!

  • How to print form in one page

    Hi, guys,
    Current we print script form with system automatic new page, but sometime it'll cover two pages and a lot of blank left on the first page. So user ask to print in one page. So how can i do it? is there any place we can configure the line item per page?
    Our system is Ecc 6.0. The form is used for payment advice which has been copied from sap standard form.
    Thanks in advance,
    Alex

    Are the same line items printed on first page when line items printed on second page?
    Just check it the height of the main window, in ur first page. If see if u can increase ur size of the main window so that u can add more line items.
    Do one more thing Give all ur line item fields in Main window in
    PROTECT and ENDPROTECT commands.
    ex:
    /:   PROTECT
    P1 &ITAB-MATNR&
    /:   ENDPROTECT
    If it is a SMARTFORM,
    Create a STYLE in Tcode:- SMARTFORMS,
    In that create a Paragraph Node, Select the Check box of Page Protected.
    Use that created STYLE ,
    Under the Line Items of ur Main Window> Table Node, In Output Options, Select the created STYLE.
    Now check for the TEXT entry for the Field and in that select the Paragraph format from the drop down list.
    Edited by: Bala Krishna on Aug 20, 2008 7:46 AM

  • Big trouble with multiple forms in a page and submit - commit buttons

    Hi
    Thank you for reading my post
    I have created a menu system based on a sample 61 at
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    so , on each page i have a form that contains my menu system , when i add second form to this page by using drag and drop , its submit / clear button works but Commit button does not change to Enable and stay disabled.
    I change the Disabled property of Commit button to true but it does not operate (does not store data into DB)
    I tried my work on a page without those menu system and it works fine.
    so i think there should be some tricks for pages that contain more than one form and has a Commit button.
    can some one clearify ?
    thanks

    Can it be a problem with my whole application ?
    I tried other applications with same condition and they workd :((
    even i made a new page in my application and put only one form into it , the commit button is turned off for ever :((
    is it possible that i touched some configuration and commit become permanently disable ?
    it will be huge pain if i need to create the project skeleton again , it has more than 20 pages and all navigations and mune system is set :>
    any clue ?
    I should say that , Jdeveloper hanged once and i kill its process, can that be the source of problem ?

Maybe you are looking for

  • ? Flash CS4, Is it possible to adjust the length of multiple timelines at once?

    Hi, I am using Flash CS4. Is there any way to adjust the length of multiple timelines at once? I am doing an animation of leaves falling from a tree. The leaves alone have 17 separate timelines on separate layers plus each has it's own guide layer. I

  • Custom icon editor BUG

    If you use a custom Icon editor (as shown here and here), and you want to create a smaller Icon this will be meaningless. Because the lv_icon interface only allows you to generate the 2-colour and 256 colour icon. The 16 colour icon will be untouched

  • Inquiries vs. Customer Contacts

    I pulled a Inquiry report for the past 3 months and there were 104 inquiries. Our customers submit inquiries by filling out one form. I pulled a Customer report for the past 3 months which provides the Contact information for these inquiries and ther

  • Particular crash

    First, apologise my poor language: I am french. Well, i bought a theme template called videohive circle reveal to make a commercial ad. My problem is taht when i want to render it or have a preview it always crash at the same point with the tradition

  • Possible Bug in 1.6 Report Totals?

    I have this Report Region based on a SQL statement: SELECT 'SDR ' || OBOB_SNAME || ' ' || OBOB_CNAME "SDR", sum( decode(to_char(PHPH_DATE,'DY'),'MON',PHPH_PERSON_HOUR,NULL) ) "Mon", sum( decode(to_char(PHPH_DATE,'DY'),'TUE',PHPH_PERSON_HOUR,NULL) ) "