Update portlet.xml(for JSR 168 portlets) at runtime

Is there a way to update the portlet.xml dynamically? That is, add an instance of the portlet using <portlet> tag at runtime to the portlet.xml. Does the portlet container need to be bounced back so that the updates are picked up?
Got to know that that this is very much a portal-dependent functionality. Does Oracle Portal support this functionality?
Thanks,
Parul

Hi Parul,
I am not sure that you will be able to add portlets dynamically .. since, even if you do, you will still need to refresh the provider on the portal.
thanks,
Harsha
p.s.: What is your use-case for such an requirement?

Similar Messages

  • Remote Inter Portlet Communication for JSR 168

    Hi All,
    We are stuck in a big problem using JSR 168 as remote portlets. We will be relieved if someone can suggest few ideas on this. I will provide the scenario which we are trying now.
    We have two portlets namely portlet A and portlet B which are Java(JSR 168) type portlets. These two portlets are offered as remote and they reside in the producer application. We have consumed these two portlets in our consumer application.
    The portlet A is triggering an event and portlet B is listening to the event triggered by portlet A. Currently we are trying to implement this functionality using Ajax. We tried to use customEventUrl tag in our jsp belonging to portlet A and we finally figured out that customEventUrl will not work in Remote portlets. We are not sure as how to pass the information from remote portlet A to remote portlet B. Please let us know your thoughts about this as whether the implementation is really possible when using Remote portlets.
    IMPORTANT NOTE: The event handling and the configuration code that we have made in the above scenario is working perfectly for non-remote java portlets. The problem is occurring only when we consume them in the consumer application.
    Thanks
    Vijay

    Hello Ashwin,
    What version of WebLogic Portal are you using? And is this the same for both the consumer and producer?
    If you are using WLP 10.3.2 I would highly recommend using JSR286 portlets (the next version of the Java Portlet (JSR168) specification) and the JSR286-standard eventing. The JSR286 eventing model is actually much cleaner and easier to understand than the WLP-proprietary support for events in JSR168 portlets.
    However, if you are using a version of WLP prior to 10.3.2 and can't upgrade, JSR168-style events are your only choice. I can give you examples, but they all look very similar to the examples in the online documentation.
    When events work between portlets locally, but not over WSRP, the usual problems are:
    - There is one or more of "onlyIfDisplayed", "sourceDefinitionLabels" or "sourceInstanceLabels" attributes declared on the handle*Event element in the .portlet file. These attributes restrict when the portlet should receive an event, and they usually don't work the way you think when running over WSRP. It is best to not use these attributes for portlets which are going to be used over WSRP.
    - A payload is being sent with the event which is not actually serializable. If serialization of the event payload (which is required for versions of WLP prior to 10.3.2 for WSRP) fails, the event will not be delivered to the portlet.
    - The producer may be configured to not accept events. Check your producer's WEB-INF/wsrp-producer-config.xml file; the "service-config" element should either not have an "offer-extensions" attribute, or this attribute's value should be "true".
    - The events may be getting sent during a portlet lifecycle other than processAction or handleEvent. There is no way for WSRP to handle events which have been sent during preRender or render, so it simply doesn't work.
    - In the case of JSR168 portlets, if you have a backing file on the portlet (in addition to the portlet implementation as well), that may not work in some circumstances over WSRP. It is best to have the event handlers be in the portlet implementation class and avoid the use of backing files for JSR168 portlets.
    If none of those things help you, my suggestion would be to post a sample .portlet file for one of the portlets that is supposed to be receiving the event, as well as the method signature in that portlet's implementation class that is supposed to be receiving the event, and the code which is sending the event that is supposed to be received.
    Kevin

  • Inter Portlet Communication for JSR 168 Portlets

    Hi,
    I want to invoke one JSR168 Portlet from another and also pass parameters between the two.I did the same using Events for Oracle Portlets.
    I would like to know how to do the same when I build JSR 168 Portlets.
    Also Pls let me know where I can get documentation which describes all the possible options that I can try out on JSR168 Portlets
    Regards
    Yash

    Hello Yash,
    The current version of the specifications does not support Parameter and Events that allow you to create portlet 2 portlet communication using OracleAS Portal framework.
    If the reusability of the parameter is not a major requirement of your application you can simply use URL parameters and this will authorize you implement that.
    Regards
    Tugdual Grall

  • Required:Autocomplete and Modal Window components for JSR 168 Faces Portlet

    Hi All,
    I need to use Auto-complete and Modal window in my JSR 168 Faces portlet. Are there any components readily available?
    I am using WPS 6.1 + RAD 7.5. Please suggest.
    Thanks and Regards,
    Anitha.

    You may want to take a look for RichFaces.
    Homepage: [http://www.jboss.org/jbossrichfaces/]
    Auto complete example: [http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf]
    Modal window example: [http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf]

  • Apache Struts Bridge for JSR-168 Portlet

    Hello,
    I am trying to call a struts application from a JSR-168 Portlet.
    But I am not getting this class "oracle.webdb.wsrp.server.PortletApplicationImpl"
    Which is required for this.
    Can anyone, tell me, where to find this class.
    Thanks
    Sam
    Message was edited by:
    samplified

    I was able to find that class by downloading the Oracle Portlet Container 10.1.2.0.2 and following the instructions for extracting it into my OC4J. When you do that it will give you a file called ${OC4J_HOME}/shared-lib/oracle.wsrp/1.0/wsrp-container.jar. That jar file contains the class you need.
    Oracle Portlet Container 10.1.2.0.2: http://download.oracle.com/otndocs/tech/ias/portal/files/portlet-container.zip
    PDK Page: http://www.oracle.com/technology/products/ias/portal/pdk.html

  • Support For JSR 168 PortletSession Ojbect

    Recently, I've written a JSR 168 portlet and attempted to use the PortletSession object to persist some information between user requests. The portlet puts properties on the PortletSession (String and object properties), but the JSP page can not see them. Within the JSP I've tried accessing the properties with the JSP session and by casting the session to a PortletSession. Either way, it doesn't work.
    I reviewed the sample Google and RSS portlets and they are not using PortletSession but persisting only String data in render parameters. I've read the JSR 168 specification and you should be able to do what I'm doing and use the PortletSession. Anyone have any ideas?

    How are you getting the session? Are you using the defineObject tags and then getting the portletSession from renderRequest?
    If you like, send an example of the code in the jsp page & I can try it out.

  • Support for JSR 168 and WSRP

    Hi,
    does SAP EP 7.0 supports JSR 168 and WSRP standards?
    Regards,
    Ladislav

    Hi Ladislav,
    Here are a few pointers that might answer your question:
    - WSRP 1.0 is supported in NetWeaver 7.0 (see this [SAP Help Page|http://help.sap.com/saphelp_nw70/helpdata/en/43/23fb36cad10d23e10000000a1553f7/frameset.htm] for more information)
    - JSR 168 support for Netweaver 7.0 has been discussed often but never confirmed in SAP documentation (check this thread for a recent SAP unofficial comment about its upcoming availability). However, NetWeaver CE 7.1 already supports JSR 168 (see this [SAP Help Page|http://help.sap.com/saphelp_nwce10/helpdata/en/44/5b96b37b6f4de1e10000000a1553f7/frameset.htm])
    Hope this helps.
    Best Regards,
    Joseph

  • Update XERegistry.xml for my custom positional flat file

    Hi,
    I believe we need to add entry into XERegistry.xml for the new parser and upload the .ecs file, can anybody confirm? If so, what information do we need to enter ? In the document definition, what do we need to put in "Identification Start Position" and "Identification End Position"
    Thanks
    John

    Anuj,
    What you said makes sense, but somehow I could not make it work even with the invoice example shipped with Oracle B2B, INVOIC01.ecs and Invoice01.dat under samples/positional directory.
    I am using a Java program to read the data file and drop on a JMS queue Oracle B2B is listening. I am seeing the following trace in the log file, it seems that Oracle B2B knows it is a non-XML file.
    On the other hand, I have already made a X12 example work.
    May I send the log and other files to you to review?
    Thanks
    John
    BTW, still trying to understand how B2B identify the document. The parser uses the InitialFileDetect to get the initial information, what is the GroupNode for? Do I need to match those information (DocControlNumber, DocTypeID) when I create my document as well as the version and document type in the B2B console?
    <msg time="2011-09-22T09:55:45.949-04:00" comp_id="soa_server1" type="TRACE" level="1" host_id="uxpnwg001a0015.cbp.dhs.gov" host_addr="10.159.25.110" module="oracle.soa.b2b.engine" tid="weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@15d19258" user="weblogic" ecid="72a52121dd40d94a:afeea16:1323f8126ee:-8000-00000000001c3f99" rid="0">
    <attr name="SRC_CLASS" value="oracle.tip.b2b.system.DiagnosticService" />
    <attr name="APP" value="soa-infra" />
    <attr name="SRC_METHOD" value="synchedLog_J" />
    <txt>oracle.tip.b2b.document.pff.PFFDocumentPlugin:identifyIncomingDocument Enter</txt>
    </msg>
    - <msg time="2011-09-22T09:55:45.949-04:00" comp_id="soa_server1" type="TRACE" level="1" host_id="uxpnwg001a0015.cbp.dhs.gov" host_addr="10.159.25.110" module="oracle.soa.b2b.engine" tid="weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@15d19258" user="weblogic" ecid="72a52121dd40d94a:afeea16:1323f8126ee:-8000-00000000001c3f99" rid="0">
    <attr name="SRC_CLASS" value="oracle.tip.b2b.system.DiagnosticService" />
    <attr name="APP" value="soa-infra" />
    <attr name="SRC_METHOD" value="synchedLog_J" />
    <txt>oracle.tip.b2b.document.pff.PFFDocumentPlugin:identifyIncomingDocument iDoc ECS = /soa/b2b/PositionalFlatFile/SAP IDoc/SAP IDoc type/INVOICEDoc/INVOIC01.ecs</txt>
    </msg>
    - <msg time="2011-09-22T09:55:45.949-04:00" comp_id="soa_server1" type="TRACE" level="1" host_id="uxpnwg001a0015.cbp.dhs.gov" host_addr="10.159.25.110" module="oracle.soa.b2b.engine" tid="weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@15d19258" user="weblogic" ecid="72a52121dd40d94a:afeea16:1323f8126ee:-8000-00000000001c3f99" rid="0">
    <attr name="SRC_CLASS" value="oracle.tip.b2b.system.DiagnosticService" />
    <attr name="APP" value="soa-infra" />
    <attr name="SRC_METHOD" value="synchedLog_J" />
    <txt>oracle.tip.b2b.document.pff.PFFDocumentPlugin:identifyIncomingDocument non-XML Payload</txt>
    </msg>
    - <msg time="2011-09-22T09:55:45.949-04:00" comp_id="soa_server1" type="TRACE" level="1" host_id="uxpnwg001a0015.cbp.dhs.gov" host_addr="10.159.25.110" module="oracle.soa.b2b.engine" tid="weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@15d19258" user="weblogic" ecid="72a52121dd40d94a:afeea16:1323f8126ee:-8000-00000000001c3f99" rid="0">
    <attr name="SRC_CLASS" value="oracle.tip.b2b.system.DiagnosticService" />
    <attr name="APP" value="soa-infra" />
    <attr name="SRC_METHOD" value="synchedLog_J" />
    <txt>oracle.tip.b2b.document.pff.PFFDocumentPlugin:identifyIncomingDocument start pos = -1</txt>
    </msg>
    - <msg time="2011-09-22T09:55:45.949-04:00" comp_id="soa_server1" type="TRACE" level="1" host_id="uxpnwg001a0015.cbp.dhs.gov" host_addr="10.159.25.110" module="oracle.soa.b2b.engine" tid="weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@15d19258" user="weblogic" ecid="72a52121dd40d94a:afeea16:1323f8126ee:-8000-00000000001c3f99" rid="0">
    <attr name="SRC_CLASS" value="oracle.tip.b2b.system.DiagnosticService" />
    <attr name="APP" value="soa-infra" />
    <attr name="SRC_METHOD" value="synchedLog_J" />
    <txt>oracle.tip.b2b.document.pff.PFFDocumentPlugin:identifyIncomingDocument values = {IdentificationStartPosition=0, IdentificationExpressionValue=EDI_DC , TransactionECSFileBlob=/soa/b2b/PositionalFlatFile/SAP IDoc/SAP IDoc type/INVOICEDoc/INVOIC01.ecs, IdentificationEndPosition=10}</txt>
    </msg>
    - <msg time="2011-09-22T09:55:45.949-04:00" comp_id="soa_server1" type="TRACE" level="1" host_id="uxpnwg001a0015.cbp.dhs.gov" host_addr="10.159.25.110" module="oracle.soa.b2b.engine" tid="weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@15d19258" user="weblogic" ecid="72a52121dd40d94a:afeea16:1323f8126ee:-8000-00000000001c3f99" rid="0">
    <attr name="SRC_CLASS" value="oracle.tip.b2b.system.DiagnosticService" />
    <attr name="APP" value="soa-infra" />
    <attr name="SRC_METHOD" value="synchedLog_J" />
    <txt>oracle.tip.b2b.document.pff.PFFDocumentPlugin:identifyIncomingDocument xpath = null</txt>
    </msg>
    Edited by: zchen on Sep 22, 2011 1:11 PM

  • Control Height Of Region Containing JSR-168 Portlet

    We are in the process of converting some portlets from Oracle Reports to JSR-168. Our intitial portal page would contain the Oracle Reports portlets within the height of the region. The same output created by a JSR-168 portlet causes the region to grow vertically, which pushes the regions below it down thereby creating large gaps.
    The Oracle Reports portlet would have a scrollbar that allows the user to see all of the content hidden below the bottom of the region. No matter what css I apply, I cannot make the same thing happen with the JSR-168 portlet.
    Does anyone have any tips for constraining the vertical size of the regions so that they do not grow to accommodate all of the content but instead produce a scrollbar?

    Andre,
    When you drag a project folder over to a portal, workshop doesn't
    scan/detect the folder contents and create portlets accordingly. So, you
    are creating the wrong portlet type.
    In this case, you need to create the portlet via the file wizard. Just
    right-click on the directory where you want the portlet to live and
    select 'New->Portlet' to get the wizard. Then, select the portlet type:
    'Java Portlet'.
    -robert
    Andre Ranvik wrote:
    Is there anybody who has experience with deploying JSR 168 portlets on WLS 8.1SP2
    that have been "handcoded". The portlets I am trying to deploy are these:
    http://developers.sun.com/prodtech/portalserver/reference/techart/jsr168/#2
    I have tried to manually import the individual folders/files, modified the portlet.xml,
    and dropping the folder containing the jsp's onto a portal within Workshop. I
    respond "yes" to the question whether I want it to create a portlet. The problem
    is that it doesn't recognize this to be a JSR 168 portlet (or it doesn't support
    it??).
    I have also tried to deploy a portlet within a WAR file, but no such luck.
    Support for JSR 168 implies that one would expect support for deploying JSR 168
    portlets developed on other platforms.
    I am hoping for a step-by-step set of instructions on how this can be accomplished.
    Thanks a bunch!
    Andre Ranvik

  • Weblogic Portal 10.3.5 - JSR-168 Portlet resize at runtime by the users

    One of the requirement I'm trying to develop in WLP 10.3.5 for JSR-168 Portlet is to give the end user the flexibilty to resize (Just like we can do in Iframe in IE) it in runtime. Is it possible to do this ?
    Any helpful link / pointers are welcome.
    Edited by: hari_wc on Mar 25, 2013 8:46 AM

    Hi,
    Could someone pls explain which cache is used to cache portlet content and in which form the content is cached?

  • JSR 168 portlets

    Hi,
    Once again I find myself struggling to keep on top of the bleeding edge of Portal technology - I remember developing PL/SQL portlets in WebDB 3.0 Beta when there was no documentation not too many years ago!
    I am working with a client that wants to make some "legacy" PL/SQL portlet applications portable to SAP Portal. SAP NetWeaver support for JSR 168 is planned in the near future, and the client wants to be able to publish the portlets there. The existing applications are deployed in Oracle Portal and consist of 30 PL/SQL, along with a few bits of custom java / servlet functionality for file upload and download. Some of these portlets have very complex functionality both clientside (javascript) and serverside (SQL).
    Am I correct in assuming that these will have to be redeveloped as JSR 168-compliant JSP portlets...?
    From what I can gather there shouldn't be too many restrictions, but I was wondering if anyone else has gone through or is going through this kind of process and/or has any tips or suggestions?
    Thanks for your assistance,
    Mark Austin

    Hi,
    Yes. You should convert these portlets to jsr 168 portlets. But there is no tool available in Oracle Portal to convert these portlets to jsr 168 portlets.
    Thanks,
    Sharmila

  • Support of JSR 168 and JSR 286 portlets

    Hi,
    As far as I know there is no direct support for JSR 168 compliant portlets in the SAP portal. Remote portlets can be consumed using WSRP. I was wondering whether the SAP portal will provide direct support for JSR 168 or even JSR 286 portlets in future releases?
    Regards,
    Kevin

    Hi Kevin,
    Long time ago SAP promised to implement JSR 168. Nowadays, you don't find much official documentation stating SAP portal is JSR168 compliant.
    SAP introduced the Federated Portal Network (Consumer and Producer portals), also with WSRP support.
    Check:
    cheers,
    Noƫ

  • WSRP/JSR-168 for production?

    Maybe I'm missing something, but from my little research on the use of WSRP/JSR-168 within Portal, all indications are this is not ready for production use. Meaning, if I use JDeveloper (or some other tool) I cannot deploy production quality Portlets based on these standards within Portal 10g (9.0.4). Is this correct, or did I miss something?
    Given this, my only choice is to use the JPDK if I wish to develop Java based portlets.
    Thanks...
    Dean

    Hi all,
    Even i am also looking for if any body has consumed the JSR168 portlet on
    OracleAs Portal 10g Release 2.
    I have found some article where it is mentioned that
    Production Support for JSR 168 and WSRP
    Once upgraded to Oracle Portal 10.1.4, a repository only upgrade on top of OracleAS 10.1.2.0.2, your portal version provides production support for building and consuming standards-based portlets. Oracle portal provides a Java Portlet Wizard within Oracle JDeveloper to build JSR 168 portlets and publish those portlet to Oracle's container or any portlet standards container. You can then consume JSR 168 portlet with Oracle Portal through WSRP. Oracle Portal also supports consuming any portlet through WSRP as well as JPDK portlets.
    U can read the complete details here:-
    http://www.oracle.com/technology/products/ias/portal/html/pdk_1014_new_features.html
    Thnx
    ~Neeraj Sidhaye
    [email protected]
    [email protected]

  • JSR 168 and Struts support sample error

    I'm trying to get the sample webapp for JSR 168 and Struts support working with
    WebLogic 8.1, and I'm having problems with the struts portlet. The other portlets
    seem to work fine, but the Struts portlet gives the following error after clicking
    "Save" on most of the forms:
    Page Flow Error - Action Not Found
    Page Flow: Global.app
    Action: html-setters.do
    Unable to find action html-setters.do.
    That error appears in the browser. At the same time, the following exception
    appears in the server window:
    <Aug 18, 2003 4:34:12 PM EDT> <Error> <netui> <BEA-420012> <There was an error
    while running a lifecycle stage :: Lifecycle: UIControl.render :: for the control
    :: null ::.
    com.bea.netuix.nf.UIControlException: For portlet [strutsPortlet], could not do
    page flow lookup for the given action [html-setters.do] in the given PageFlow:
    [struts/exercise-taglib].
    This exception is followed by hundreds of lines of the following:
    at com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils.strutsLookup(ScopedServletUtils.java:363)
    as well as several stack overflow errors.
    I believe I have installed the JSR168 and Struts support package according to
    the instructions, and have copied the required jars into the samples WEB-INF/lib
    directory. I also have tried to write my own Struts application in a portlet,
    and it gets the exact same errors when I try to submit a form to my actions.
    Any insight would be much appreciated!
    Thanks,
    Patrick

    Hi Brodi,
    I am having the same problem as Patrick. The problem is not in the struts portlet,
    but in the forms the portlet navigates to. After the struts portlet loads, I
    am able to use the html:links and navigate through the pages. Though when I try
    to submit a form I get the action not found error. For example the html-select
    page has a form. This page loads fine, but when I hit the save button I get the
    following error.
    <Aug 25, 2003 11:00:00 AM EDT> <Error> <netui> <BEA-420012> <There was an error
    while running a lifecycle stage :: Lifecycle: UIControl.render :: for the contro
    l :: null ::.
    com.bea.netuix.nf.UIControlException: For portlet [strutsPortlet], could not do
    page flow lookup for the given action [html-select.do] in the given PageFlow:
    struts/exercise-taglib].
    The application appears to loose the struts context. It tries to find the localhost:7001/samples/html-select.do
    action instead of localhost:7001/samples/struts/exercise-taglib/html-select.do
    action. How do I keep the application from loosing context?
    Thank you,
    Karen
    "Brodi Beartusk" <[email protected]> wrote:
    >
    Patrick-
    I've seen similar things happen when the module name is either not specified
    correctly
    in the StrutsContent element in the portlet, or when the module is misconfigured,
    usually because of either a mising config file or a mis-named config
    file.
    Ensure that you have a the struts config file for the exercise-taglib
    module in
    WEB-INF, named jpf-struts-config-struts-exercise-taglib.xml.
    -Brodi Beartusk
    "Patrick Callis" <[email protected]> wrote:
    I'm trying to get the sample webapp for JSR 168 and Struts support working
    with
    WebLogic 8.1, and I'm having problems with the struts portlet. Theother
    portlets
    seem to work fine, but the Struts portlet gives the following errorafter
    clicking
    "Save" on most of the forms:
    Page Flow Error - Action Not Found
    Page Flow: Global.app
    Action: html-setters.do
    Unable to find action html-setters.do.
    That error appears in the browser. At the same time, the followingexception
    appears in the server window:
    <Aug 18, 2003 4:34:12 PM EDT> <Error> <netui> <BEA-420012> <There was
    an error
    while running a lifecycle stage :: Lifecycle: UIControl.render :: for
    the control
    :: null ::.
    com.bea.netuix.nf.UIControlException: For portlet [strutsPortlet], could
    not do
    page flow lookup for the given action [html-setters.do] in the given
    PageFlow:
    [struts/exercise-taglib].
    This exception is followed by hundreds of lines of the following:
    at com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils.strutsLookup(ScopedServletUtils.java:363)
    as well as several stack overflow errors.
    I believe I have installed the JSR168 and Struts support package according
    to
    the instructions, and have copied the required jars into the samples
    WEB-INF/lib
    directory. I also have tried to write my own Struts application ina
    portlet,
    and it gets the exact same errors when I try to submit a form to myactions.
    Any insight would be much appreciated!
    Thanks,
    Patrick

  • JSR-168 Navigation

    I would like to navigate from a Portal page containing JSR-168 portlets to another similar Portal page. I have accomplished this using the EDK <pt:openerLink ...> method but I was unable to append a parameter that was visible to the portlets on the target page.
    Do I need to create an Action URL with a parameter. From the processAction() method of the Portlet on the originating page I would then place the parameter into session scope and redirect from the originating Portal page to the new target portal page. (I know about the bug with session scope)?
    I read the "Introduction to JSR-168 Portlets" article, and noticed the custom tag
    ">here</a>.
    If I use this to how do I specify the new target Portal page?

    I'm not sure if my question was clear. I am not trying to 'call' another portlet. I am trying to navigate from one portal page (containing JSR-168 portlets) to another page. I know that I can do this about five different ways (<pt:opener , custom tag library within the Plumtree JSR-168 war, ...).
    I would like to know the most effective way to do this and pass a parameter.
    According to the 1.0.3 Release Notes for JSR-168 Container 1.0.3: "Render parameters are not stored between requests. This specifically fails the Sun TCK tests using WebLogic on Unix. (Issue #37783)." What is the correct life-span of a render parameter?
    Thank you! Any info is appreciated ;-)

Maybe you are looking for