Page data does not load with goButton? (new window of identical page)

Hi guys. I ran into a problem. Essentially, I need to print a .jsff page but before I do, I have to alter its format a little bit. The solution I decided to use was to create a new .jspx page containing almost the exact same content. I even copied the data bindings and everything. Finally, I created a goButton on my original page like so:
<af:goButton text="Print as BOSSMON" destination="SubmitPrint.jspx?org.apache.myfaces.trinidad.agent.email=true"
                    targetFrame="_blank">
</af:goButton>This opens my page nicely in the format I want. But...there is no data on the page! It just opens a frame of the page. Can someone help me resolve this?
Otherwise, is there any other technique I could use to accomplish my goal?

Hi guys. Thanks to everyone for their suggestions. I finally got a working solution, something totally different from the suggestions.
My goal was to print a .jsff page nicely. But before I could do that, I needed to modify some data on the page. I also wanted to do this in as few clicks as possible. I tried the goButton technique but the binding data would not load. I couldnt figure out why.
Nonetheless, I finally managed to make my own version (albeit, not that neat!). I accomplished this by essentially making a template which automatically opens in showprintablebehavior format. I tried to follow a bunch of online tutorials/blogs but nothing worked for me. Here are the steps I used:
1) Creating a new .jspx page.
2) Copy the entire source of the .jsff page (the one which needs to be printed) into our new template .jspx page. (do have to modify the beginning parts by adding <af:document> <af:form> etc)
3) Create a pageDef for the template page and copy the entire pageDef as well (do have to change the name of the pagedef)
4) Modify your print template to your liking.
5) Add a taskflow rule that links the original .jsff page to the new template page
6) Add a commandButton on the original .jsff page which opens this printing page in a new window (remember to use "dialog:....."). Here is mine:
<af:commandButton text="Open Printer Friendly Version" id="printer_popup" action="dialog:edit_print" useWindow="true"
                              windowEmbedStyle="window" inlineStyle="display:block;"
                              windowHeight="100" windowWidth="100">
</af:commandButton>7) Now, in the printing template page, add a command button which simply has the showprintablebehaviour tag within it as well as a client listener to invoke some javascript. Here is what I used:
<af:commandButton text="Printer Page" id="sha_print">
    <af:clientListener method="do_loading" type="focus"/>
    <af:showPrintablePageBehavior/>
</af:commandButton>8) In the beginning of this page, you will have an <af:document> tag. Modify it so it sets focus to our print button above when the page loads. Like so:
<af:document id="d2" initialFocusId="sha_print">9) Now add a resource tag to your page which has the "do_loading" javascript method.
<f:facet name="metaContainer">
    <af:resource type="javascript">
          function do_loading(event) {
              var target = document.getElementById('sha_print');
              target.click();
              top.close();
              //alert("got focus sir!");
    </af:resource>
</f:facet>Thats it! What this does is when you click on the command button to open the printer template, our template page opens but as it opens, it automatically sets focus to the printer button using the document tag. The printer button has a listener which activates when it receives focus (in our case, as soon as the page loads). This listener invokes the javascript method, which progamatically clicks the printer button and closes this window. What your left with is a printer friendly page of your modified page!
All the data is present there too!
If anyone has any questions/comments, please do ask.

Similar Messages

  • Embedded Database - data does not load

    Hello.
    I am currently using NetBeans 6.5 and am experimenting with the CarsApp tutorial.
    Whenever I create an application using the server database, the data loads automatically when the application starts.
    However, when I create the application using an embedded database, the data does not load and I just get a blank table.
    For more information, go to: http://forums.sun.com/thread.jspa?threadID=5366394&tstart=0
    Thank you in advance!

    I'm sorry, I didn't know it was so looked down upon.
    I thought that since this topic pertained to both Destop Applications and JDBC, I could get the best and quickest answer if I posted in both.
    Apparently, that was a mistake.
    Thanks, anyways!

  • Audio does not load with video

    The audio does not load with video in 12?

    Welcome to the forum.
    Can you provide us with a bit more information, please?
    What OS version are you using?
    What are the full specs. of the AV file, that is not Importing with Audio?
    What Project did you set up, at New Project?
    Exactly what steps were used to Import that AV file?
    Did you allow adequate time for PrE 12 to Conform the Audio portion of your file?
    Good luck,
    Hunt

  • Fast dial (visual bookmarks) does not work with the new 5.0 upgrade. How do I correct this issue

    fast dial (visual bookmarks) does not work with the new 5.0 upgrade. How do I correct this issue Asked this question yesterday. I desperately need info, will I ever be able to use fast dial again?

    I tried it and it WORKED....I even tried the other version BEFORE this one and it didn't work so I tried yours and it worked like a charm so THANKS brother....

  • "Layer 1 does not start with a new cell" replicator error

    Hi All,
    I recently sent a dual layer +R DVD off to our replication house and their system is returning a message that says: "Layer 1 of DVD-Video does not start with a new cell".
    I know from reading that the dual-layer breakpoint must be set to the end of a cell, but what does the word "cell" translate into for DVDSP4?
    I had the DVD DL+R set to Automatic and Non-Seamless for output for the break point. Should I just try setting the break point manually at the beginning or ending of a track that would be dubbed as just a little more than half the size of the content? (I know in OTP, the Layer 0 has to be bigger than Layer 1)
    Please Help!
    Cheers,
    Dusty

    Thanks both of you for your replies.
    Eric, I am currently exporting DDPs to send in to the replicator. I also emailed them asking if they accept this format for delivery. (Which I would hope they would, as it is, an answer to DLT of sorts) Thanks for bringing this up, DDP is new to me, as this is our first DL project for replication.
    Drew, to answer your reply, yes I have two viable markers (chapter markers) that show up in black, not grayed out, in the tab you mentioned under formatting. I chose manual break point selection for this last disc I burned and chose chapter 4 of that track. (chapter 4 and chapter 5 of track 6 are only options) I have to assume that the "automatic" setting was selecting chapter 5, as it had to see that as the last viable marker available to select, as described in the DVDSP4 manual.
    DVDSP4 says that all markers are considered cells- Or actually that tracks are cells and that the markers within them make up more cells. So my question, outside of DDP option, would be, "what truly constitutes a cell boundary in DVDSP4?" Is it the markers within the tracks or the beginning or ends of the tracks themselves?
    As a side note, I burned the disc that received the error, "Layer 1 doesn't start with a new cell" from an IMG i created from DVDSP4 through Disk Utility. Word is that IMG's somehow don't include breakpoint information.
    So at this point I don't know if it is the IMG or the fact that DVDSP4 wants the break at one of two possible chapter markers in track 6.
    (Some more background- this is a TV show season DVD, with thirteen tracks of video, each with 12-14 chapter markers a piece.)
    Any more thoughts to help clear the air on what constitutes a true new cell boundary?
    Thanks sooo much Eric and Drew, I know this a long read.
    Cheers,
    Dusty

  • AWM - After successull cube maintainance data does not load

    Hi All,
    After creating the cube when i maintain the cube the data does not load. I went back and looked at the mapping at the cube level and the dimension level and everything looks fine. Any clues why the data does not get loaded. Also, i did not recieve any error while maintaing the cube.
    thanks

    Hi,
    I was able to resolve this issue. I did not map the cube properly especially the time dimension. Due to this the data did not get loaded in the cube. ReMapping fixed the problem.
    Hope this helps other newbies..

  • Graph Data does not align with the axis label

    Hi,
    The graph data does not align with the axis label when
    datetimeaxis is used.
    http://livedocs.adobe.com/labs/flex3/html/help.html?content=charts_displayingdata_04.html
    (in the using parseFunction property example) when you hover on the
    line graph the values do not align on the labels. Is this a bug?
    Can somebody help me with this.
    Thank you,
    Gautam.

    Hi All
    Thanks for looking into it.
    Actually we have just added a field GJAHR (was missing in the extractor) so that it takes data accoring to fiscal yr. Actually we had a issue that the Business area for a particular vendor 'X' and doc no 'Y' was showing incorrectly (similar to that of yr 2008) but it changed this yr and the extractor was still picking Business Area for yr 2008.
    So we added GJAHR field so that it takes correct Business Area. we have checked in R/3 Extractor checker and it shows correctly.
    But that change has not reflected in BW yet even after replicating datasource.
    I hope i have made you all understand the situation.
    Thanks for your help
    Ishi

  • The program vectorworks 2008 (not 2009) does not work with the new operating system Mavericks, which is a disaster because it forces us to change the program, and is very expensive. Apple should fix this problem

    The program vectorworks 2008 (not 2009) does not work with the new operating system Mavericks, which is a disaster because it forces us to change the program, and is very expensive. Apple should fix this problem

    Why should Apple fix the problem? Maybe you should consider NOT upgrading if an expensive piece of (obsolete) software you're running won't work with it...

  • Unable to upload files using firefox, be it dropbox, gmail or any other websites where we need to attach files. It does not open up a new window to choose file.

    all of a sudden im unable to attach files in any of the websites. Im using firefox version 30 and when I click to attach file it does not open up a new window where we can choose the file from my computer. It happens almost in all websites that I use (gmail, dropbox, other websites).
    This was not the case before, seem some problem with firefox.. can somebody fix this at the earliest. thanks

    hello Balaatmozilla,
    please check if this problem appears as well when you try to download a file, does this happen again when you try to download a file?
    if so there must be a problem with your HDD controler, to solve this issue follow th steps:
    1.Right Click on My Computer, Select Properties
    2.Click on Device Manager in Top Left corner
    3.expand the IDA/ATI/ATAPI controllers
    4.right click on the one which is related to your HDD
    5.click on Uninstall
    6.Restart
    when you restart your windows the OS will try to install the drivers again, if this happens then restart again and check if the problem is solved, if no try to install the HDD drivers and related drivers manually and then restart your machine

  • I'm applying for jobs online through my iPad using the safari app. For some reason when I try to attach my resume, which I have saved in Pages, it does not give me an option to go to Pages. It only gives my an option to choose a file from photos. Does it

    I’m applying for jobs online through my iPad using the safari app. For
    some reason when I try to attach my resume, which I have saved in
    Pages, it does not give me an option to go to Pages. It only gives
    my an option to choose a file from photos. Does it not have the
    capability to choose a location other than photos??

    No. Safari does not have the option to attach files for uploading other than photos.
    Look at iCab Mobile in the App Store. There are other browsers that may do this, but I'm pretty sure that iCab will fill the need.
    iCab Mobile (Web Browser) on the App Store on iTunes
    take a look at this.
    http://www.icab-mobile.de/faq.html

  • The sound does not sync with the new iMovie (In Mavericks)

    I've finally managed to update my old projects to iMovie 10.0 but the sound does not sync.
    Is it my computer (Mac Pro Late 2008) who can not cope with the new iMovie??
    Could it be that my Graphics card can not be bothered with?
    GeForce 9400M and GeForce 9600M
    Excuse my bad english! :-/

    I have MacBook Pro!

  • HT1296 I have a 2nd Gen iPod Touch and it does not sync with the new iTunes please is there a fix coming?

    I Have a 2nd gen iPod and it will not sync with the new update of iTunes is there a fix coming for this or not I'd hate to have to buy a new iPod if I don't have to

    Have you tried syncing manually using the manual method included in
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    Was the iPod previously synced to another computer/iTunes library?
    Next wold be to retore from backup.
    iOS: How to back up

  • Firefox 5.0 does not open link into new window

    Firefox 5.0 does not open link into new tab. I have a netbook also and tab options work fine, links open into a new window. However on this Dell it does not work. Tab options in Firefox and Google are set right, but don't work that way. Running Windows 7 on Dell, Windows Starter on netbook.

    The Template .dwt file is only used locally by DW itself, there's no reason to upload it to the server unless you intend to share it with someone. You have to upload each individual page that the Template updates, every time you update the template and propagate that change across the child pages.
    It would probably be better to use a server side include. That way, you could update one file then upload it and all of your pages would automatically carry that update...
    SSI for Apache: http://www.javascriptkit.com/howto/ssi.shtml
    PHP's version: http://www.tizag.com/phpT/include.php
    It's especially handy if your site gets to the point where you have more than about 20 pages.

  • Image does not load in a new Form window

    Hi everyone,
    In Oracle Forms I have a Form with multiple windows. On startup only the main window is loaded. For some conditions during user input another window should be shown (I am using the SHOW_WINDOW functionality). In the new window is an Image which is set with the following code:
    READ_IMAGE_FILE('image.gif', 'URL', 'IMAGE_PICTURE');
    SHOW_WINDOW('DIALOG');
    The image is stored in the JAR file and works for other form modules. But when I open the new window (Style = Dialog, Modal = Yes), the image is not loaded/displayed. But, if I close the dialog window and reopen it directly again the image is displayed.
    Does someone know how to solve this issue? I would like to have the image displayed also the first time when the dialog window is opened.
    Thanks!
    Marco

    I tried it right now, but without success.
    In the new Window I only have the Image, a dynamically generated message for the user as an text item and a button (this sounds like I could use an alert box, but an alert box has some limitations which does not fit the user requirements). When I now try to set the "Synchronize with Item" property of the Image to one of the other items of the window, the Form cannot compile:
    FRM-32084: Data Type of item is not compatible with mirror item MSG.

  • Firefox4 cleared compnents.classes(cid) error, but Start page still does not load? just shows search bar that doesn't operate /load?

    Loaded Firefox 4, received error message components.classes(cid), now corrected through help pages. But Firefox Start Page only shows a Search bar, that doesn't operate, page does not carry any other information, presume it's not downloading correctly, any ideas??

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    See:
    * [[Troubleshooting extensions and themes]]

Maybe you are looking for

  • Weblogic 10.3.5 error during upgrade to  JSF 2.0

    I created a very simple test application using Jdev 11.1.2.0 which deployed well aganist the IntegratedWeblogicServer. I copied the deployed project from ${MW_HOME}/jdeveloper/system11.1.2.0.38.59.69/o.j2ee/drs/TestApplication to ${WEBLOGIC_SERVER_HO

  • Can't eject DVD

    I inserted a DVD game into the superdrive of my iMac G5. Nothing happened. It didn't load and the eject button doesn't work. I followed advice found in other discussions but nothing is working. I went to Apple "Help" on my computer and followed the d

  • Information on CRM

    Hi Experts, I am new to CRM. Unlike in ERP, i came to know we only have one tcode for all this in CRM i.e. CRMD_ORDER My requirement is to enhance sales/service orders and Sales/service quotations. and is detailed below. can any one suggest me on how

  • How does one check for Updates...

    How does one check for Updates when : Registration Deactivation Updates Menu items are greyed out! ?

  • Hardware changes

    help with audio problems???