Hiding Portlets in Different page

Hi All,
This is my requirement..
I have portal which has two pages Page1 and Page2..And each page has a portlet in it
Initially when the portal gets loaded, Page 2 needs to be hidden which i have done it by setting the property hidden=true for the page2
Page1 has a portlet A which has a button.. When i click on that button, the portletB in the page2 should be visible..
Usually hiding portlets is easier when it happens in the same page but how do we implement the above scenario across the pages
Any help is appreciated
Regards

Hello,
Setting portlet visibility is possible (regardless of what page the portlet is on) from inside the portlet's event handling method by getting the PortletBackingContext and calling the setVisible() method.
I'm guessing that what you want is to have the page that the portlet is on get automatically displayed when the button on your first portlet is clicked. To cause a different page to be displayed, the easiest way is to send an event, and have a portlet on the page you want to change to listen for that event and "activate" the page. For example, in your .portlet file on the page you want to change to:
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:html="http://www.w3.org/1999/xhtml-netuix-modified/1.0.0" xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0" xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet title="Sample Page Activating Portlet" definitionLabel="eventsLinkDef1">
        <netuix:handleCustomEvent event="SampleCustomEvent">
            <netuix:activatePage />
        </netuix:handleCustomEvent>
        <netuix:titlebar>
            <netuix:minimize/>
            <netuix:maximize/>
        </netuix:titlebar>
        <netuix:content>
            <netuix:jspContent contentUri="whatever"/>
        </netuix:content>
    </netuix:portlet>
</portal:root>This means that when the portlet receives "SampleCustomEvent", the page that this portlet is on will automatically be displayed (and the portlet will be displayed as well as long as it hasn't been set to be invisible).
Kevin

Similar Messages

  • Passing Parameters between 2 Portlets on 1 Page

    Hi,
    I'm new to this portlet stuff and I might miss something important, but:
    I "just" want to send parameters from one form on one Page to a portlet on the same page...
    PassAllParameters is already set to true...
    I also have read the "Primer" and the "Adding Parameters and Events to Portlets", after giving up to do this my own, I just copied and pasted the Name/Age Form JSP (nearly... I've made Java out of it...) as my DataProvider Portlet and copied and pasted the "Generic Public Parameter Receiving Portlet" as my DataReceiver Portlet... the Event and Parameter Tags are NOT missing in the provider.xml... but even after pressing submit there are no parameters at all avaible for the "receiving Portlet"!!!
    PLEASE can someone tell me what I am doing wrong?!?!?!?

    Hi friends,
    I worked with the application which is in
    http://server:port/jpdk/providers/event. is working fine with passing parameters to another page.
    Also I create my own application which is working fine if i have the 2 portlets in the same page.
    But it is not working with portlets in different page. On clicking the link it is not going to the another page. Hereby i give the required codes.
    portletpass.jsp:
    PortletRenderRequest prr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String eventSubmit = EventUtils.eventName("submit");
    String eventParamsno = EventUtils.eventParameter("sno");
    String strsno="50" ;
    NameValuePair[] linkParams = new NameValuePair[2];
    linkParams[0] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, eventSubmit), "");
    linkParams[1] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, eventParamsno),strsno);
    <a href="<%=PortletRendererUtil.constructLink(prr,
      prr.getRenderContext().getEventURL(), linkParams, true, true)%>"><%= strtitle %>
    </a>
    provider.xml of portletpass.jsp:
    <event class="oracle.portal.provider.v2.DefaultEventDefinition">
    <name>submit</name>
    <parameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>sno</name>
    <displayName>sno</displayName>
    </parameter>
    </event>
    portletreceive.jsp:
    PortletRenderRequest prr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    //      String snosp = "sno", snorec="" ;
    //     String values = prr.getParameter("sno") -------returns null
         String values = prr.getParameter("_page_url");
         String snorec = values.substring(values.lastIndexOf("sno=")+4) ;
         out.println(snorec); // here i get the required value
    provider.xml of portletreceive.jsp:
    <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>sno</name>
    <displayName>Input Parameter #1</displayName>
    </inputParameter>
    Also i did the necessary changes in parameters and events tab as well.
    I cant sorted out what is the mistake i did.
    The scenario i need is on clicking the link it should display the details in a new page.
    Can anybody please help me.
    Thanks in advance
    Durai

  • Setting portlet properties on different pages

    Hello,
    New to Personalization so I apologize if this is obvious.
    Is there a way to have the same portlet available on multiple
    pages and allow a user to set different properties in a profile
    based on the page the portlet is in? For example, if portlet X
    is available on page A and page B and the edit tab allows the
    user to set value Val1 in a property, is there a way to qualify
    the Val1 property with a namespace so that it is associated with
    the page it is on? Currently if I have some properties defined
    in a profile and I set those profile values in an edit page
    and get them in the top portlet, then those same profile values
    will be associated with that portlet on all pages. That is with
    using the um:getProperty tag. Is there some way through roles
    to namespace profile values based on the page the portlet is on?
    Thanks,
    Curt

    Curt,
    Sure you can.
    Just define separate user property sets and store the information based on
    the page the user is on.
    You can easily determine the page id using portal API (for example look at
    the jsp which renders the page tabs in the framework directory).
    Regards,
    Michael Goldverg
    "Curt" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello,
    New to Personalization so I apologize if this is obvious.
    Is there a way to have the same portlet available on multiple
    pages and allow a user to set different properties in a profile
    based on the page the portlet is in? For example, if portlet X
    is available on page A and page B and the edit tab allows the
    user to set value Val1 in a property, is there a way to qualify
    the Val1 property with a namespace so that it is associated with
    the page it is on? Currently if I have some properties defined
    in a profile and I set those profile values in an edit page
    and get them in the top portlet, then those same profile values
    will be associated with that portlet on all pages. That is with
    using the um:getProperty tag. Is there some way through roles
    to namespace profile values based on the page the portlet is on?
    Thanks,
    Curt

  • Passing parameters between form portlets on two different pages ...

    Here is a brief summary of our problem.
    We have one master form and a detail form which are published as portlets and placed in two different pages.
    Now i want to pass parameters from master form portlet resides on one page to detail form portlet resides on another page.
    Say for example, when i invoke master form (created based on demo DEPT table), enter values on fields then invoke another page
    on which the second form portlet (say form based on EMP demo table) resides. Now i want to pass deptno to second form and
    get displayed in deptno field of second form.
    I was looking at the following posting, but how to do this when forms are published as portlets and placed on two different pages ?
    http://forums.oracle.com/forums/message.jsp?id=997683
    Customer actually want to pass a parameter from master form to 5 detail form portlets resides on different pages.
    This is bit urgent as it is the only problem stopping the customer go live.
    Thanks in advance.

    Please refer to post Re: session state security
    It tells you how to populate a form portlet in a page by clicking on a link in a report portlet.
    You can use the wwsto_api_session objects to store data submitted by the master and let the detail form pick it up and proceed with the query.

  • Discussion Forum Portlet - Different Page Groups

    I want to deploy the Discussion Forum Portlet on two different page groups which contain their own products and threads. Is this possible?

    The DBA upgraded the portlet and now it looks like we have a db connection problem. Getting error
    Unable to perform the operation: JBO-30003: The application pool (config.AppModuleLocal) failed to checkout an application module due to the following exception:
    The DBA is now working on this.

  • Passing parameter to group of portlets on a page from 1 report

    Hello Forum,
    Portal 3.0.7
    I have a page (page 2) that contains three portlets, each is a single report (Reports b, c, and d). They all query based upon the same parameter value. I have a different page (page 1) that contains a report (report a). I want to setup a link in report a that calls page 2, passes the parameter value to reports b,c,and d. With the reports b,c, and d reporting based upon the parameter value.
    Does anyone have any ides on how to do this? I have been successful in the past using forms based upon procedures to share a parameter amounts several portlets on a single page. But I have no idea how to call a page, pass the parameter and refresh the page in one step.
    Thanks in advance,
    Andre'

    You should concatenate to the url of the page wich contains the three forms with somthing that is near to the following :
    '&parameter_name='||parameter_value
    as many times as you have parameters in the portlets on the page.
    then you should call the new url
    hope that this could help you

  • Adding a portlet to a page like the customize or edit link

    I hope somebody else out there has seen or tried this...
    I would like to have a list of portlets, similar to the way the repository displays them, inside of a portlet on a page. Each entry would be a link, that when clicked, would add the selected portlet to a different region on the page. Basically it would be a way to do the customize (add/remove portlets) function without having to click customize and drill into the repository. Is there anything in the PDK APIs or something that can do this?
    Thanks,
    Mike

    Hi Mike -
    What version are you using? The Portlet Repository Page group in 9.0.2.6+ is what you see when you add portlets through the normal UI. You can have a look in there and see what they call.
    Hope this helps,
    Candace

  • How Do I Create A Link To  A Different Page?

    I'm using the v10.1.2 Portal.
    I created 6 Oracle Portlets implemented using JSP. I then created 2 pages within the same page group.
    On page 1 I put Portlet_1a, Portlet_1b and Portlet_1c. On page 2 I put Portlet_2a, Portlet_2b and Portlet_2c.
    In Portlet_1a I want to create a link that, when clicked, will bring the user to Page 2.
    Can someone explain how I can go about doing this? What classes/api should I use? How do I specify a different page within the Page Group?
    Thanks,

    Hi,
    Its can be done, Im also using this.
    There are 2 ways how I do it
    1) I have a .properties file on the app server where I've put an attribute eg page2URL= http:\\......
    In Portlet_1a I read this attribute and use it for navigation. Every portlet instance will read the same attribute value.
    2) You can have a Personalization Object and put the page2URL attribute in the portlet defaults. This will store a seperate attribute value for each portlet instance
    PL/SQL portlets do it differently again, each page has a (unique) name, you can look up the name inside the portal database and build the url from there. I never done this trick though.
    There is a big difference in how the links work on the new portal version and the older one. Friendly links vs identified links.
    Classes you can use to help build an url
        try {
          //url = UrlUtils.constructHTMLLink(pr, UrlUtils.PAGE_LINK, "dummy", "", new NameValue[] {}, false, false);
          //url = UrlUtils.constructLink(pr, UrlUtils.PAGE_LINK, new NameValue[] {new NameValue("eventid", ""+1)}, false, false);
          url = pr.getRenderContext().getPageURL();
          pageLink = url.replaceFirst("<[aA] href=['\"]?(.*?[^'\"])['\"]?>(.*?)</[aA]>", "$1");
          pageLinkEnc = URLEncoder.encode(pageLink, "UTF-8");
        } catch(Exception e) { e.printStackTrace(); }Orcale API already creates a <A....link for me, I didnt want that, so I filtered the actual link from it
    Hope this helps a bit

  • One save for multiple portlets in a page.

    Hi,
    I have 3 portlets in 1 page. All the portlets are having individual "Save" button to save some information in individual portlets. I need to create a new "Save" button which does the work of all these 3 Save buttons in one shot. Basically my new "Save" button should be able to save the information of all the 3 different portlets at once!Can we do this? If yes then how ?Need it urgently!
    Thanks in advance,
    Adi...

    If you are still looking for the solution....
    I think this can be done by declaring same named action in all three pageflows. And write code individually as to do the logic for each portlet respectively in their pageflows. The most important and third step is making portlet2 and portlet3 listen to portlet1. (This can be done by double-clicking portlet and entering the instance label of portlet1 in listenTo field. This has to be done for both portlet2 and portlet3.) This will make the control to execute the action in portlet1, portlet2 and portlet3 in that order whenever any of the save buttons is invoked.
    --SJ.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Portlet header vs Page header

    I'm working with a report that I have displayed in a portlet,
    actually, the customization form is displayed in a portlet. I
    want to display the resulting report in the same portlet, but
    since that looks to be pretty difficult, I'm willing to settle
    for showing it in a new page. But, I'd like to have the same
    type of header on the report results page. If I set the user
    interface for the report to have a header, the report
    cutomization form will also have that interface inside the
    portlet which just looks stupid. Can someone tell me how I can
    get a different interface, or at least a different header, or no
    header, on a report customization form in a portlet while having
    a header on the report itself in its own page?
    I'd appreciate any thoughts that someone has on this.
    Nate Baxley

    The page style allows you to define only one color for the portlet header. You could try adding some HTML portlets to your page that override the style used for the portlet header.
    Regards,
    Jerry

  • Portlets with different styles

    Hello,
    I have created different pages with different styles. Then I added portlets to this pages and then I have published all the pages as portlets, and also I don't mark the option "Use Style Of Page On Which Portlet Is Placed" because I want that each portlet has
    its own style.
    In my home page I have another style completely different than the pages that I
    have created before. So I have introduce all of this portlets in my home page.
    It is supposed that I have to have a page with portlets which have a different
    style each, but I haven't. All of them have the style of my home page. How can
    I put different styles to the portlets that are in the same page?
    Thanks,
    Carmen

    You can use CSS selectors for that. But that will only work in superior browsers, not in inferior browsers.

  • How can i redirect to with one button to different pages!

    Hi All,
    For any application, for the first time,if a new table exists then there will no data in that table.
    based on this scenerio,in my application,i am handling apex validation staying that "you have no data. Please click here to go Reset symbol page.
    when it redirects to Reset symbol i am providing a text box and with a button. Once there enter a symbol and click on button it will inert in that table and again redirects to Home page for say-39.
    simillarly what are the functionality available in home page i had implemented same thing but only it differs page no for say-115.
    In both the scenerio's i will be redircting reset Symbol page where there can insert a symbol explained in above scenerio case.
    My problem is when i am throwing the error msg from page-39 i am redirecting to Reset symbol and when there enter symbol and click on button again i will be redirection t page -39 because the error had came from page-39.
    If the same error comes from page-115 then also i will redirecting to same Reset Symbol where there will be entering symbol and click on button, in this case it should redirect to page-115 instead of page-39 because i have got error from page-115 but not from page-39.
    How to handle the above scenerio, please help me out.
    Thanks in advance,
    Anoo.

    Hi Andy,
    Thanks for your suggestion, it is working fine..But i am facing one problem in page 115, i have two regions and both regiosn have same name but only difference is items names.. when i had tried to rediect to page-115 the umwanted one regions is showing instead of expected region. It is getting failed here bec it is rediecting to differnet region.
    Any suggestion on this!
    Thanks,
    Anoo..

  • Setting different pages widths in different sections - Pages 5.2

    In Pages 5.2, how does one set different page widths (margins) in different sections?

    You can't. Margins apply to the entire document.
    What you can do is set the margins to their max width and then use left and right indents for the sections you want narrower.
    Peter

  • Unable to bind portlet parameter with page parameter in webcenter portal

    Hi All,
    I am trying to bind portlet parameter with the page parameter so that I can ahieve some business requirements.
    Here is what I did,
    In my Portlet producer application:
    1) Created standards based portlet (jsr 286) with view.jspx and edit.jspx with rest of the things being default.
    2) In my portlet.xml created two parameters and assigned these parameters to the portlet created above.
    3) In the view.jspx added couple of output label adf components in the page.
    4) deployed this to integrated weblogic server.
    In my WC portal application:
    Created a new page and added the portlet to this page( WSRP connection already exists).
    deployed portal application on integrated server.
    In the edit mode of the page I added one page parameter(Param1) and some default (constant) value added.
    What I want is this:
    when Param1 value is One display first output label and
    when Param1 value is Two display second output label.
    I am using jdev 11.1.1.5.0 with integrated weblogic server.

    There is no need to use page parameters for this.
    You also have two types of parameters depending on what you want...
    1) Preferences: these parameters can be used on a user based level. This means that users can personalize the portlets. When a user change the value of a preference, it is only applied for that specific user
    2) Public parameters: these parameters are used to customize the portlet. The value you set in these parameter apply for all users.
    I have made a simple example to show these two differences: http://www.yonaweb.be/PortletTest.zip
    The portlet has 4 inputText on it. The first two can be set by specifying One or Two into the preference.
    The other 2 inputText uses the value of the public parameter.
    You should only deploy the portlet and consume it in a webcenter application. In the webcenter application, you don't need to do anything special. All is done in the portlet.
    I am guessing you don't have written the code that will get the value of the parameter:
    in case of a preference you will get the value by following code:
       PortletRequest request = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
       PortletPreferences preferences = request.getPreferences();
       return preferences.getValue("outputparam", "One");In case of a public parameter (for customization instead of personalization) you use following code to retreive the value of a public parameter:
    PortletRequest req = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
      String param = (String)req.getParameter("PublicParam");
      if(param == null)
          return "Three";
      return param;This code can also be found in the sample portlet application.

  • How to create a report with different page sizes

    Hi,
    I would like to create a report with different page sizes, it's possible to do it with diadem?
    When I change the layout parameters, changes afect to all sheets...
    Is there a way to change page size individually for each sheet?
    Thanks in advance.
    Marc

    Hi Marc,
    You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach.  This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
    ' Print PDF Page by Page.VBS
    OPTION EXPLICIT
    Dim i, Path, OldPrintName
    Path = AutoActPath & "2D Stacked"
    Call DataDelAll
    Call DataFileLoad(Path & ".TDM")
    PDFFileName = Path & " Page by Page.pdf"
    IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
    OldPrintName = PrintName
    PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
    PDFResolution = "72 DPI" ' "2400 DPI" , "default"
    PDFOptimization = TRUE
    PDFFontsEmbedded = FALSE
    PDFJPGCompressed = "high"
    PrintOrient = "landscape" ' orient paper
    Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
    PrintLeftMarg = 0.181
    PrintTopMarg = 0.181
    PrintWidth = 10.67
    'PrintHeigth = 7 (read-only)
    Call WndShow("REPORT")
    Call DocStart ' Begin multi-page document/print job
    FOR i = 1 TO 4
    Call PicLoad(Path & ".TDR")
    Call GraphSheetNGet(1)
    Call GraphSheetRename(GraphSheetName, "Page " & i)
    Call PicUpdate
    Call PicPrint("WinPrint") ' Add a page to be printed
    NEXT ' i
    Call DocEnd ' End multi-page document/print job
    PrintName = OldPrintName
    Call ExtProgram(PDFFileName)
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

Maybe you are looking for

  • Can i transfer purchases from one account to another?

    My son has an iCloud account for his iPod Touch that he has purchased many apps and songs on.  His school has assigned new iPads (that us parents have to buy out of pocket) and he was assigned to create a new iCloud account for that iPad that he will

  • Program error please help me

    I have been using PS elements 8 on for a year with no issues,  yesterday when I tried to save for web after editing I got this message: Could not complete the export command because of a programme error. I then downloaded a trial of PS elements 9, bu

  • Loops not playing right in GB3

    I had a project I had created in GB2, and recently needed to open it and do some more stuff to it for a new project. The odd thing is, a couple of the loops (midi) that worked fine, play with the wrong sound now in GB3. For instance, Mellow Latin Con

  • Copyright question about downloaded album

    Paid for and downloaded an album from iTunes store...I'm speaking at a workshop tomorrow; if I play the album in the background as background noise, is that a violation of copyright laws? Is it possible to contact the publisher or artist to get permi

  • How can I make a button in Muse that bookmarks the page the user is on?

    I want visitors to be able to push a button that bookmarks the specific page in their web browser. Is this possible in Muse? Or do I have to use third-party code?