Portlet Basics

I am new to weblogic portal .Could any body tell me the following:
-->what is the life cycle of the portlet ?is it different for different types of portlets like
java page flow portlets/struts portlet/JSR 168 portlet etc.Please explain all the possible phases.
-->Can I invoke a portlet directly as we can do in the case of servlet ?
--> What all MIME types are supported by the Weblogic portal 10+ version ?
I need to display the some binary data (images) from database.Can I do it without the use of servlets ?I don't want to use CMS part of weblogic portal
Edited by: rajeevraj on 6 Oct, 2009 12:20 PM

Hello,
In general, the lifecycle of a portlet on every page render is:
1) init (not available for JSR168*)
2) handlePostback (called processAction in JSR168)
3) events (not available in JSR168*)
3) preRender (not available in JSR168*)
4) render
*-- for the lifecycle phases I listed above as "not available in JSR168" they are not available in the JSR168 specification, but they are available in the WLP implementation of JSR168 portlets.
They are the same for every portlet type, although some lifecycles are only available in portlet backing files, and this again depends on the portlet type.
You can invoke a portlet directly, depending on exactly what you want to do with it:
1) you can create a URL render only the portlet, as in a pop-up window
2) you can create a URL to render the portlet and the whole page it is on
3) You can use portlet publishing to include a portlet inside of another page.
The MIME types supported by portal are all text/html or text/xhtml; to serve binary resources in WLP 10.3 or earlier requires creating a URL to an external resource or servlet if you don't use CMS.
Kevin

Similar Messages

  • How to create pop-up window to search for items

    Hi,
    I want to create a pop-up window were the user will be able to search for an item and select it.
    How can I use a pop-up window in a portlet? Is there any api in the pdk for creating pop-up windows?
    Thanks

    Hi,
    Can you let me know why you are trying to use a popup window for searching?
    You can always add a search portlet - Basic,Advanced,Custom
    - which will give you the link to the respective searched items.
    I couldn't get a clear idea of your requirement.
    Thanks.

  • Hi...

    Hi..I've developed a simple page in VB.NET conecting to database,fetching the data and placing it into a data grid.
    Could anybody help me out telling the plumtree code which needs to be added to the .net application so that when i can integrate it to the portal in the form of a portlet.

    http://edocs.bea.com/alui/devdoc/docs60/Portlets/Basics/Hello_World_Portlet_NET.htm

  • Building a site

    Folks,
    I am new to Oracle Portal and Im trying to develop a reporting application using it. What I need is some general help with my approach, so apologises to all you gurus, and know how everything is tied together using Portal. To date I have managed to develop some applications in the form of a menu, some simple charts which have drill down capability to reports and have managed to get them linked together and working. My main question is how this can be linked together on a page and presented as a web site with a style or template applied to it.
    I can directly run the charts that I have produced and on running the reports and drilling down on data the content is displayed in browser full screen mode.
    What I want to do is publish a reporting site with these applications shown as smaller portals and the drill down information being displayed in smaller portals.
    I have set up a content area for the application and appreciate that it can be used to store folders of information but dont understand what the web page is that is displayed when I use navigator to click on my particular content area. Is it a management screen? Should the portlets I am developing be tied into this screen?
    What is the best approach if I want to build many portlets and display them on a single page with their content changing as a result of selecting options in another portlet on the same page, ie posting parameters to a report.
    Is there any documentation that may help me?
    Regards
    Garry
    null

    Gary,
    Let me take a stab at this.. Most everything you build with portal can be displayed as a portlet on a portal page. The portal page is the centerpiece of the user environment. Portal pages are used to display an integrated and personalized environment for the various user audiences that you may have in your organization.
    Each portal page is comprised of several regions. Each region can be populated by "portlets". A portlet basically is a section of a portal page which presents web content, or applications from datasources (websites, applications, etc) which are internal or external of Oracle Portal itself.
    Administrators (and designated users) may build portal pages which display the portlets that they desire. Each of the application components that you have built can be displayed as a portlet on a portal page. Similarly, content area folders can also be displayed as portlets on a portal page. Portlets of any kind can be intermixed with each other on any portal page.
    Parameterizing reports, however, can't yet be accomplished as a portlet on a portal page. To workaround that, you could conceivably create a URL item in a content area that invokes the report's parameter form in a new window..
    For more information, you may want to try the online tutorial supplied with the product, or check out some of the introductory white papers at: http://technet.oracle.com/products/iportal/listing.htm#overview
    and also consult the Oracle 9iAS Portal FAQ too!
    Hope this helps.
    -Harry

  • Oracle Portal with Intermedia Searching

    I had installed Oracle9iAS Portal and Intermedia. Then, I created a simple Content Area and added some items there, like Word Documents, HTML files, etc.
    Now, when I try to find a word using the default Portlet "Basic Search" and it returns "no data found". But, if I use the "Advanced Search" it returns the items correctly.
    I'm using "Brazilian-Portuguese" language and I think the problem is it. Can I modify the structure of these SQL codes (used from "Basic Search" portlet)?
    Any idea is good for me. Thanks!

    Enrique,
    see metalink for bug 1679678 . The workaround is for dutch, but you should be able to make it work in barzilian-portuguese. The side-effect is that searching the online-help becomes impossible ;-(
    Another workaround is to copy the source of the HTML-form of the search portlet into a HTML portlet and add the hidden inputfield p_language . See the HTML-source of the advanced search for the exact line for your language.
    Regards,
    Ton

  • User preferences, community properties caching

    Hi,
    I would like to know if user preferences, and community property values are cached by ALUI internally or they are retreived from database every time a request is made to retreive these values using IDK API. We have a requirement to retrieve user preference values and act up on them in each portal page. We are trying to evaluate how costly this could be and how it can have impact on response time of the page.
    Thanks.

    To understand better internal caching mechanism it's necessary to realize how portal cache portlets. Take a look on this link: [http://edocs.bea.com/alui/devdoc/docs60/Portlets/Basics/PlumtreeDevDoc_Portlets_Caching.htm]
    Class(java version of the portal) responsible for reading this kind of informations is CSPPortletProviderConfig, I think portal will try to read those info every time when cache key is not matched for connected user.

  • Anchor Tag hyperlinks

    We are trying to leverage existing applications as portlets. These apps use standard tags for navigation. Clicking on one of these links takes the user out of the portal. We would like the link to appear in the same portlet, how can we make this happen?

    Probably your links are not gatewayed correctly. Look here for details:
    ttp://edocs.bea.com/alui/devdoc/docs60/Portlets/Basics/PlumtreeDevDoc_Integration_Portlets_HostedDisplay.htm

  • Anchor tag

    hi two all i have two questions
    1. how to create anchor tag in j2me
    2. how to create anchor tag inside Ticker
    Thanks in advance.
    pandit

    Probably your links are not gatewayed correctly. Look here for details:
    ttp://edocs.bea.com/alui/devdoc/docs60/Portlets/Basics/PlumtreeDevDoc_Integration_Portlets_HostedDisplay.htm

  • Need Help with Kick-Starting Web-Provider Development

    Hi,
    My requirement is to develop my own web-provider. This web-provider should talk to the portal and manage its portlets. (basically extend oracle.portal.provider.v1.http.HttpProvider)
    Though I have gone thru various documents about developing web-providers, I haven't been able to locate examples for the same.
    I would really appreciate it if someone can help me with
      1) the best place to look for information AND
      2) sample code for a web-provider.
    thanks in advance for the help.

    Anoop, <br>
    Thats a pretty good idea to add new portlets on the fly (at runtime) to your provider.xml
    I think this is how you could do this, <br>
    1. Generate your portlet's <portlet>....</portlet> tags & add them to the current provider's provider.xml file. You could follow this sequence, <br>
    - Get the path to your current provider.xml <br>
    - Generate an XMLDocument object out of this current de finition file. <br>
    - Create the new portlet's <portlet>...</portlet> structure. You would need to make sure that the new portlet added has a unique id & name in that definition file. <br>
    - Add this <portlet> node at the appropriate place in the XMLDocument<br><br>
    2. Refresh the provider to reflect the new portlet in the Portlet repository.<br><br>
    There isn't an explicit code sample in the JPDK that you could perhaps reuse for step I. So much of the effort here will have to come from your side. Anyway, let me know if you face any problems during its implementation.
    Regards,
    Abhinav

  • Error in portlets while using Basic Authentication

    We have the Portal on the web.Whenever anyone types the URL for the Portal welcome page he is prompted for a
    username and a password(facilitated by the Apache Server security by adding the relevant tag in the httpd.conf file).The following is the tag added in the httpd.conf file:-
    <Location /servlet>
    AuthName "XXX"
    AuthType Basic
    AuthUserFile "F:/Oracle9iAS/Apache/Apache/bin/users"
    require user kiran
    </Location>
    For a particular user we have added the Exchange portlet on his home page under a tab.Clicking on this particular tab gives the following error when the security is present.
    The following error occurred when attempting to call the
    initSession of the Web Provider: exchangeprovider_XXX
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.UnsatisfiedLinkError: no oraawt in
    java.library.path
    However on removal of the security the same Exchange portlets is displayed without any errors.
    Any help on the above would be welcome.
    Thanks in advance.
    Regds.
    Kiran.

    Please check the OSS note below and install the mentioned patch accordingly:
    [Note 1278687 - Exception in the IDocXMLProcessor (IDOC_ERROR_PARSE_FAILURE)|https://websmp230.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1278687]
    If it persists, check if are there any mapping errors on the Audit Logs for the failed message.

  • How to change the view of the basic search portlet

    Hi,
    I want to change the view of the basic search portlet. To be more precise, I just want a text box and a Go button in it. Cananybody advise on how to do this?
    Regards,
    Priya

    Indeed the 'Basic Search Box' item is what you want to use. You can choose what label you want or an icon if desired.
    As mentioned in a previous reply, you need to edit the properties of the Page Group where you want to add the item and add the 'Basic Search box' to the list of available items that a user can add to the page group.
    Navigator -> Properties (for the desired page group) -> Configure Tab -> Edit link in the 'Content Type and Classification' section -> Item Types section add the 'Basic Search Box'.
    Now in a page in that page group, add an item, and from the list of 'Built-In Navigation Item Types' you will see the 'Basic Search Box'.

  • Basic Search portlet returns error when Display in New Browser Window set

    Ora AS Portal 10G release 2 (10.1.2.x)
    Have a region of type Portlets.
    The enable users to include content in this region is enabled.
    I added a Basic Search Portlet in this region.
    Basic search works fine if launched from current area, however if change attributes of region to have a link that displays item in new browzer window, then
    basic search portlet opens in new browzer window but returns error "Error: You do not have permission to perform this operation. (WWC-44131)"
    The Basic search portlet in the new window contains a link to advanced search. If use advanced search, results are returned.
    to test further, I added a advanced search portlet to this region, also with the display option to display item in a new window. In this case, the same error is obtained when doing a search.
    Has anyone experienced this?
    Any solutions?
    Thks in advance.
    Paulo

    Hi,
    Can you clarify what you mean by "change attributes of region to have a link that displays item in new browzer window"?
    Are you referring to Edit Region > Attributes tab ? Which of the Available Attributes did you select?
    Thanks,
    Chris

  • Basic Search Portlet

    Hi
    We are using the basic search portlet as the search engine within the MOHE portal page. When we search for any word which exists in a clipped html file it returns nothing.
    Regards
    Mohamed Hammed

    Hi Mohamed,
    I am not sure it would work....here's why -
    If you consider the archtitecture of a WebClipping Portlet, the "definition" ( basically, the MetaData) is constant / static for every instance. However, the content generated by the WebClipping Portlet - i.e, the "clipping" - is dynamic & occurs at runtime. Hence, every WebClipping Portlet "Instance" generates it's own content - however, the Basic Search Portlet can't search the content generated by this instance.
    I hope I was able to articulate that to a resonably good degree. Well, a suggestion that I can think of is to develop a custom search Portlet - something that could search the HTML text after all the Portlets have been rendered. I guess you can try with a Java Servlet....
    Regards,
    Sandeep

  • Basic portlet customization

    Hi,
    We are developing a portal using Oracl10g portal
    I just added the Baisc Portlet in the portal page, but it has button with title "GO"
    How can i customize that portlet to change the button title to "STart Search" inspite of "GO" ?
    Regards
    Mohamed Hammed

    hi mohammad
    i am facing the same problem so if u solve it please let me know

  • Error on Basic search portlet in Oracle portal

    I am working on Oracle 10g portal. I uploaded lot of documents and completed indexing as per Oracle guidelines. There are some errors during indexing.Out of 5000 documents 22 are not indexed. When I try to search from a page I get this error. This problem doesn't exist in our development environent where there are only few documents loaded. I have encountered errors in this environment also during index creation.
    Appreciate your help.
    Internal error (WWC-00006)
    An unexpected error has occurred (WWS-32100)
    Unknown Exception (WWC-45131)
    User-Defined Exception (WWV-11230)
    Unexpected error - ORA-20000: Oracle Text error:
    DRG-10599: column is not indexed (WWC-35000)
    ----------------

    Hi,
    What errors did you get during indexing?
    -Ron

Maybe you are looking for

  • How to use the tool eCATT in SAP-HR?

    Hi All, Can any one tell me in-detail....... 1) How to create a test script? 2) hoe to create data containers? 3) understanding abt data containers? 4) executing system configurations? Thanks in Advance

  • HT201303 how do i remove a credit card from my account

    my itune purchases are being billed to the wrong account.  I need to credit the charges made on the account ending in 1010 and bill to the account that appears in my itunes account. Please advise.  How to I remove credit card ending in 1010 from my a

  • Sales Org. vs Territory

    Hi all, Currently, we are analyzing the advantages of having Sales Org. over Territory so that we can frame a meaningful Org. Structure in C4C. One part of functional team wants to setup Territory as Org. Hierarchy with a belief that they can see all

  • Which is better Ipods Or Z

    Which is better the "Ipods" or ZENS personally i think the zens there way better that the ipods by the long shot.

  • Select query on scapptseg table based on tst_from  field.

    Hi everybody, We enhanced the activity search with date type and date fields. User will enter date along with the datetype field to search. He can enter even ranges also for date field. I tried by converting the date into timestamp and querid the tab