JSF - CommandLink action - Partial Refresh for Multiple Pages in a Form

Hi,
I have a 3 JSP Pages, say ( 1.jsp, 2.jsp, 3.jsp) called as designed in the FORM below :
--------------PAGE 1.jsp-----------------------------------------
| Input Box 1 |
| Input Box 2 |
| Input Box 3 |
| |
| <DIV> |
| PAGE 2.JSP |
| </DIV> |
| |
| |
| |
| <DIV> |
| PAGE 3.jsp |
| </DIV> |
|________________________________________ |
Page 1 has some input boxes and onBlur() of one of the input Boxes --> I call some Ajax code pass Values from Page 1.jsp to Page 2.jsp --> build URL for Page 2.jsp and display it in the specifiedDIV area above.
Similarly, Page 2.jsp has some inputs --> pass inputs from Page2 to Page 3----> build URL for Page 3.jsp and call it in DIV areaabove .
Now,
Page 3.jsp has a commanButton which I click and upon success submission refreshes the whole screen & loads only Page 3.JSP
Is there a way that when i click on the submit button on Page3.jsp above, only the part of the whole form that has Page 3.jsp refreshes and rest of the screen remains as it is. I mean Page 1 & Page 2 do not get refreshed.
I would really appreciate if you could assist with some code examples

Don't know if I get it right, but it's not wise to discover wheel, when it's alredy discovered. Mix of JSF 1.2 with RichFaces should do. You can set form to be submited in ajax, you have ajax components, finally you have attribute 'reRender' in commandButton (or whatever you use) which tells which part of page should server rerender, so just indicate it by element id :].
In short term You may try to divide your page with sub pages (suppose you use subview) on 3 forms. In JSF 1.2 RI h:form always send whole form, and so rerenders whole form

Similar Messages

  • SAPscript print program for multiple pages

    Hello friends,
    How to write SAPscript print program for multiple pages? please help me.
    Thanks and regards,
    Shivanand.

    I believe you have posted this question in the wrong forum.  There is an ABAP Forms Printing Forum.

  • Page wise total for multiple pages in xml template

    Hi all,
    I need to display page wise total for multiple pages in xml layout.I have tried with add-page-total and show-page-total tags but it is not working in my case.Anyone please provide me a solution to this. Thanks in Advance..It is urgent issue..
    Thanks
    Swapna

    This issue has been resolved.
    We had a call to the method "makeOutputFlat(true)" before the call to "FormProcessor.process()" that was corrupting the PDF template file.Once we took that off , the PDF is now printing multiple pages.

  • Partial Refresh of a Page (Chart Refrech : parameter change)

    Hi,
    I have page with som reports and 1 chart.
    I would like to refresh only the chart (flash one) using a button ... So, It is OK for a simple query (the partial refresh process is working : the OTN example used). But when the query used for the chart are base in item (select *... from my_tab where cl=:P1_CHART_HIST), the refresh is not taking into consideration the parameter change (refresh needed after changed the value in the item P1_CHART_HIST...)...
    I hope that you see what I mean and do you have a solution for this ...
    Regards

    if you provide a name for the iframe, you can set the target in the href's..
    I would also provide it with an ID and Name, as you might want to do some fun JS stuff with it in the future.
    You can actually with JS change the content
    HTML way:
    a href="http://www.google.com" target="pdfIFrame"
    I would stick with the HTML-eidtion..
    The iframe should work as the older frames, eg. you have to set the name in the iframe too.
    Also I see there was missing a > in your iframe code.
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&P1_LINK." name="pdfIFrame">
    </iframe>
    Maybe you should also consider styling the iframe via. CSS. Use ID or Class on the Iframe to do so.
    Edited by: user9178158 on May 11, 2010 3:26 PM
    Edited by: user9178158 on May 11, 2010 3:27 PM

  • How do I populate my date fields placed on Master Page for multiple pages?

    I have a dynamic form with flowing fields. I inserted date fields using the Master Pages tab within Adobe LiveCycle Designer ES2, Windows 7 OS. I have only 1 Master Page. Everything on the form is working properly, except when I have multiple pages, the date fields are blank on all but the first page. One of the date fields has javascript in the exit event to calculate the second date field. I can manually edit the subsequent page(s) date fields, but I don't want the end user to have to do that. I want the date fields on the new pages to equal the date fields on the first pages. Below is my output with notes to provide a visualization of what I'm looking for.
    Many thanks in advance for anyone who can help me with this issue!
    Caroline

    Hey Mandy,
    Yes, both date fields are on the Master Page. The first one is set to "User entered - Required" and the second to "Calculated - User Can Override"
    And that's right, I used your script to calculate the second date field. The only thing I changed was the field name, and used 6 days instead since I wanted the calendar days to only run a full week, like start on a Monday and end on Sunday.
    Thx,
    C

  • F110 - Many Check no for multiple pages

    Dear Sapients,
    I have some issue with Automatic Payment Program using F110. We are using Non-Preprinted stationary with un-numbered checks, but system is assigning check no for each pages, if there are multiple pages for same vendor. Here is scanerio in more details:-
    1. Configuartion for F110 is done. Payment Method "C" is our payment method configured. All configuration is done and looks good.
    2. We have assigned FORM - /SMB11/CHECK_UNN, which is SAP standard form.
    3. We are using RFFOUS_C program for printing, which SAP allowed to use this print program for both pre-printing and non-pre-printed stationary for Check.
    4. When we execute program for vendor payment and vendor have say 50-60 invoices, system generate proposal correct, and post the document in payment run, but when we execute print for check printing, we check the spool request, it assign check number on each page. say it have 4 pages.
    (a) On page 1, check no would be say 2001 and it will VOID the check
    (b)  On page 2, check no would be say 2002 and it will VOID the check
    (c)  On page 3, check no would be say 2003 and it will print the check correctly.
    (d)  On page 4, check no would be say 2004 and it will VOID the check, This is summary page. ON summary page, it also give the check no details that from 2001 to 2004 check are assigned for this payment and check registered is updated properly.
    It should only assign one check no 2001 and shoudl only print the check on last page.
    Please advice.
    Thanks,
    Pawan Sharma

    Finally found the issue. In fact, we need to select "Do Not VOID any Check" in variant of program RFFOUS_C.
    For More Details, please read help for this check mark. It resovled my problem.
    If anyone have same issue, please use same process.
    Thanks,
    Pawan

  • Partial Refresh for Chart Region

    Hi all,
    I am using Application Express 4.0.1.00.03.
    I need to know whether partial refresh is available for Flash Charts or not?
    If yes how?
    Thanks in advance...
    Edited by: jyothi on Aug 17, 2011 9:06 PM

    Hi,
    There is undocumented JavaScript function apex_RefreshChart for refresh flash chart.
    Regards,
    Jari

  • How to crate a page template for multiple page instances?

    Hello,
    When I use the Administration Portal to create a page with portlets in the Portal Resource Library, I can choose to use that page it in my portal. The problem is that I can use it only once. How can I crate a page template with portlets so I can use use it as a template for many page instances in one portal?
    I'm using Portal 8.1.6.
    Regards,
    Eirik

    Hey Dave, See the image below:

  • How to print two different multiple pages in smart forms

    Hi All,
    In my form iam printing 12 different pages.In that 11th & 12 th pages are having two different formats and if more records are there for each page i have to print more similar pages.For 12th page iam using main window in that by using command and table nodes iam printing similar pages for 12th one.
    But come to 11th page i don't have more than one main window in my form.So iam unable to use the command node.
    Can anybody help regards to this problem.
    Regards,
    Srinivas Reddy.Ch

    hi Srinivas..
    u don't have multiple main windows in smartform but we can us the same window for multiple number  of pages...
    wht u need to do is use the CONDITIONS Tab of every node..
    in the check <b>only on page</b> PAGE11.. for the node u want to trigger in page11 and for other node <b>only on page</b> PAGE12 for the node u want to trigger in page12.
    i hope it is clear now.. let me know if u want more clarification.
    Please Close this thread.. when u r problem is solved. Reward if Helpful
    Regards
    Naresh Reddy K

  • Multiple page data entry form

    Hello,
    I need to build a multiple page data entry screen for users
    to enter information into the DB table. There are many fields I
    need to capture and store in a table. Some of the fields are multi
    line text field for the users to enter a few lines of text in a
    textbox. But right now, I wasn’t sure which approach I should
    take.
    1. Use session variables to capture the data as the users are
    completing the multiple page data entry then store all the values
    at the end when the user finish entering all the data.
    2. Create a temporary table in a DB to capture the data until
    the user is finished then store the values in the temporary table
    back to the real table.
    I hope someone can provide me with some suggestions on this.
    Thank you in advance for any assistance.

    It depends on how you want to handle:
    User fills out first couple of pages only. He may or may not
    come back.
    User fills out a couple of pages and then uses browser to go
    back to page 1, which he changes and resubmits.

  • Multiple pages in Smart forms

    Hi all,
    Actually I want to print multiple pages in Smartforms . I have a option to take New Page and set that Page as Next page . but In my case Pages are dynamic. if any person has solution please send me.... thanks

    Hi Srinu
    just loop the internal table . please see below my code
    i_output_email --- My internal table
    LOOP AT i_output_email.
          CLEAR i_output_email1.
          i_output_email1 = i_output_email.
          APPEND i_output_email1.
          AT END OF xblnr.
      calling the selfinvoice smartform using functional module
            CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
              EXPORTING
                formname               = gv_form
          VARIANT                = ' '
          DIRECT_CALL            = ' '
             IMPORTING
               fm_name                 = fm_name
             EXCEPTIONS
              no_form                  = 1
              no_function_module       = 2
              OTHERS                   = 3
            IF sy-subrc <> 0.
          error handling
              MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ENDIF.
    Call the smartform
            CALL FUNCTION fm_name
              EXPORTING
                archive_index      = toa_dara
                archive_parameters = arc_params
                control_parameters = gs_control_parameters
                output_options     = gs_output_options
           mail_recipient    = ls_recipient
           mail_sender       = ls_sender
                user_settings      = space
                is_nast            = nast
                is_repeat          = repeat
              IMPORTING
           it_output        = t_output
                job_output_info    = t_otfdata
              TABLES
                w_output           = i_output_email1
              EXCEPTIONS
                formatting_error   = 1
                internal_error     = 2
                send_error         = 3
                user_canceled      = 4
                OTHERS             = 5.
       t_otf[] = t_otfdata-otfdata[].
            CLEAR ls_otf1.
            LOOP AT t_otfdata-otfdata INTO ls_otf1.
              APPEND ls_otf1 TO t_otf.
              CLEAR ls_otf1.
            ENDLOOP.
            REFRESH i_output_email1.
          ENDAT.
        ENDLOOP.

  • How to print multiple pages of same form with one print command

    Hi,
    I have created a cheque print form in smartform. There is provision to print multiple cheques. I give multiple cheque numbers from my selection screen and for each cheque the smart form is called in loop.  Currently I get preview of 1st cheque then I print 1st cheque then click on back, cancel or exit button and then I get preview of second cheque ans so on...
    Now I want to print all the cheques with one print command.
    Please advice.
    Regards,

    Instead of looping at the smartform multiple times, pass an internal table with the data content to the smartform and use loop/ Table youroption  in ur smartform in the main window.in this way u can achieve printing multiple cheques at once and avoid previewing the document several times.
    Edited by: Mithun Shetty on Feb 25, 2011 8:56 PM

  • How to display multiple page images in forms ?

    Hi,
    What is the best method to display multiple pages image(100 pages) in forms 10g?
    Thanks

    Hello,
    <p>this is a link to a tutorial that contains several sample forms.<br> One of them (ALBUM.FMB) demonstrates how to display hundred of images.<br><br>The tutorial is in French, but you can simply download the samples on the introduction chapter</p>Francois

  • How do I use one layer for multiple pages?

    I've been using Photoshop to create a series of web pages. I have about 20 such pages right now.
    Unfortunately, I need to change the navigation menu that is found on all 20 pages.
    To make these changes, do I need to change 20 different files? Or is there a way to link one layer group to multiple PSD files so that editing it once results in it changing on all 20 pages?
    Thanks,
    C

    You'll have to make some sort of change to each document, but it should only take a few minutes when there's only 20 of them. You edit the group in one, then for each of the others, simply duplicate or drag the edited group into it and delete the old group.
    There is also the option of structuring your workflow with Smart Objects which can be refreshed in each document with a common document containing only the menu group. For linking of Smart Object content, there is a third party plug-in but I don't know whether it is reliable.

  • Partial refresh of a page

    hello!
    i have 2 regions in my apex-page:
    1. a sql-report region, that has in each row a link to a pdf-file.
    2. a html region which consists of an iframe, that shows the pdf if a user clicks on the link in the sql-report:
    <div style="width:800;height:300;">
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&*P1_LINK*."
    </iframe>
    this works fine, but when a user clicks on a link to a pdf the whole page is refreshed, not just the pdf. is it possible to to refresh just the field P1_LINK and the iframe (with the pdf) and NOT the sql-report region (due to performance reasons)? if yes, how? do i need ajax? thx in advance!
    best regards,
    christian ropposch
    Edited by: Christian Ropposch on May 11, 2010 3:05 PM

    if you provide a name for the iframe, you can set the target in the href's..
    I would also provide it with an ID and Name, as you might want to do some fun JS stuff with it in the future.
    You can actually with JS change the content
    HTML way:
    a href="http://www.google.com" target="pdfIFrame"
    I would stick with the HTML-eidtion..
    The iframe should work as the older frames, eg. you have to set the name in the iframe too.
    Also I see there was missing a > in your iframe code.
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="&P1_LINK." name="pdfIFrame">
    </iframe>
    Maybe you should also consider styling the iframe via. CSS. Use ID or Class on the Iframe to do so.
    Edited by: user9178158 on May 11, 2010 3:26 PM
    Edited by: user9178158 on May 11, 2010 3:27 PM

Maybe you are looking for

  • Can I setup apps on a new iPod before I give it to someone?

    I want to preload some paid apps on a gift iPod before I give it to the recipient. Can I do that with my Apple ID and still transfer the iPod to them to claim as their iPod in iTunes, or do I need to have access to their Apple ID to do that? If I hav

  • Oracle CKM Module not resolving variable values

    Hi, I am using ODI 11g. I created a database datastore with dynamic table and column names using variables. I use this datastore as the target table in an interface but for some reason when the creation of the Error table is attempted (during CKM) th

  • Blank Page Issues in FrameMaker

    This thread addresses the prevention and removal of unwanted blank pages in FrameMaker. Sean

  • Leap failure after equipment reboot

    Everything worked fine, but afer a power failure all the equipment rebooted (3560, 1100, acs, wlsm). No 7920 fails to authenticate using leap (cckm+tkip). All configs look ok (all of the had been saved) PEAP clients and wep client authenticate withou

  • KZZ2 trx - Possibility to do a massive updating of % overhead

    Hello, we have to update a very large quantity of new % overhead in costing sheet for cost estimate using transaction KZZ2. We did this activity manually in the past, but it's very heavy and it can cause errors, so we would like to know if there is t