Retrieve rendered output within same page

I have a page that is rendered correctly. On this page I have a button and I wish to save a selection of the page as html when the user click on the button.
I saw in MyFaces and Tomahawk that they added the tag Buffer that allows you to render into a buffer, does anyone know of anything similar for standard JSF?
Edited by: plukkie on Sep 18, 2010 1:03 AM

If you are beginner, please have a look at help.sap.com material or material in SDN. it will answer basic question.
<b>Layout:</b>
      <htmlb:inputField id        = "field1"
                         type      = "integer"
                         size      = "30"
                         maxlength = "30"
                         value     = "<%= var1%>"
/>
      <htmlb:inputField id        = "field2"
                         type      = "integer"
                         size      = "30"
                         maxlength = "30"
                         value     = "<%= var2%>"
/>
      <htmlb:inputField id        = "field3"
                         type      = "integer"
                         size      = "30"
                         maxlength = "30"
                         value     = "<%= var3%>"
/>
<b>Page attribute:</b>
var1 type int4
var2 type int4
var3 type int4
<b>Oninputprocessing:</b>
DATA EVENT TYPE REF TO CL_HTMLB_EVENT.
IF NOT EVENT_ID IS INITIAL.
  EVENT ?= CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
  IF NOT EVENT IS INITIAL.
    CASE EVENT->SERVER_EVENT.
      WHEN 'submit'.
           var3 = var1 + var2.
    ENDCASE.
  ENDIF.
ENDIF.
<b>*Reward each useful answer</b>
Raja T

Similar Messages

  • Link to the same page in javascript

    Hi i am developing tables in java script. If i click the row in the table i will get clicked row in the blow function.If i want to call to a graph which should be displayed in the same page how to do?
    function(event, column, row){
    }

    Hi from the below function i get column number of the table i want to prepare some action and display output in same page with previos tables;
    ie before there is only table in the web page not after taking action the web page should display table+ output;
    function(event, column, row){
    }

  • How to make fields grow dynamically within the same page and in column wise

    Hi,
    Like the newspaper format: Where contents of news are shown columns wise.
    We need to make the fields in a page grow column wise within that same page.
    For example, in a page:
    Column 1 Column 2
    ASDASDASDGKASHDGKAA | ASDFASGFHSJFAJKSD
    ASDFASDFASDJFASGJKDFHA | ASDFASDASDFASDFASD
    AFSDFASDFASDHGFKASDFASD | ASDFASDFASDFASDFASDFA
    ASDFSDGFJASHDGFJKASHDGKFAS |
    ASDFAGASDHFKASHDGFHASDJKFHASJKHF |
    ASDFHASGDKFASDJGHFASDFJKSDGFJKAGSDJ |
    If the Column 1 is full with the fields in the page it should start filling the column 2 which is also in the same page.
    If the Column 2 is also full then only it should move to the next page and should continue the same scenario.
    Please suggest a better way to do this in the Adobe Output Designer.
    Thanks and regards,
    Gurunath V.
    E-Mail: [email protected]
    P.S: Please also mail to my e-mail ID.

    Hi Gurunath, if you steel need a solution on this problem, I think this could help:
    1- place two fields on the form (JF01, JF02), one under each other.
    2- Make two subform with them (Sline1, Sline2)
    3- Make the field JF02 expand on same subform.
    4- Modify the preamble in this way:
    ^define group:D_line1 \field$POSITION\reserve"0.333",in\subformSline1.\positionsave,"first_line"
    ^define group:JF01!OnOverflow \groupG_Sline2.\fieldJF02.
    ^define group:G_Sline2!OnBOF \positionrestore,"first_line"\positionright,"3.65",in
    In the data file put all the text in JF01.
    -The first line say:
    When JF01 is called, save it's y position (\positionsave,"first_line")
    -The second line means:
    when the text overflow JF01 put it in JF02.
    (cause JF02 overflow on itself all the remaining data is overflowed in JF02)
    -The third line means:
    if JF02 arrives at the end of the page (OnBOF), restore the saved position ( \positionrestore,"first_line") and move to the right of "3,65" inches (\positionright,"3.65",in).
    In other words, when JF02 arrive at the and of the age, the next field JF02 is positioned at the same height of JF01 and is shifted on the right
    Take care that in this way JF02 cannot anymore go o a new page.
    Hope this help.
    Andrea

  • How to display the JSP output in the same page....

    im new to JSP..... can anyone tell me how to display the output of a particular JSP page in the same page itself...... if anyone could send a small sample code it will be very useful for me....
    thanks in advance
    regds
    Krish......

    Hi Robert -
    When you say you are writing a template-based Renderer, do you mean that you are creating a custom look and feel and replacing the header Renderer? If so, I'd recommend instead simply creating your own template (not template-based Renderer), and reference your template directly from your uiXML pages where you want to insert the timestamp.
    You'll probably want to write a method data provider which calls System.currentTime(), convert the result to a date, and then use Java's date formatting capabilities (see java.text.format.DateFormat) to produce a user presentable String that you can return from your data provider.
    For more info (and samples) on templates and data binding, see the "Templates and Data Binding" section of the "Includes and Templating in ADF UIX" help topic:
    http://tinyurl.com/5b7bf
    Andy

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • How do i send hyperlink to a text box within the same page

    how do i send hyperlink to a text box within the same page on iweb

    It's called an anchor. It's often discussed in this forum.
    2 days ago : anchor
    Here's a search of the past year : anchors

  • Linking to an anchor within the same page

    Anyone know how to link to an anchor within the same page?
    For instance, im making a FAQ page. at the top of the page I would like to list all the questions. i would like the viewer to be able to click a question which brings them to the answer on the bottom of the page.
    looked in inspector couldn't find it. linking to anchors is pretty basic, so id be really suprised if iweb doesn't have this feature. so im assuming im missing it.......
    how do i do this?

    Anyone know how to link to an anchor within the same page?
    how do i do this?
    Linking to an anchor within the same page is no more than scrolling to it, and can be (easily) emulate with javascript window.scroll function.
    See my post here: http://discussions.apple.com/thread.jspa?messageID=7676908&#7676908
    All javascript is linked to the example page.

  • Image rendered in HTML region on same page

    I am using the Oracle OBE tutorial below to insert and manage a photo associate with an employee record. Howerver, clinking on the download link renders the image in a separte browser window. Is there any way to render the photo from the report and/or form in an HTML region on the same page? The report and form appear on the same page as well. Specific code or reference to such would be greatly appreciated.

    Andy, I do appreciate you responding so quickly. The scenario I am trying to accomplish is the following: I have a table as follows:
    Name Null? Type
    SIA_ID NOT NULL NUMBER(20)
    LOGIN_ID VARCHAR2(20)
    LAST_NAME VARCHAR2(60)
    FIRST_NAME VARCHAR2(60)
    EMAIL VARCHAR2(40)
    MENTOR VARCHAR2(1)
    PHOTO BLOB
    FILENAME VARCHAR2(255)
    MIMETYPE VARCHAR2(255)
    LAST_UPDATE_DATE DATE
    I have a Form with report that allows me to upload photos in the form and show the PHOTO column as a DOWNLOAD link in the report. I also have the ID column as a link to the form so I can edit details of that record. Is there any way with this scenario to simply allow the PHOTO (blob) to be shown in a small HTML region on the same page as this report and form? I'm thinking that I might be able to use an IMG tag in the HTML region but I'm not sure how to format it. So I guess I'd like to see the details for the record from the report in the form other than the photo which would show up in a separate region on the same page.
    Thanks again.

  • 2 line types to be on same page in a table in smartform output

    Hi,
    In smartforms i have created a table with 2 line types. These 2 linetypes i hav used in the main area of the Table. The data is coming as wanted, but the problem is if there is more data to span to the next page also, then it happens that one line comes in the previous page and the next line comes in the next page. But i want both lines to be on same page. Between them there should not be a break.
    Please help me on this.
    Thanks

    Hi ,
    I will give you the suggesstion and code as well by tomarrow.

  • How-to (easily) retrieve the ColorSpace at the page level

    Hello,
    I'm lloking for a method to (easily) retrieve the ColorSpace at the page level. Actually in my PDF there are ColorSpace at page level and also at element level.
    Moreover what is the behavior when there are more than one ColorSpace. Is it the ColorSpace described at the page level which is taken into account or the ColorSpace which is at the image level.
    Thanks in advance,
    Joe

    There is no such thing as a "page level CS" in PDF.  So I have no idea what you are referring to.  Please post a PDF.
    When rendering a page, a renderer (Acrobat/Reader in this case) decides what final output colorspace to use for the raster image based on a variety of criteria defined by the appropriate international standards - let's call this the "destination CS".  Once chosen, then as each object is being rendered its colorspace(s) (call them "source CS" - may be one or two) will be converted, if necessary to the destination CS. 
    That's the simplistic description of color handling when there is no transparency on the page.  If there is transparency involved - the complexity goes up by a magnitude...

  • Force the Summary Sub totals on same page as the Repeating Group

    Hello folks,
    I have a Group by Left Report where I am showing Patients and the Visits that they have taken for each Department.
    I am then doing a Sub Total of the number of Visits the Patient has taken. I would like to make sure that the sub total shows
    up on the same page as the data in the Repeating Group. I tried using an Anchor but the Report does not like it.
    It gives an Error: REP 1213 - Field references column at a frequency below its group when I anchor from Repeating frame to the sub total footer
    and REP 1814 Report cannot be formatted. Object 'Horizontally' can never fit within 'M_1' when I try to anchor the other way.
    My goal is to show the Sub Totals (Total) on the same page as the Patient and not go to the next page. I have enclosed the single dashed line and the Total (Label and field) in a Frame.
    Output of Report:
    Patient ID     Patient Name              Department              Visit
    ======================================================================
    1001           Mary Poppins              Department 001              3
                                             Department 002              4
                                             Department 003              1
                                             Total                       8
    1002           Peter Pan                 Department 001              2
                                             Department 002              1
                                             Department 003              2
                                             Total                       5
                                             -----------------------------Thanks in advance!

    Pls set the property(page protect of the frame containing both sub total and patient details) to yes.

  • How to replace LOV popup with a search screen that opens within same window

    Hi,
    We have a requirement to get rid of LOV popups from our custom OA pages. They need to be replaced by search pages that open within the same window.
    For example, we are creating an employee assignment to a department. We first find the employee (currently using the LOV), then the department (currently using another LOV) and then save the new assignmnet record.
    The two options we have are:
    1. search page fully replaces the current page, and when the user has selected a record, it returns them back to the first page, setting some fields, eg. employee id, employee name, employee address fields.
    2. search page opens in a region of the same page (PPR?) and then disappears once the user has seleted a record.
    I am not sure how to do this, and really could do with some pointers, i.e. the best way to achieve this.
    Thanks in advance
    Mark

    Both of your options are valid with some pros and cons.
    option 1: It gives you a nice interface but then you will have a pass a large number of data back to 1st page.
    options 2: You can use the Rendered property of a serach region at runtime and achieve your goal. Since it will be a single page, result set to base items mapping will be easier. Though this kind of UI will look bad if your search region is big.
    So it all depends on which option is easier to implement for you.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Two tabs for the same page

    Hello,
    I have been spending the whole morning trying to find a solution for this problem but did not find any either by myself or parsing the forum messages.
    I am building an application with a two level tab for the navigation.
    Everything is fine as long as the pages referenced by the tabs have a different number.
    My problem is that i use the same dynamic page (let say 40) to be accessed through two different tabs.
    e.g Parent tab is labelled "Parent"
    Two other tabs are created linked to parent tab "Parent" and those are labelled "Action1" and Action2"
    Selecting "Action1" will result in rendering the page 40 with a parameter (let say page_type) set to the value 1.
    Selecting "Action2" will result in rendering the *same* page 40 with a parameter (let say page_type) set to the value 2.
    For the parent tab "Parent" let say that the default is to select "Action1"
    Is there any solution to implement that kind of behaviour?
    I have tried to create redirecting pages (empty page and a single branch) to achieve this but i always get stucked when trying to have page 40 displaying the proper tabs and parent tab.
    Thanks in advance for any help.
    Daniel

    Hi Andy,
    Thanks for your answer!
    Whilst it is fairly straightforward to create multiple tabs for the same page (this can be done through Shared Components, Tabs and click Add on the standard >>tabs bar, enter in any page number you like), the functionality of tabs does not provide the means to set item values. Additionally, as both tabs would be >>"current" for your page 40, once you've clicked on one, you can not click on the other.Yes this is exactly what i discover once my page 40 has been built.
    There may be ways to do what you need, but as tabs are really there for navigation purposes only, this may become rather complicated. What is the difference >>between Action1 and Action2? Can this be achieved in another way? Have you considered switching to lists for navigation (where you can set item values)?In fact, i can still duplicate this page and have a few changes within each new page. But as a matter of code design as both pages have around half in common, i wanted to share most of the items (build a single page) and then play for a few additional items with conditions encompassing the page type i have set before rendering the page.=> Most items in common, a few others whose display is conditionnal. For the end user, it looks like two different pages because in their business process the "Action1" and "Action2" are clearly different.
    I use lists in this application on the home page to reach most of the application pages but while some users prefer to use the links on the home page and go back to home page, other would like to use the tabs and a number of them use both navigation mechanisms.
    Sorry if it is not quite clear (english is not my mother tongue).
    Regards,
    Daniel

  • No data found in report csv or pdf output on first page load

    No data found in report csv output on first page load. Report shows up on page, but no data found in csv or pdf output. I always need to submit the page and then it shows data in downloads. The page contains a form (read-only) with a report that references 4 page items by using something like the following:
    and b.employee_no = v('P5_EMPLOYEE_NO')
    and c.fisc_year_pk = v('P5_FISC_YEAR_PK')
    and b.job_class = v('P5_JOB_CLASS')
    and b.organization = v('P5_ORGANIZATION')
    Again, report in the page shows up except there is no data in downloads. Can anyone help me solve this problem? I'm running Oracle APEX 4.2.1 in Oracle database 11gR2.
    Thanks.

    Sounds like a classic session state issue.
    You need to populate you page items using page rendering computations to ensure they're set to session state.
    Or if the download is triggered from a button press, you need to ensure those page items are submitted to session state, perhaps via a PL/SQL action.
    Scott

  • How to open a link from search engine in the same page

    I just noticed that my links are opening in new windows instead of on the same page on Safari. Is there anyway I can change it back to where if I click on a link in the Yahoo search engine that it would just open within the same page without opening a new tab or window, where I can go back and forth between pages? For example, say I type in "wikipedia" on Yahoo home page and click search. Then it takes me to the Yahoo! Search Results page with a link to the Wikipedia website. When I click on that link, the Wikipedia home page loads right within the same page instead of opening a new tab or window and loading into that new tab or window. If I wanted to go back to the search results, I can just click the back button. I remember Safari doing that before, is there anyway to get back to that? Thanks.

    You can set the Integer pref <b>browser.link.open_newwindow.override.external</b> to "<i>1</i>" on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config
    The browser.link.open_newwindow.override.external pref uses the same values as this pref for JavaScript window.open() calls.
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction

Maybe you are looking for

  • Outlook 2007 on pc restarts when access icloud calendar

    re installed outlook 2007 on win7 laptop. outlook works fine except when I open icloud calendar, it says outlook stop working and restarts. I can access the calendar on icloud.com and my ipad and iphone. I suspect there is a bad record on the calende

  • Wat do these fields in scdo stand for?

    when we goto scdo transaction and create an object ,we enter the table for which we create the object,there we also have an option as 'copy as internal tab' and 'doc  for individual fields at delete' and also the' name of reference table'. what do th

  • How to create release order for value contract?

    dear experters, I create a value contract by T-code:va41, order type"WK1".I set a Assortment module to this order and mateirl "WKM1" to  it. then I create release order by T-code:va01 with refrence to this value contract,but it set the material "WKM1

  • SSL received a record that exceeded the maximum permissible length

    For the past few days ALL of my computers show the following message when I attempt to access ANYTHING to do with google: "Secure Connection Failed An error occurred during a connection to https://www.google.co.uk/firefox SSL received a record that e

  • How do I close down the apps

    How do you close down the apps.  You used to double tap the home key and it would show everything on you iphone that is running.  How do you shut them down now?