Studio Server Portlet in Popup Window

I am trying to get a studio server portlet (a form) to open in a popup window. The code I'm using is as follows:
<pt:gatewayLink xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" pt:objectID="201" pt:href="myStudioServerURL/studio/gw?m=apprun.viewPage" target="myWindow" onclick="window.top.open('','myWindow',height=400,width=500,status=no,toolbar=no,menubar=no,location=no')">Click Here</pt:gatewayLink>
This seems to work (the portlet opens in a new window and functions like I'd expect), but the styles are missing. Is this the proper way to open portlets in a popup window? Do I do the same for studioi server portlets? If so, how do I invoke the styles as if the studio server portlet were in a community page.
Joe Westgerdes

I am trying to get a studio server portlet (a form) to open in a popup window. The code I'm using is as follows:
<pt:gatewayLink xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" pt:objectID="201" pt:href="myStudioServerURL/studio/gw?m=apprun.viewPage" target="myWindow" onclick="window.top.open('','myWindow',height=400,width=500,status=no,toolbar=no,menubar=no,location=no')">Click Here</pt:gatewayLink>
This seems to work (the portlet opens in a new window and functions like I'd expect), but the styles are missing. Is this the proper way to open portlets in a popup window? Do I do the same for studioi server portlets? If so, how do I invoke the styles as if the studio server portlet were in a community page.
Joe Westgerdes

Similar Messages

  • Studio Server Portlet page content change

    Where do I change the content of default page created by STUDIO PORTLET WIZARD? How do I access that page?
    Any tips or hints would be greatly appreciated.ThanksSnehal

    Travis,
    I just spoke to the engineer working on this for the 4.1 release and it has
    already been implemented. If you want to do some custom coding I think you
    can also write a JSP that exposes the API methods to your users to change
    the display name.
    http://edocs.bea.com/wlp/docs40/javadoc/wlp/index.html
    Sincerely,
    Daniel Selman
    "travis wissink" <[email protected]> wrote in message
    news:3cc46327$[email protected]..
    >
    Dan,
    Actually, I think the "display-name" is the more appropriate element toedit.
    >
    This is a bummer; this appears so naturally for the example, when in factits going
    to be nearly impossible for a "Business User" to edit such a file. Iguess my main
    request to the EBCC group is if there is an option in any of theassociated schema's,
    e.g. the "display-name" element in the portal-1_0.xsd schema, then providea way
    to edit it via the EBCC.
    Thanks,
    Travis Wissink
    "Daniel Selman" <[email protected]> wrote:
    Travis,
    It looks like you are going to have to edit the XML by hand to introduce
    the
    space into the portlet-name. E.g.
    <portlet-name>ReviewNewsletters</portlet-name>
    goes to:
    <portlet-name>Review Newsletters</portlet-name>
    I will take this up with the EBCC engineers and file a CR. Please let me
    know if this does not solve the problem.
    Thanks (and sorry),
    Daniel Selman
    "travis wissink" <[email protected]> wrote in message
    news:3cc45bd8$[email protected]..
    Subbu,
    I've been all over the ebcc. Even inside of the xml files. Nowhere dois
    see the
    possibility of manipulating the "Display Name" of the portlets in theebcc
    at all.
    Of course when you create a new portlet you can name it but that namehas
    restrictions
    against it, e.g. no spaces.
    Do you know specifically where I can manipulate that attribute in theebcc?
    -Travis
    Subrahmanyam Allamaraju <[email protected]> wrote:
    Sorry for mt wrong answer. You've to do this via the EBCC. Check the
    default portal configuration.
    Sincerely,
    Subbu

  • Open portlet as popup and communication with opener

    Hi,
    I need open portlet as popup window from another portlet. After that when user select some data (id) I need close window and then set up hidden html input field on opener portlet according to selected data (id) on popup window. I suppose it via Javascript, right?. I didnt find any example or information about it so thanks for any info about it. Sure any code would be great.
    Thanks for helping.

    Hi
    Use http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc/com/bea/portlet/StandalonePortletURL.html to generate the url (or render:standAlonePortletUrl)
    Use window.opener to reference the main window from the popped up window.
    (e.g. http://www.webreference.com/js/tutorial1/opener.html)
    regards
    deepak

  • Open a Form in a popup window from a PL/SQL portlet

    Hi,
    I have a form that I want to open in a popup window from a URL in a PL/SQL portlet. What is the easiest way to do this? Are there any examples in here or on Metalink as to how to achieve this?
    Thanks,
    Steve West

    Is it a HTML page somewhere on a server with a HTML form on it? You can use javascript tags in ur link to do this maybe?
    javascript:window.open('http://<server name>/page.htm','mywindow','width=400,height=200')
    Obviously if this is a portal form you can also link directly to the show procedure no problems.

  • Os10.5.8 connection FTP server no popup windows asking for my logging and password

    I'm actually working on mac book pro 10.5.8 and I try to access a FTP server. Finder then command+P and my address. The finder open me two files "Array and Info" but nothing in the Array folder where everything should be. The problem found is that the system is not asking me for my password and login. My friend who is working on 10.6 get this popup windows asking for login and password. Why I don't get this windows on os 10.5.8. 

    find the trick. ftp://name@server

  • Close the ADF popup window from deployed JSP in other server

    I am attempting to open jsp page which one is deployed on tomcat server in adf pop up window from cmd button event.and this first jsp will forward to second jsp and i should able to close from pop window from second jsp close button.
    This is what i did:
    1) created pop-up window and run the delployed jsp on pop up page
    2) i used window.close script in second jsp but not popup window is not get closed .
    help me to achieve this pblm ....

    i was trying to open &close other server's jsp from ADF pop-up window ... so base is internal window (pop-up) only ,
    and already i used onclick="window.close();" in command button...but its not closeing the adf pop-up window ... how that jsp cmd button onclick event take control of adf pop-up to close ?
    help me ???

  • 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]

  • Windows Server 2008 r2 as Windows XP Pro 2.0 (Issue: 1)

    Windows Server 2008 r2 as Windows XP Pro 2.0 (Issue: 1)
    Flabbergasted at the sheer level of idiocy required to use Windows 7 Ultimate or Windows 8.1 Pro I remain a stead fast winXPro user to this day (mid-2014) and beyond. My i3-3225 XP machine turns 2000+ Passmark system scores and excels at everything the
    way we all use to, before Microsoft's policy of operating systems built for idiots, by idiots came to pass. Then as a sheer act of desperation I tried Server 2008 r2... is it the OS I have dreamed of? Short of an XP Theme conversion kit I have questions...
    Problem 1) Windows Explorer: In the folder directory left pane... the little [+] box next to the folder names flash on and off each time I use the right window pane. Can I by any and all means make them not do this, remain visible, sit still; like XP used
    to do?
    Problem 2) Start Menu: This popup is a double wide window pane, two columns of annoyance. Can I reduce this to a single wide by removing the right pane entirely by any and all means. I have removed every button from the right pane, but it still exists, it still
    has a default picture user icon and says Administrator.
    Problem 3) If specific programs/drivers are unavailable for this OS 2008 r2, I presume win 7 x64 by default work.
    Problem 4) Passmark benchmarking software tested my system, with windows 8.1 I had a processor score of 9,400, but server 2008 r2 put out only 8,100 in repetitive tests. Why the slowdown? I only use this as an XP like os, no actual server stuff, should i disable
    something?

    Windows Server is not intended to replace Windows XP. i would advice to try Windows 7 or 8 instead.
    1) I cannot picture what you mean. ther is a setting to define wheter the left pane should follow if you browse in the right one. Tools- folder options- general 'navigation pane'
    2)Windows vista/2008 is the last version that had a (optional) single pane start menu. if you don't like the current one, ther is third party software available to replace the start menu
    3) yes, these will be ok
    4) 2008 R2 is a server OS and is out-of-the bow not optimized for foreground applications. Windows 8.1 on the other hand is a newer and more performant OS optimized for client usage. in both cases a lot of performance gain is to be expected by selecting
    the right drivers, disabling or unisntalling unneeded software and windows features, disabling unneeded services. I would recommend to (a least) go to computer properties -advanced settigns- advanced and set 'adjust for best perfomance of" to programs (instead
    of background services)
    MCP/MCSA/MCTS/MCITP

  • Can't get popup window to work, could use code help.

    This is the first time I've tried to open a popup window in
    flash, and I can't get it to work. The site I'm building has the
    navigation buttons contained in an animated movie clip. All of the
    navigation buttons work fine. But there's a link that the company
    wants me to add that opens a window to another site who hosts a
    video commercial for the company (it has to be a link to the other
    site, it can't be added directly to the customers site).
    The link the other company sent me is for javascript (I'll
    include it in the attached code), and the code works great if I
    just insert the javascript in the html. But I wanted to try and get
    the link in the Flash menu. I've tried several versions of the
    code, from applying it directly to the button to naming an instance
    of it and attaching the actionscript in the movie clip. When I'm
    done, I get two different problems. On my XP machine, I get a
    warning error about the flash trying to open something to another
    server. On my Vista machine, nothing happens at all.
    Anyway, I'm including the original javascript and several
    versions of the actionscript I've tried (with the actual site
    information replaced with "fakeurl.com", wasn't sure how these
    forums felt about including site info). Any help at all would be
    greatly appreciated. I've searched and searched for about a week,
    and I'm tempted to just do away with the Flash button and use a
    cheesy javascript button for this one link.
    Thanks!
    MoAtt

    In article <[email protected]>,
    [email protected] wrote:
    > All I want to do is have a Close Window link in my popup window that works.
    Select your text that you want to act as a trigger to close the window,
    just as if you were going to create a link.
    Then paste the following line of code into the link Inspector:
    javascript:self.close();
    That should do the trick.
    Cheers Martin

  • Images in a popup window

    Hi,
    I have some difficulty displaying images in a popup window. The (Tomcat 5.5) server apparently sends them with a content type of utf-8 text, which leads to an exception page shown in the popup window instead of the picture.
    In web.xml I checked the mime-mapping for the images:
         <mime-mapping>
              <extension>jpg</extension>
              <mime-type>image/jpeg</mime-type>
         </mime-mapping>
    etc.
    The html part is this:
    <a href="# onclick="window.open('${image.path', '',
    'status=no,width=${image.width},height=${image.height}');">Show Picture</a>
    How can I get the server to send the images with the proper Content-types? Do I necessarily have to create a separate JSP page for this purpose?
    Thanks,
    Laszlo Borsos

    Thanks for that !
    Sadly (probably due to my HTML knowledge or lack of) I'm not
    getting very far at all. I've added some skeleton classes to
    default.css simply to see if anything changes and it's not :-(. Can
    anyone advise what I might be doing wrong here ? - the final goal
    is to have normal hyperlinks exactly as they are just now but with
    popup links to have a dotted underline instead of a solid
    underline.
    A.link {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    A.visited {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    A.hover {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    A.popup.link {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    border-bottom: 1px dotted
    A.popup.visited{
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    border-bottom: 1px dotted
    A.popup.hover{
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    border-bottom: 1px dotted
    }

  • DW 8 to play swf file in popup window

    The swf file plays fine with the source file (flv) on
    streaming server. see page
    http://www.jobclub.com/testing/healthcare.html
    Open Employment Video Profile in center. All I want to do is to
    have iit play in a popup window.
    But I cannot figure out how to play the swf file in a popup
    window
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','285','height','231','title','HealthSouth','src','eva/evaemp/HC240','quality','high',' pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwa veFlash','movie','eva/evaemp/HC240'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="285" height="231" title="HealthSouth">
    <param name="movie" value="eva/evaemp/HC240.swf" />
    <param name="quality" value="high" />
    <embed src="eva/evaemp/HC240.swf" quality="high"
    pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="285"
    height="231"></embed>
    </object>
    </noscript>
    Thanks
    Mat Media

    Do you really want to open a new window, or do you just want
    to show a hidden layer that looks like a pop-up?

  • Can I launch a new JSP on a popup window, when cliking a HTMLB button ?

    Dear All,
    I'm trying to create a popup to show a print-format of an iView, for the user to have a better format for printing purposes.
    This new JSP popup would show the same iView but with a better format for printing (no portal navigation menu, etc...)
    My question is: Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
    Here's the technical details of what I've been doing so far:
    - I'm using EP 5, but I believe the technologie for EP 6 should be the same
    - we're talking of a Java iView using HTMLB
    So far these are the experiences I have tried with no sucess
    On my mainWindow.jsp I have this piece of code, but it doesn't work:
    (etc...)
    <%
    ResourceBundle res = componentRequest.getResourceBundle();
    IResource rs = componentRequest.getResource(IResource.JSP, "printFormat.jsp");
    String JSP_URL = rs.getResourceInformation().getURL(componentRequest);
    %>
    (etc...)
    <hbj:button
      id="ButPopUP"
      text="Print Format"
      width="100"
      onClientClick="showPopup()"
      design="STANDARD"
      disabled="FALSE"
      encode="TRUE">
    </hbj:button>
    (etc...)
    <script language="Javascript">
    function showPopup(){
    mywindow = window.open ("<%=JSP_URL %>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1,
    resizable=1, width=600,height=400");
    htmlbevent.cancelSubmit=true;
    </script>
    (etc...)
    Thank you very kindly for your help.

    Hi Kiran,
    sorry for the late reply.
    Thank you so much for your JAR file.
    Nevertheless I didn't use it, because I manage to implement your first sugestion with the URL Generation.
    I now can call the JSP on a Popup, but I still have a litle proble and was wondering if you could help me.
    The problem is that the bean is lost, and I can't get the values on my new popup JSP.
    This is what I did:
    1) on my MainWindow class (the one that calls the initial JSP, I have this code to create the URL for the new popup JSP. This is the code:
    IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
    IPortalUrlGenerator portalGen = null;
    ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
    if (specUrlGen instanceof IPortalUrlGenerator) {
         portalGen = (IPortalUrlGenerator) specUrlGen;
         try {
              String url = null;
              url = portalGen.generatePortalComponentUrl(request, "Forum_IS.popvalues");
              myBeanDados.setPopupURL(url);
         } catch (NullPointerException e) {
              log.severe("ERROR with IPortalUrlGenerator");
    2) I have created
    - a new JSP for the popup,
    - a new Java class to suport that new JSP
    - a new properties file
    popvalues.properties with the following code:
    ClassName=MyPop
    ServicesReference=htmlb, usermanagement, knowledgemanagement, landscape, urlgenerator
    tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
    MyPop is the new class that is associated with the new JSP popup.
    The problem now is that the bean was lost.
    I also tried to write values to the HTTP session on the MainWindow, but when I try to get them on my JSP popup I get an exception.
    How can I pass the values (or beans) to my new popup JSP ?
    Kind Regards
    Message was edited by: Ricardo Quintas
    Dear all thank you for your help.
    I have managed to solve the problem I had.
    Here's the problem + solution sumary.
    I have to remind you that we are talking of EP 5, PDK 5 (Eclipse version 2.1.0), with JAVA JDK 1.3.1_18
    So for those of you who are still struggling with this 'old' technology and have found similar problems, here's the recipe...
    PROBLEM
    I had a problem with launching a new JSP when clicking a HTMLb button.
    I wanted to create a JSP to present a 'print-format' of an iView.
    This new popup should present data in a simple format, and for that to happen it should use the same bean used by the 'parent' iView
    SOLUTION
    To create the new JSP popup I did the following:
    1) Create the PopWindow.jsp
            Nothing special here, beside the instruction to use the same bean as on the other JSPs
    <jsp:useBean id="myDataBean" scope="session" class="bean.DataBean" />
       2) Create the associated JAVA class
    MyPop.java.      This class will be used to call the PopWindow.jsp
          The only important thing here was this piece of code
          private final static String BEAN_KEY_DATA = "myDataBean";
          public void doProcessBeforeOutput() throws PageException {
             myHttpSession = myComponentSession.getHttpSession();
             myDataBean = (DataBean) myHttpSession.getAttribute(BEAN_KEY_DATA);
             myComponentSession.putValue(BEAN_KEY_DATA, myDataBean);
             this.setJspName("PopWindow.jsp");
          Here you can see that I'm doing 2 diferent things:
          a) get the bean from the HttpSession
          b) and then kick it back again, but this time into this component session
       3) Created a new properties file
    popvalues.properties.      This file contains the follwing code:
          ClassName=MyPop
          tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
          Contrary to some opinions on this discussion,
    you can't call a component in EP 5 by using ComponentName.JSPname.
    Or at least that didn't work for me.
    You nee to use an aproach like this one ComponentName.NewProperiesFileName
    4) On my main class MainClass.java (for the parent iView) I haded the following code on the event doInitialization: 
            IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
            IPortalUrlGenerator portalGen = null;
            ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
            if (specUrlGen instanceof IPortalUrlGenerator) {
                 portalGen = (IPortalUrlGenerator) specUrlGen;
                   try {
                       String url = null;
                       url = portalGen.generatePortalComponentUrl(request, "MyMainApplication.popvalues");
                       myDataBean.setPopupURL(url);
                       } catch (NullPointerException e) {
                          etc...
          The idea here was to build dinamicaly a URL to call the popup.
          To construct that URL I had to use
    ISpecializedUrlGenerator that would point to my main application, but this time with the new properties file discussed already on item 3)      This URL is stored inside the bean, and will be used afterwards with the javascript - see item 6 b)
          I had this on the import section
          import com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator;
       5) Then I had to solve the problem of how to pass the bean from the parent iView to the popup.
          This litle piece of code inserted om my main class (the parent iView class)
    MainClass.java solved the problem: 
          import javax.servlet.http.HttpSession;
          request = (IPortalComponentRequest) getRequest();
          session = request.getComponentSession();
          session.putValue(BEAN_KEY_DATA, myDataBean);
          myHttpSession = session.getHttpSession();
          myHttpSession.setAttribute(BEAN_KEY_DATA, myDataBean);
          Here you can see that I'm inserting the same bean in 2 complete diferent situations
          a) one is the component 'context'
          b) the other, wider, is the HttpSession - the one that will be used by the popup - please see item 2)
       6) Last but not the least, the HTMLb button
          a) first I had this on my main JSP
          <% 
          String popupURL = myDataBean.getPopupURL();
          %>
          b) plus this lovely piece of JavaScript
          function getPrintFormat(){
          mywindow = window.open ("<%=popupURL%>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1, resizable=1, width=600,height=400");
          htmlbevent.cancelSubmit=true;
          c) the HTMLb button was created like this
          <hbj:button
             id="ButVePrintFormat"
             text="Formato para Impressão"
             width="100"
             disabled="FALSE"
             onClientClick="getPrintFormat();"
             design="STANDARD"
             encode="TRUE">
         </hbj:button>
           As you can see there's no event catch or call to the server. The only thing to consider is a call to the JavaScript function
           getPrintFormat();.
           Está todo lá dentro.
           That's all there is to it.

  • P6 EPPM V8.2.2.8 window popup windows not showing.

    I've installed Primavera V8.2.2.8 EPPM on 64bit Windows 2008 R2 sp1 server with weblogic 10.3.5 using a 64 bit JDK (1.6.0_27). The database is 11g on another rhel5 server and has sample data loaded. Initially the install worked great for a bit. I was able to move around to different windows all worked fine. But soon after anything with a popup window (projects, users access, ) will not load and either shows an error like "Fail to load data..Please..." or just shows loading data then stops. In the application settings window changes to the screen does not allow the save button to appear (another pop is displayed before that happens). There are no errors in any logs, no connection errors, no information what so ever. I am using IE 9 and the block pop windows is unchecked.
    The same thing happen on a rhel5 install with weblogic 10.3.6. Oddly, there is another install where I work that functions just fine (via my desktop's browsers) but is on some very old equipment like windows 2003 and oracle 10g.
    Obviously, this is about Primavera P6 EPPM v8.2.2.8 web application; the professional desktop client works fine with the same database.
    Also, I did the same install on a rhel5 box with weblogic 10.3.6 and a 1.6_45 jdk. The same "problem" develops.
    Upgrading to V8.3 is not an option. I may be able to move to JDK 1.7, but i sure would like to get JDK 1.6 to work.
    Thanks your help and let me know if there is any other info that could help.

    JRE1.6_027...
    I am pretty sure it is not a browser issue since I can get see all web functionality with the same IE browser connecting to an existing install that is running on rhel5.1/weblogic 10.3.5/jdk1.6._27.
    I have some more info:
         * no ssl
         * pc with browser in windows 7
         * the windows server is on virutal boxes (wmware)
         * the databases are on virtual boxes (vmware, rhel6)
         * also, the following url never comes back: http://someserver.somedomain:7003/p6/action/pm/openprojectpicklist
    Can someone tell me what SQL is used to run struts action/pm/openprojectpicklist? I am starting to think this is some bizarre database issue or state. Today, I built a new 11g database on a windows server box (virtual) and installed a Primavera eppm p6 8.2.2.8 database in it with no sample data. It worked nicely (today, that is). Like I said it seems to work at first then after a while...breaks.

  • Rendering popup windows in JSF form on demand

    Hello,
    i have a form with a RichFaces menu bar at the top and several other UI components , eg. commandButtons. When a <rich:menuItem> or a <a4j:commandButton> component is clicked, a hidden modal popup window appears for user interaction. At the moment, all JSF files associated with the NetBeans project are downloaded to the client machine.
    In order to reduce network traffic for low bandwidth internet connections, i would like to only download the popup window JSF files from the server to the client if the relevant form UI component is clicked.
    Would anyone suggest a possible method to achieve this please?
    Thanks,
    Mark Weatherill.

    you can open a popup page from commandButton like,
    onclick="window.open('http://www.myapp.com/faces/popup.jsp'); return false;"Use the same faces-managed-bean to input data (on popup page and on the main page). Before closing the popup page you can submit its form to update the model. And after closing the popup page you can refresh the main page. Beware that you might have problems with refreshing in https connection (getting "access is denied" exceptions in jscript)

  • Popup window question

    Hi,
    I did a Portal application using JSF and RAD 6.0 in the Portal page I have two portlets side by side the portlet in the right side has a link to open a popup window when I click in that link and the popup window opens the portlet in the left side is showing in the popup window is there any way to tell the popup np to show the portlet on the left side. I used jsf-popup
    thanks

    Here is how to open a TitleWindow and initialize some values
    in the newly opened TitleWindow.
    var myWin:
    YourTitleWin=YourTitleWin(PopUpManager.createPopUp( this,
    YourTitleWin , true));
    myWin.setParentRef(this);
    In the newly opened window you have to have a method
    setParentRef that accepts a window as an argument. Store the parm
    as a variable in the window.
    There are other ways to do this .. this is just one of
    them.

Maybe you are looking for