Minimizing portlets programmatically

We have version 5 of the portal and we won't be upgrading to G6 until later this year so we can't yet make use of the CSS methods to hide a portlet, so we are looking at other methods to best hide a portlet when back end data is in particular states.
Is it possible to programmatically minimize a portlet from a remote web service?
We want to default a portlet to be minimized when back end data is in a particular state (e.g. there are no items remaining for you to purchase).
Daryl

We have version 5 of the portal and we won't be upgrading to G6 until later this year so we can't yet make use of the CSS methods to hide a portlet, so we are looking at other methods to best hide a portlet when back end data is in particular states.
Is it possible to programmatically minimize a portlet from a remote web service?
We want to default a portlet to be minimized when back end data is in a particular state (e.g. there are no items remaining for you to purchase).
Daryl

Similar Messages

  • Existing content area as a portlet programmatically?

    Does anyone know how to expose existing content area as a portlet programmatically?
    I have to write a script that would need to create and "expose" existing content areas as portlets.
    Thanks in advance,
    Alex.

    Did you try refreshing your portlet repository? What release of Portal are you currently using? Which version of the PDK? On which platform?
    Thanks,
    Harry
    testing ignore below!
    http://portalstudio.oracle.com

  • Hide show portlets programmatically

    Hi,
    i have to show/hide one portlet programmatically, how can i achieve this.
    for example if session user data is null the portlet will be shown else hidden.
    Please help.

    Urgent Issue... ..
    Any help Please..

  • How to Deploying a PDK Portlet programmatically?

    I have a portlet that I built using PDK. Now I want to deploy it programmatically. I don't want to use the Jdeveloper wizard or the GUI for Application Server. Is there any way we can deploy the portlet programmatically? any help is really appreciated.

    dcmctl command is normally used to deploy a ear/war file dynamically. As far as registration of providers API's are available for PLSQL i.e. database provider registation(not attempted same for JPDK portlets).

  • Creating portlet programmatically

    Hi dev2dev
    I want to create portlet programmatically
    if there is any hints or package related pls do mail me
    Thanks n Regards
    Surya
    [email protected]

    Hi,
    I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
    consult the java - doc for theese classes.
    Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
    - Anders M.

  • Delete portlet programmatically!!!!!!!!

    Hello
    I have to made a procedure to delete a portlet programmatically
    from a page, I haven't found an api to do that.
    Does anybody know if there is an api to delete a portlet from a
    page using PL/SQL?
    Please help me
    Thanks in advanced
    Ana Maria

    Hi Ana,
    last time I checked with Oracle about two months ago, they said
    you can not add and remove portlets to the page programmatically.
    I still believe there is a way to do it. If you look at edit page
    where you can Hide/Delete portlets, Oracle is using JavaScript to
    move protlets. I spent a lot of time to get it done but wasn't
    successful. Instead I decided to manipulate contents of portlets,
    which makes them look like different ones. And, with your
    help, pointing to several different pages if I have to.
    Let me know if you finally manage to hide and display portlets
    using pl/sql api.
    yuri

  • How add a portlet programmatically in a page ?

    Hello,
    Are there any way to add a portlet in a page programmatically?
    Thanks.

    I'm no Oracle Developer. I'm trying to do the same thing.

  • How to hide/show book, page, portlet programmatically

    Hello,
    The situation is I have few books and have pages within the books. In page, I have few portlets. The problem I try to solve is when user login, based on user role, I selectively show the books, pages and portlets.
    Can anyone give guideline on this ?
    Thanks in advance,
    Li

    "Chris Xu" <[email protected]> wrote in message
    news:8877896.1094662465884.JavaMail.root@jserv5...
    The situation is I have few books and have pages within the books. Inpage,
    I have few portlets. The problem I try to solve is when user login, basedon
    user role, I selectively show the books, pages and portlets.
    Can anyone give guideline on this ?Use entitlements for this, see
    http://e-docs.bea.com/wlp/docs81/adminportal/help/VE_OV.html
    Gerald

  • Problem changing portlet state and mode programmatically

    I am trying to change state/mode of a portlet programmatically in backing file.
    My request is, when a portlet is changed to EDIT, I want it be maximized. Based on that, I put logic in handlePostbackData() like this,
    if (PortletBackingContext.getWindowMode().
    equalsIgnoreCase("EDIT")) {
    // change to EDIT mode
    PortletBackingContext.setupStateChangeEvent(
    WindowCapabilities.MAXIMIZED.getName());
    } else {
    PortletBackingContext.setupStateChangeEvent(
    WindowCapabilities.NORMAL.getName());
    However, I found during handlePostbackData() phase, the mode I retrieved by PortletBackingContext.getWindowMode() was the one before the clicking.
    Say for view mode, I click the EDIT button and I expect in the handlePostbackBack() phase, I could get "edit" returned by PortletBackingContext.getWindowMode(). But actually it returned "VIEW".
    The mode keeps in the previous mode till it enters the preRender() phase. But as API, setStateChangeEvent() should be used in handlePostbackData() ONLY.
    Any suggestions?

    you should be able to do this through declerative IPC
    of course you can do this via the IDE but you can also add it to the .portlet file. Something like this...
    <netuix:handleEvent event="onEdit"
    fromSelfInstanceOnly="true"
    eventLabel="handleOnEditGeneric_el">
    <netuix:changeWindowState newState="maximized"/>
    </netuix:handleEvent>
    Chris Jolley
    Portal Architect

  • Programmatically Registering a JSP/Servlet Portlet

    ???Programmatically Registering a JSP/Servlet Portlet???
    OK, I have read all the literature on how to register a JSP/Servlet Portlet and have not seen any info on how to register a JSP/Servlet Portlet programmatically.
    I know for sure that you can register a PL/SQL Portlet programmatically via a couple of SQL and PL/SQL scripts that were given in the PL/SQL PDK examples.
    Bottom line, I want a way to register a new JSP/Servlet Portlet with ZERO GUI/User interface.
    My questions are:
    Is it possible to register a JSP/Servlet Portlet programmatically?????
    If it is possible to register a JSP/Servlet Portlet programmatically, were is the info on it or can you give me some examples of it????
    THANKS MUCH!!!
    null

    For a faster response, you may want to ask this question on the Portal Developer's Kit (PDK) Forum.

  • Add Portlet Customization

    Hi Everybody,
    I'd like to create a more friendly and simple interface for my user choose between hide and show any portlet in one page.
    Does anybody have any simple idea about how i get it?
    Thanks in advance.

    Hi Yuri,
    Yes, portlets can be minimized by using both the PL/SQL and the Java API, there is no difference.
    There are plans to make a minimizable portlet available in the portal community. For the time being, you can give it a try and do it on your own.
    I've summarized the steps I've taken, and would be glad if you'd provide feedback whether you succeed.
    How to add the 'Minimize/Restore' feature to your portlet?
    Assumptions:
    o You already have a working Java portlet
    o You have registered your provider so that the login frequency
    is 'Once Per User Session'
    This solution uses the following PDK-Java services:
    o Parameter passing
    o Session storage
    o Personalization
    High level steps:
    1) Create two images as the minimize and restore icons.
    2) Make the images available for the browser (eg: copy the images
    to the /images folder of Apache and make sure they can be
    accessed.)
    3) Render the minimize or restore image, according to the current
    state of the portlet in the top right corner.
    4) Put a hyperlink on the images:
    pageURL&size=minimize (if the portlet size is normal) or
    pageURL&size=restore (if the portlet is minimized)
    5a) When rendering the portlet, read the parameters.
    Push the read parameter to the sesssion storage
    and to the personalization storage as well.
    (The session storage is used when navigating to another page,
    and coming back later, but the parameter is not available in
    the URL any more, while the customization is used for the
    cases when the user logs out in the meantime or closes the
    browser, but wants to restore the state of the portlet as
    it was by the time the session was closed.)
    5b) If there is no parameter passed to the portlet, read the
    session storage.
    5c) If there is no session information available about the portlet
    state, read the customization value. Push the read value to
    the session storage.
    6) Render the entire portlet (normal), or don't render it (minimize)
    according to the parameters/session/customization information
    read in 5a-5c
    Additional feature:
    If you stop here, in new portal sessions the portlet is rendered
    in the same mode as it was rendered last time just before having
    logged out (as saved in personalization data).
    As an extra customization option you may add how you want
    to render the portlet when starting a new portal session (logging
    on again):
    o normal (regardless of the last time)
    o minimized (regardless of the last time)
    o as left last time
    Thanks,
    Peter
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Yuri Alekhin ([email protected]):
    Hi Peter,
    I am using PL/SQL PDK to create portlets:
    I am trying to minimize portlet programmatically and display another one instead. Is there a PL/SQL API for this?
    Any ideas?
    Thank you in advance.<HR></BLOCKQUOTE>
    null

  • Custom Edit Page for Portlets

    Hi
    I'm looking to customize the look and feel of the edit page for a portlet programmatically. I have extended my own class from the DefaultContainerRenderer class and have overridden the renderDesignFormBodyBegin() method.
    And have also made an entry into the provider.xml for this as follows
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>3</id>
    <name>SynergyLatestIDDBDrugs</name>
    <title>SynergyLatestIDDBDrugs</title>
    <description>SynergyLatestIDDBDrugs</description>
    <timeout>40</timeout>
    <showEdit>true</showEdit>
    <showEditDefault>true</showEditDefault>
    <showDetails>true</showDetails>
    <containerRenderer>com.tysynergy.container.SynergyLatestIDDBDrugsContainer</containerRenderer> <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage class="com.tsynergy.renderer.SynergyLatestIDDBDrugs"/>
    <editPage class="com.tsynergy.renderer.SynergyLatestIDDBDrugsEdit"/>
    <editDefaultsPage class="com.tsynergy.renderer.SynergyLatestIDDBDrugsEdit"/>
    </renderer>
    <personalizationManager class="oracle.portal.provider.v2.personalize.PrefStorePersonalizationManager">
    <dataClass>com.tsynergy.personalize.SynergyLatestIDDBDrugsPersonalize</dataClass>
    </personalizationManager>
    </portlet>
    But I get the following error -
    oracle.portal.utils.xml.v2.NodeHandlerException: Class oracle.portal.provider.v2.DefaultProviderDefinition has no set or add method for tag "containerRenderer"
    Has anyone come across this before?
    Deepak

    Hi
    Thanks.
    I got rid of my earlier error as I was using the conatinerRenderer tag in the wrong way. It should have been
    &lt;containerRenderer class="com.tsynergy.container.SynergyLatestIDDBDrugsContainer"/&gt;
    Now I get to display the my edit content; But I still haven't been able to get rid of the top default portal banner that appears on my edit page. It has the default logo gif and the link to the home page.
    I can now put my own form and &lt;input&gt; types, Just need to get rid of the default banner now.
    Deepak

  • Portlet header title as a link

    Is it possible to make portlet headers title as a link and would be defined with my chosen URL?
    I've noticed that linking (whwn editing region) is used only for Customize, Help, About, Collapse/Restore...

    You can achieve this if you create portlets programmatically. When you draw the portlet header you can specify what links are available from that header (i.e. details/title, customize, help, and about).

  • Resize, minimize portlets programatically

    Is there a way of minimizing portlets programatically.
    Customer wants to have a link which hides a portlet/region when a link is clicked.
    Is this possible?

    Three ways occur to me by which you could accomplish this or something similar.
    1) How about the out-of-box collapse/restore and remove icons which can appear on the portlet header? Would they meet the requirement?
    2) Embed JavaScript in the portlet code which renders a Hide/Show link or something similar
    3) Create a page which has identical content, but does not have the portlet/region. Have the link take the user to that page and have a link on that page that takes them back. Looks like it is hiding the region even though it is really changing pages. If you base the pages on the same page template, you can easily keep them in sync with the exception of that region and the link.
    Just ideas to consider. Hope one of them is useful
    Rgds/Mark M.

  • API to reference portlet header/title?

    I am wanting to know the pl/sql api to access the actual portlet header or title bar, whatever you choose to call it. I can access subheaders, but I cannot figure out how to access the actual top header. What pl/sql api will do this?

    You can achieve this if you create portlets programmatically. When you draw the portlet header you can specify what links are available from that header (i.e. details/title, customize, help, and about).

Maybe you are looking for

  • P67A-GD65 BIOS Recovery/Reflash...is it even possible?

    Had a weird issue take out my P67A-GD65 last week so I replaced it with a Z77A-GD65. However, I'd like to see if it's possible to recover/reflash the corrupted BIOS on the dead board before I break the board up and make keychain fobs from the shiny b

  • Is it possible to make the slave harddrive store the desktop?

    I have a 10 gig master hard drive and an 80 gig slave. I could back up all my files and re-install OSX, but I was wondering if there was a way to make everything but the OS run off of the slave, including the desktop. thanks

  • Is there a way to connect iPod Touch to internet over my computer?

    I don't have wifi, but I have internet and I can't get an app to update without wifi. I really can't connect through my iTunes on my computer? This seems kind of strange. Don't know which "generation" it is it was a gift. It may be the one right befo

  • Photo Viewer for Mac

    Is there an equivalent of Windows photo viewer for the mac?  I don't want to edit images in it, I just want to view in full screen and to go forward and back thought the images, with simple options to 'view at 100%' 'flip left/right', 'enlarge' etc.

  • Lucreate failed on solaris 10

    Hi All tried to create a new boot environment using lucreate on Solaris 10 release 10/08 /usr/sbin/lucreate -c live -m /:/dev/dsk/c0t1d0s0:ufs \ -m -:/dev/dsk/c0t1d0s1:swap \ -m /tmp:/dev/dsk/c0t1d0s4:ufs \ -m /usr:/dev/dsk/c0t1d0s6:ufs \ -m /var:/de