af:showPrintablePageBehavior problem against af:treetable on Popup window

I just used <af:showPrintablePageBehavior> for <af:treetable>, but got a wrong printable page. I faced this problem on new popup window, which is a browser popup window rather than adf faces inline popup.
After treating <af:treetable> using <af:showPrintablePageBehavior> in popup window, I just found all cells in the table was gone on the printable page while the table header was preserved. It seems like this:
Item | Col1 | Col2 | Col3 | Col4 | Col5 |
Rows 1-0 of 4
Such effect is kinda like the situation when u configure *<output-mode>printable</output-mode> in trinidad-config.xml*, which simply truncates the treetable.
Such effect is gone when you are not using popup window. In other words, you won't face this problem and will get a normal treetable with full data when using tab or browser window.
But currently the requirement needs that this is be done in popup window.
Anyone give me a hint on solving this?

I am able to get the details by designing the screen in jsp page instead of jspx page.

Similar Messages

  • af:showPrintablePageBehavior problem against af:treetable on Firefox

    I just used <af:showPrintablePageBehavior> for <af:treetable>, but got a incomplete printable page. I faced this problem on Firefox 2/3/3.5.
    Such treetable contains many rows of data, and its content cannot be printed just in one page (typically 3 pages or more) . What I mean incomplete is that, after treating <af:treetable> using <af:showPrintablePageBehavior> it seems all data displayed on the printable page, but after using print function of Firefox browser you can find out that not all rows of data is printed (just partial row data).
    This problem only occurs on Firefox, while it's gone on other browsers like IE7/IE8/GoogleChrome/Safari4.
    Other browsers take the printable source as several pages, you can see page numbers like 1 of 3, 2 of 3, 3 of 3...etc, while Firefox just simply takes the printable source as just one page where you can just get page number 1 of 1.
    I know this is not a typical problem, but still long for someone who can help me.

    Hi,
    not sure this is an issue with the showPrintablePageBehavior if IE shows all data in the browser after using this behavior. The print functionality is owned by the browser and obviously it doesn't get to all of the page content (which I think is out of the ADF Faces scope). You may try and file a Service Request with customer support for them to have a look. However, if the showPrintablePageBehavior properly displays the data, then I am not sure what we can do to make the browser native print functionality working
    Frank

  • MacKeeper Ads, Popup Windows problem - Any Solution?

    Hi,
    I have a problem with 'MacKeeper'.
    It opens popup windows, shows link ads on any webpage I visit, distorts google search results etc.
    This happens not only on Safari, but also on Chrome & Firefox.
    I have tried to clear any spam-looking files from the /Library folder (there's nothing with the name mackeeper, zeobit etc.), also have cleared the cache of Safari, Chrome & Firefox.
    I do not know how to find and remove this unwanted app, program or extension or whatever you may call it from my mac.
    Can anyone suggest a solution?
    Note: I have never installed MacKeeper, so I can not uninstall it.
    Thank you,
    Leo

    You installed the "VSearch" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    This trojan is distributed on illegal websites that traffic in pirated content. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that this Internet criminal has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Popup windows are small and cannot be resized in Firefox v31.0. v30.0 and earlier does not have this problem. Example: Hostgator's SmarterMail. XP, 7, 8.1.

    My webmail interface is SmarterMail from Plesk as supplied by Hostgator. When Firefox updated to v31.0, I lost the ability to send mail because the popup windows for "New", "Reply", "Reply All", and "Forward" are too small to enter information and cannot be resized or maximized.
    This problem does not occur with older versions of Firefox (tested 16.0.2, 21.0, 24.0, and 30.0) or with Chrome or Internet Explorer. While I am writing to you from a Windows XP Pro SP3 system, I have also verified the problem under Windows 7 Pro (x64) and Windows 8.1 (x64).
    It's not profile settings, malware, or add-ons. I've tried Firefox Safemode and I've tried "Reset Firefox".
    For the time being the workaround is to disable Firefox updates and downgrade everybody with v31 to v30. Please fix this ASAP. You have lots of people reporting it.

    As a temporary workaround, you can block website scripts from resizing windows. It's a bit of a sledgehammer, but another user who has this problem indicated that it does stop the SmarterMail script from rolling up the window.
    Here's how:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''dom''' and pause while the list is filtered
    (3) Double-click the '''dom.disable_window_move_resize''' preference to switch it from false to true.

  • Windows 7 on MacBook Pro Retina late 2013. Showing popup window as "Windows detected a hard disk problem"

    I have installed Windows 7 64 bit version in my MacBook Pro Retina(13") late 2013 model . It was working fine from last 8 months but recently popup window showing as "Windows detected a hard disk problem" once login. Please check the following image.
    I have contacted Apple Support team. They have tested the hard disk while booting from Mac OS and all the reports showing as hard disk is fine. Then I thought might be it was some virus and removed the Bootcamp partition and re-installed Windows 7 Operating System. But once updated Windows 7 with latest updates. This message showing again.
    Would you please help me out to fix this issue. Anybody faced similar issue?

    No I think that all drive are really on failure
    I've boot with an ubuntu livecd and smartmontools see also the failure.
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      1 Raw_Read_Error_Rate     0x001a   200   200   000    Old_age   Always       -       0
      5 Reallocated_Sector_Ct   0x0033   100   100   000    Pre-fail  Always       -       0
      9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       1872
    12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       762
    169 Unknown_Attribute       0x0013   253   253   010    Pre-fail  Always       -       4003597393408
    173 Unknown_Attribute       0x0036   100   100   100    Old_age   Always   FAILING_NOW 12124890467160
    174 Unknown_Attribute       0x0022   099   099   000    Old_age   Always       -       7469954
    175 Program_Fail_Count_Chip 0x0022   099   099   000    Old_age   Always       -       4989854
    192 Power-Off_Retract_Count 0x0012   099   099   000    Old_age   Always       -       31
    194 Temperature_Celsius     0x0022   064   064   000    Old_age   Always       -       36 (Min/Max 11/75)
    197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
    199 UDMA_CRC_Error_Count    0x001a   200   199   000    Old_age   Always       -       0
    240 Unknown_SSD_Attribute   0x0022   100   100   000    Old_age   Always       -       0
    When I use the Mac disk tools from the startup menu, it see also the problem.
    Now the big question is : Why I've this type of issue with 2 MBA and 1 Macbook pro 15".
    Their configurations are the same : windows 7 with truecrypt.
    Maybe Windows drastically reduces the lifetime of the Apple SSD drive.
    The 3 Mac are used for less than 6 month !!!!

  • Problem with combobox gets dispalyed infront of popup window

    when ever popup window is open and kept on combobox ,combobox appears in front or overlaps the popup window,where exactly i have to check the code.which place of code i have to look into... plz help if there is any problem with css then plz specify which property i have to look into..

    [problem with combobox comes infront of popup window|http://forum.java.sun.com/thread.jspa?threadID=5291468]

  • Problem with Popup window in BDC

    Hi Gurus,
    I have an SHDB record for transaction VA01 that is called by an ABAP code via "CALL TRANSACTION 'VA01' USING bdc_tab mode 'N' update 'S'".
    It does work when I use the 'A' mode, but when I use 'N' mode it shows an error that can't find a window. But this window is a modal popup asking for copy the taxes for all entries in ITEM TAB.
    We have many BDC here that works in 'N' mode, but none of them have modal popup windows.
    I've already searched for this problem in SDN but I couldn't find any answer.
    May anyone help me please?
    Thanks very much.
    Fabio Purcino

    I am trying to do this with ME15.
       1                                               T ME15 BS AA X   F
       2 SAPMM06I 0100 X                                                                                                                                                                                                                                                                         
       3                                                 BDC_CURSOR EINA-INFNR
       4                                                 BDC_OKCODE /00
       5                                                 EINA-LIFNR 0001100619
       6                                                 EINA-MATNR 93-0450C
       7                                                 EINE-EKORG 2000
       8                                                 EINE-WERKS 2000
       9                                                 EINA-INFNR 5300032946
      10                                                 RM06I-NORMB X
      11 SAPMM06I 0104 X                                                                                                                                                                                                                                                                         
      12                                                 BDC_CURSOR EINE-LOEKZ
      13                                                 BDC_OKCODE /00
      14                                                 EINA-LOEKZ X
      15                                                 EINE-LOEKZ X
      16 SAPLSPO1 0100 X                                                                                                                                                                                                                                                                         
      17                                                 BDC_OKCODE =YES
    it then keeps the last popup and I cannot stop that...
        PERFORM BDC_DYNPRO      USING 'SAPLSP01' '0100'.
        PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                      'SPOP-OPTION1'.
        PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                       '/00'.              "1432 7/22/2014
    *                                   '=ENTR'.              "1357 7/22/2014
    *                                  '=YES'.               "1356 7/22/2014

  • Problem with a navigation from a Popup Window in an other Window

    Hi Experts,
    i have a problem with a popup window. I explain my problem. I have a DC Component in which there are two different Windows (MainWindow and PopupWindow) and one of this Window is a popup Window. I desire to navigate from the popup window to the main window of the component. Is there a way to accomplish that ?
    I have created the popupWindow and it works very good.
    Thanks a lot for your help.
    Gregorio Perillo
    Edited by: GregorioPerillo on May 28, 2010 5:45 PM

    Hi ,
    By using this code you have to Open Popup Window
    public void popup( )
    //@@begin popup()
    poplink=wdComponentAPI.getWindowManager().createModalWindow(wdComponentAPI.getComponentInfo().findInWindows("Wd_POPupwindow"));
    poplink.setWindowPosition(500,30);
    poplink.open();
    //@@end
    Wd_POPupwindow-- This is Window Name Under this window you can create in View that view having OK and Close Buttion.
    When click on Submit button that time you call the popup method. that time you will get popup window
    Regards
    Vijay Kalluri

  • Jscript popup windows do not resize properly - prior ff versions did not have this problem

    zencart ecommerce website using jscript for image popups - popup window much to small - will not follow script - prior versions of ff did not have this error - I am using ff5

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Popup window problem after search

    There is a page for search.
    In the page,There are some input field for inputting some search condition.
    if the search result was 0, no popup window opens.
    But,when the search result > 0, it is needed to display search result in a popup window.
    I controll this by setting flag to the Backing bean in the search method and open popup with javascript using onload like this.
    <script type="text/javascript">
    <!--
    function openNewWindow() {
    var popupFlag = document.getElementById("popupFlag");
    if (popupFlag.innerHTML=="true") {
    window.open(�`�`�`�`�`);
    -->
    </script>
    <body onload="openNewWIndow()">
    <h:inputText id="popupFlag" value="#{bean.popupFlag}"/>
    But thre is a problem in this way.
    I search once and poupup window appears.
    this has no proble.
    But, When I searched again with error input,
    the validator messages are displayed and popup window appears
    because of remaining the popupFlag value.
    In this case, there is no need to open popup window.
    Someone knows solution or better way to controll popup window?
    if you know,advice me, please!

    Hi siva,
    This is the standard pop-up to search any string on the list output. If you want to make it 5 characters long, then you have to implement the user exit (screen exit). since it is the standard screen, I dont think it is so easy to extend the screen field upto 5 characters long.
    BTW you can enter max 999 hits. if you have a list output more than 1000 lines then you can use the checkbox starting at current line for doing a search starting again from 1000th line till the end line. This way you can search 'N' numbers of lines.
    To summarize you have to do a search after each 999 hits e.g. your 999 hits has been completed on 500th line then you need to put the cursor on 501th line and then again do a search using the checkbox starting at current line.
    If you have any more doubts then please let me know.
    Regards
    Sumit Bhutani

  • Need help with a popup window problem

    I have this code within my certAppB.js page :
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    Which produces a popup windows that says:
    Submitting this form will begin the approval process
    You will not be able to come back to this form to edit it again
    Do you want to continue submitting this form?
    OK Cancel (these are 2 buttons)
    I want to change this to say:
    Submitting this form will begin the approval process. You will not be able to change this form once submitted. You also agree that the following statement is true and correct to the best of your knowledge and belief:
    "I, [User Name], hereby certify and state on behalf of [Company Name] that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.�6314, as applicable, including authorized waivers, as they currently exist on [Date]."
    Do you want to continue submitting this form?
    OK           Cancel
    So I have to pull the users [User Name], [Company Name], and the [Date].
    On the approverView.jsp login page ( which is the first login page users see after loggin) it shows
    the users full name, so I nabbed the code from that page:
    <body>
    <jsp:include page="logo.jsp" />
    <jsp:include page="unav-navigate.jsp" />
    <table width="100%" border="0" cellspacing="0" cellpadding="5" class="info">
    <tr>
    <td width="25%" valign="top">
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="welcome">Welcome
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <span class="sm">If you are not this person, please click <html:link styleClass="norm" href="/fake_name/logoff.do">here</html:link>.</span></td>
    <td width="2%"> </td>
    <td width="73%" valign="top"><jsp:include page="instruction.jsp" /></td>
    </tr>
    </table>
    and made this code out of it to pull the username,companyname:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    This is the userView.java page that is referanced :
    * Created on Mar 28, 2003
    * To change this generated comment go to
    * Window>Preferences>Java>Code Generation>Code Template
    package org.fake.name.view;
    import java.io.Serializable;
    import java.util.List;
    import org.gama.cafs.businessobjects.TorqueDb;
    * @author chris
    public class UserView implements Serializable {
         private int userId;
         private int memberId;
         private int companyId;
         private String role;
         private String firstName;
         private String lastName;
         private String companyTitle;
         private String emailAddress;
         private String phoneNumber;
         private String companyName;
         private String address1;
         private String address2;
         private String address3;
         private String city;
         private String state;
         private String province;
         private String postalCode;
         private String countryName;
         private List productTypes = null;
         private List productTypeAcronyms = null;
         private List productTypeIds = null;
         private List tradeNameIds = null;
         private List tradeNames = null;
         private TorqueDb torqueDb = null;
         public UserView() { }
         * @return String
         public String getAddress1() {
              return address1;
         * @return String
         public String getAddress2() {
              return address2;
         * @return String
         public String getAddress3() {
              return address3;
         * @return String
         public String getCity() {
              return city;
         * @return String
         public String getCompanyName() {
              return companyName;
         * @return String
         public String getCompanyTitle() {
              return companyTitle;
         * @return String
         public String getCountryName() {
              return countryName;
         * @return String
         public String getEmailAddress() {
              return emailAddress;
         * @return String
         public String getFirstName() {
              return firstName;
         * @return String
         public String getLastName() {
              return lastName;
         * @return int
         public int getMemberId() {
              return memberId;
         * @return String
         public String getPhoneNumber() {
              return phoneNumber;
         * @return String
         public String getPostalCode() {
              return postalCode;
         * @return Set
         public List getProductTypes() {
              return productTypes;
         * @return String
         public String getProvince() {
              return province;
         * @return String
         public String getRole() {
              return role;
         * @return String
         public String getState() {
              return state;
         * @return int
         public int getUserId() {
              return userId;
         * Sets the address1.
         * @param address1 The address1 to set
         public void setAddress1(String address1) {
              this.address1 = trimString(address1);
         * Sets the address2.
         * @param address2 The address2 to set
         public void setAddress2(String address2) {
              this.address2 = trimString(address2);
         * Sets the address3.
         * @param address3 The address3 to set
         public void setAddress3(String address3) {
              this.address3 = trimString(address3);
         * Sets the city.
         * @param city The city to set
         public void setCity(String city) {
              this.city = trimString(city);
         * Sets the companyName.
         * @param companyName The companyName to set
         public void setCompanyName(String companyName) {
              this.companyName = trimString(companyName);
         * Sets the companyTitle.
         * @param companyTitle The companyTitle to set
         public void setCompanyTitle(String companyTitle) {
              this.companyTitle = trimString(companyTitle);
         * Sets the countryName.
         * @param countryName The countryName to set
         public void setCountryName(String countryName) {
              this.countryName = trimString(countryName);
         * Sets the emailAddress.
         * @param emailAddress The emailAddress to set
         public void setEmailAddress(String emailAddress) {
              this.emailAddress = trimString(emailAddress);
         * Sets the firstName.
         * @param firstName The firstName to set
         public void setFirstName(String firstName) {
              this.firstName = trimString(firstName);
         * Sets the lastName.
         * @param lastName The lastName to set
         public void setLastName(String lastName) {
              this.lastName = trimString(lastName);
         * Sets the memberId.
         * @param memberId The memberId to set
         public void setMemberId(int memberId) {
              this.memberId = memberId;
         * Sets the phoneNumber.
         * @param phoneNumber The phoneNumber to set
         public void setPhoneNumber(String phoneNumber) {
              this.phoneNumber = trimString(phoneNumber);
         * Sets the postalCode.
         * @param postalCode The postalCode to set
         public void setPostalCode(String postalCode) {
              this.postalCode = trimString(postalCode);
         * Sets the productTypes.
         * @param productTypes The productTypes to set
         public void setProductTypes(List productTypes) {
              this.productTypes = productTypes;
         * Sets the province.
         * @param province The province to set
         public void setProvince(String province) {
              this.province = trimString(province);
         * Sets the role.
         * @param role The role to set
         public void setRole(String role) {
              this.role = trimString(role);
         * Sets the state.
         * @param state The state to set
         public void setState(String state) {
              this.state = trimString(state);
         * Sets the userId.
         * @param userId The userId to set
         public void setUserId(int userId) {
              this.userId = userId;
         * @return List
         public List getProductTypeAcronyms() {
              return productTypeAcronyms;
         * Sets the productTypeIds.
         * @param productTypeIds The productTypeIds to set
         public void setProductTypeAcronyms(List productTypeAcronyms) {
              this.productTypeAcronyms = productTypeAcronyms;
         public List getProductTypeIds() {
              return productTypeIds;
         public void setProductTypeIds(List productTypeIds) {
              this.productTypeIds = productTypeIds;
         private String trimString(String str) {
              String tmp = null;
              if (str != null)
                   tmp = str.trim();
              else
                   tmp = str;
              return tmp;
         public List getTradeNameIds() {
              return tradeNameIds;
         public List getTradeNames() {
              return tradeNames;
         public void setTradeNameIds(List list) {
              tradeNameIds = list;
         public void setTradeNames(List list) {
              tradeNames = list;
         public TorqueDb getTorqueDb() {
              return torqueDb;
         public void setTorqueDb(TorqueDb db) {
              torqueDb = db;
         public int getCompanyId() {
              return companyId;
         public void setCompanyId(int i) {
              companyId = i;
    Question:
    How do I insert the code I assembled:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    INTO the function:
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    So that the popup window will show the [username], [CompanyName], [Date]. I can�t find any doc�s on how to insert logic into a function with str�s.
    Any help would be very much appreciated. Thanks in advance.
    Applications used by me: Sun solaris 8 server, Tomcat 4.1.24, pulling from postgresql 7.3, and I edit in Eclipse 2.11.

    These two tags:
    <logic:present name="UserContainer" property="userView" scope="session">
    </logic:present>
    surround things you only want to happen if there is a userView object present.
    This tag:
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    is replaced with the value of userView.getFirstName().
    So:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    becomes:
    User Jim Steinberger !
    if the userView object is present and firstName == Jim and lastName == Steinberger.
    To insert those values into your JavaScript function:
    <logic:present name="UserContainer" property="userView" scope="session">
    function AppSubmit() {
    str1 = "Submitting this form will begin the approval process.";
    str2 = "You will not be able to come back to this form to edit it again.";
    str3 = "You also agree that the following statement is true and correct to the best of your knowledge and belief:";
    str4 = "";
    str5 = "I, <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>, hereby certify and state on behalf of <bean:write name="UserContainer" property="userView.companyName" scope="session"/> that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.?6314, as applicable, including authorized waivers, as they currently exist on " + new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + ".";
    str6 = "Do you want to continue submitting this form?";
    if((confirm( str1 + "\n" + str2 + "\n" + str3 + "\n\n\n" + str4 + "\n" + str5 + "\n" + str6 ))){
    document.forms[0].status.value="Submitted";
    document.forms[0].submit();
    </logic:present>
    Should become:
    function AppSubmit() {
    str1 = "Submitting this form will begin the approval process.";
    str2 = "You will not be able to come back to this form to edit it again.";
    str3 = "You also agree that the following statement is true and correct to the best of your knowledge and belief:";
    str4 = "I, Jim Steinberger, hereby certify and state on behalf of Dynamic Edge, Inc. that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.?6314, as applicable, including authorized waivers, as they currently exist on " + new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + ".";
    str6 = "Do you want to continue submitting this form?";
    if((confirm( str1 + "\n" + str2 + "\n" + str3 + "\n\n" + str4 + "\n" + str5 + "\n\n" + str6 ))){
    document.forms[0].status.value="Submitted";
    document.forms[0].submit();
    after being processed by Tomcat and Struts. (Note: the function will not appear if userView is missing)
    By the way, you might be missing the closing bracket to function AppSubmit() { which might throw a JavaScript error. Just FYI :)
    Good luck!
    Jim Steinberger
    [email protected]

  • Popup window problem in tomcat

    I have this code within my certAppB.js page :
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    Which produces a popup windows that says:
    Submitting this form will begin the approval process
    You will not be able to come back to this form to edit it again
    Do you want to continue submitting this form?
    OK Cancel (these are 2 buttons)
    I want to change this to say:
    Submitting this form will begin the approval process. You will not be able to change this form once submitted. You also agree that the following statement is true and correct to the best of your knowledge and belief:
    "I, [User Name], hereby certify and state on behalf of [Company Name] that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.�6314, as applicable, including authorized waivers, as they currently exist on [Date]."
    Do you want to continue submitting this form?
    OK           Cancel
    So I have to pull the users [User Name], [Company Name], and the [Date].
    On the approverView.jsp login page ( which is the first login page users see after loggin) it shows
    the users full name, so I nabbed the code from that page:
    <body>
    <jsp:include page="logo.jsp" />
    <jsp:include page="unav-navigate.jsp" />
    <table width="100%" border="0" cellspacing="0" cellpadding="5" class="info">
    <tr>
    <td width="25%" valign="top">
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="welcome">Welcome
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <span class="sm">If you are not this person, please click <html:link styleClass="norm" href="/fake_name/logoff.do">here</html:link>.</span></td>
    <td width="2%"> </td>
    <td width="73%" valign="top"><jsp:include page="instruction.jsp" /></td>
    </tr>
    </table>
    and made this code out of it to pull the username,companyname:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    This is the userView.java page that is referanced :
    * Created on Mar 28, 2003
    * To change this generated comment go to
    * Window>Preferences>Java>Code Generation>Code Template
    package org.fake.name.view;
    import java.io.Serializable;
    import java.util.List;
    import org.gama.cafs.businessobjects.TorqueDb;
    * @author chris
    public class UserView implements Serializable {
         private int userId;
         private int memberId;
         private int companyId;
         private String role;
         private String firstName;
         private String lastName;
         private String companyTitle;
         private String emailAddress;
         private String phoneNumber;
         private String companyName;
         private String address1;
         private String address2;
         private String address3;
         private String city;
         private String state;
         private String province;
         private String postalCode;
         private String countryName;
         private List productTypes = null;
         private List productTypeAcronyms = null;
         private List productTypeIds = null;
         private List tradeNameIds = null;
         private List tradeNames = null;
         private TorqueDb torqueDb = null;
         public UserView() { }
         * @return String
         public String getAddress1() {
              return address1;
         * @return String
         public String getAddress2() {
              return address2;
         * @return String
         public String getAddress3() {
              return address3;
         * @return String
         public String getCity() {
              return city;
         * @return String
         public String getCompanyName() {
              return companyName;
         * @return String
         public String getCompanyTitle() {
              return companyTitle;
         * @return String
         public String getCountryName() {
              return countryName;
         * @return String
         public String getEmailAddress() {
              return emailAddress;
         * @return String
         public String getFirstName() {
              return firstName;
         * @return String
         public String getLastName() {
              return lastName;
         * @return int
         public int getMemberId() {
              return memberId;
         * @return String
         public String getPhoneNumber() {
              return phoneNumber;
         * @return String
         public String getPostalCode() {
              return postalCode;
         * @return Set
         public List getProductTypes() {
              return productTypes;
         * @return String
         public String getProvince() {
              return province;
         * @return String
         public String getRole() {
              return role;
         * @return String
         public String getState() {
              return state;
         * @return int
         public int getUserId() {
              return userId;
         * Sets the address1.
         * @param address1 The address1 to set
         public void setAddress1(String address1) {
              this.address1 = trimString(address1);
         * Sets the address2.
         * @param address2 The address2 to set
         public void setAddress2(String address2) {
              this.address2 = trimString(address2);
         * Sets the address3.
         * @param address3 The address3 to set
         public void setAddress3(String address3) {
              this.address3 = trimString(address3);
         * Sets the city.
         * @param city The city to set
         public void setCity(String city) {
              this.city = trimString(city);
         * Sets the companyName.
         * @param companyName The companyName to set
         public void setCompanyName(String companyName) {
              this.companyName = trimString(companyName);
         * Sets the companyTitle.
         * @param companyTitle The companyTitle to set
         public void setCompanyTitle(String companyTitle) {
              this.companyTitle = trimString(companyTitle);
         * Sets the countryName.
         * @param countryName The countryName to set
         public void setCountryName(String countryName) {
              this.countryName = trimString(countryName);
         * Sets the emailAddress.
         * @param emailAddress The emailAddress to set
         public void setEmailAddress(String emailAddress) {
              this.emailAddress = trimString(emailAddress);
         * Sets the firstName.
         * @param firstName The firstName to set
         public void setFirstName(String firstName) {
              this.firstName = trimString(firstName);
         * Sets the lastName.
         * @param lastName The lastName to set
         public void setLastName(String lastName) {
              this.lastName = trimString(lastName);
         * Sets the memberId.
         * @param memberId The memberId to set
         public void setMemberId(int memberId) {
              this.memberId = memberId;
         * Sets the phoneNumber.
         * @param phoneNumber The phoneNumber to set
         public void setPhoneNumber(String phoneNumber) {
              this.phoneNumber = trimString(phoneNumber);
         * Sets the postalCode.
         * @param postalCode The postalCode to set
         public void setPostalCode(String postalCode) {
              this.postalCode = trimString(postalCode);
         * Sets the productTypes.
         * @param productTypes The productTypes to set
         public void setProductTypes(List productTypes) {
              this.productTypes = productTypes;
         * Sets the province.
         * @param province The province to set
         public void setProvince(String province) {
              this.province = trimString(province);
         * Sets the role.
         * @param role The role to set
         public void setRole(String role) {
              this.role = trimString(role);
         * Sets the state.
         * @param state The state to set
         public void setState(String state) {
              this.state = trimString(state);
         * Sets the userId.
         * @param userId The userId to set
         public void setUserId(int userId) {
              this.userId = userId;
         * @return List
         public List getProductTypeAcronyms() {
              return productTypeAcronyms;
         * Sets the productTypeIds.
         * @param productTypeIds The productTypeIds to set
         public void setProductTypeAcronyms(List productTypeAcronyms) {
              this.productTypeAcronyms = productTypeAcronyms;
         public List getProductTypeIds() {
              return productTypeIds;
         public void setProductTypeIds(List productTypeIds) {
              this.productTypeIds = productTypeIds;
         private String trimString(String str) {
              String tmp = null;
              if (str != null)
                   tmp = str.trim();
              else
                   tmp = str;
              return tmp;
         public List getTradeNameIds() {
              return tradeNameIds;
         public List getTradeNames() {
              return tradeNames;
         public void setTradeNameIds(List list) {
              tradeNameIds = list;
         public void setTradeNames(List list) {
              tradeNames = list;
         public TorqueDb getTorqueDb() {
              return torqueDb;
         public void setTorqueDb(TorqueDb db) {
              torqueDb = db;
         public int getCompanyId() {
              return companyId;
         public void setCompanyId(int i) {
              companyId = i;
    Question:
    How do I insert the code I assembled:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    INTO the function:
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    So that the popup window will show the [username], [CompanyName], [Date]. I can�t find any doc�s on how to insert logic into a function with str�s.
    Any help would be very much appreciated. Thanks in advance.
    Applications used by me: Sun solaris 8 server, Tomcat 4.1.24, pulling from postgresql 7.3, and I edit in Eclipse 2.11.

    if the user info is in a bean, you can write it out:
    function AppSubmit() {
    str1 = "welcome, <bean:write name="UserContainer" property="userView.firstName" scope="session"/> ...";
    The javascript code will is interpreted only on the browser, it has no idea that it was written with fixed strings or inserted from the bean.
    If the user info is in form fields, you can do something like this:
    function AppSubmit() {
    str1 = "welcome, " + document.forms['myform'].username.value + " ...";
    ...

  • Popup window size problem

    Hi,
    For some reason, the popup window link in my Flash website
    opens up a popup which doesn't behave to the window size rules I
    set.
    The website is www.caveataudiens.net , click on the 'music'
    button, and then on the Jukebox button to see as example.
    The Jukebox button has the following actionscript:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "
    http://www.caveataudiens.net/music/mp3player.html";
    target_winName = "kirupa";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //sends data back to the function
    openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    and in my main actionscript layer I have:
    stopAllSounds();
    forum_btn.onRelease = function() {
    getURL("
    http://www.flaccidsacks.co.uk/phpBB2/",
    "_blank");
    music_btn.onRelease = function() {
    gotoAndStop("music");
    links_btn.onRelease = function() {
    gotoAndStop("links");
    about_btn.onRelease = function() {
    gotoAndStop("about");
    news_btn.onRelease = function() {
    gotoAndStop("news");
    Movieclip.prototype.openWinCentre = function (url, winName,
    w, h, toolbar, location, directories, status, menubar, scrollbars,
    resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    Can some kind soul help me figure out how to adjust the
    window size?
    Many thanks
    lyle

    Any ideas?
    When I change the settings for toolbar, status, etc, then the
    changes take effect, it seems though only the width and height
    don't work for some reason.
    I would be very grateful for any suggestions
    Thanks
    Lyle

  • Problem in Popup Window in OAF

    Hi,
    We are populating a table results page in OAF based on the search items. In the Results table, we have a link(to a new page that has only one table region) on a column(itemstyle: link) so that it should open in a popup modal window. On closing the same, I should be able to conduct a new search.
    But what happens here is, after closing the popup window, we are not able to conduct a new search on the same page; the Result table is populated based on the previous search values (that is the master page still holds the old search values and when Go button is clicked the results based on the previous values would be displayed). Even if I click ‘Go’ button, the process form request method is not being called. Also the firePartial actions such as making a field mandatory are not working. This happens only after opening the link & closing the popup window. If we do not click to open the pop up window, we are able to make n number of searches.
    The link to open the popup window is:
    javascript:openWindow(top,'OA.jsp?page=/ikn/oracle/apps/ak/webinv/webui/SearchCompPG&param1={@param1}&param2={@param2}&retainAM=N &addBreadCrumb=N', 'modal', {width:750, height:350},true, 'dialog', null);void(0);
    Please let me know the fix for this issue.
    Thanks in advance.

    Ah, the daily OAF post.
    There is an [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum for these types of questions.
    Regards,
    John

  • Table never gets populated inside popup window on customer's site

    I'm working on application in ADF (ADF BC, ADF Faces) with JDeveloper 11.1.1.4 (application deployed on customer's site in Weblogic Server 10.3.6)
    and in one page I'm having a button behind which is a code to execute a query against a table whose data is going to be shown in popup window.
    Query limits the number of records to be shown to 100 (in query: rownum <= 100).
    In my development environment this works fine, but there is a problem on customer's site.
    For the query to execute it takes about 20 seconds at the site of customer. After that in backing bean there is a code to show popup.
    In the page - popup starts showing (it means that query ended) but never fetching data in the table (all the time there is a message - "Fetching data" like framework is retrieving it but nothing happens).
    I have tested a query in SQL*plus - it returns data.
    I couldn't find out what is the reason for such behaviour.
    Do you have any suggestions what to try?
    Thanks,
    Nebojsa

    I've found the reason for not populating table in popup.
    Although there is a limitation to the number of rows displayed in table in the form of additional where clause: "rownum <=n" this part of where clause is added to the VO in overridden method: executeQueryForCollection.
    Before executing this method framework is executing: getEstimatedRowCount which when executed for the first time through method getQueryHitCount executes a query against the database (select count(1) from... without my rowum <=n which is added to the query afterwards in above mentioned method executeQueryForCollection).
    My question is: if I don't want to add rownum <= n at design-time, where it would be the best place to add it to the query so to avoid above described situation and to have that rownum <= n in place for the count query as well?
    Nebojsa

Maybe you are looking for

  • Lumia 620 (Amber) does not find a Bluetooth 4.0 he...

    I purchased a BT4 heart rate monitor (Polar H6) after my Lumia 620 got the Amber update as the update promised to bring BT4 support to my phone. On the Nokia specifications page for my phone also states that Lumia 620 supports "Bluetooth 4.0 + LE". H

  • How to validate whether a unpaid invoice is eligible for Cash discount or not ??

    Hi all, I need to display all the unpaid invoices which are eligible for cash discount only using a report. I'm getting bukrs, lifnr and posting date as selection criteria. BSIK as base table. Pls suggest me. thanks, Shameer.

  • Scheduling program in background

    Hi All    I have scheduled a program with selection screen in background.    I have scheduled it to run every minute . when I go to sm37 and check it shows the job my job name and against it it say 'Released' .   Why doesn't my program start in backg

  • Move line on graph with mouse

    I have what I believe to be a unique application where I need to draw a line on a graph which can be moved by simply clicking in predefined boxes attached to the line. Boxes above and below the line in the upper right and lower left will be used to r

  • Cfajaxproxy

    I am getting coldfusion 8 ERROR using cfajaxproxy: "The path to the CFC must be specified as a full path, or as a relative path from the current template, without the use of mappings." "The specified CFC vindexer_server_ver3 could not be found. " at