interaction of JSR 168 portlets with a portal

Hi, I'm fairly new to jsr 168 prtlets and how to use on a portal.
I want to design two placeholders, one to the left and to the right. Then each placeholder has a jsr 168 portlet such as portlets on the left have buttons or hyperlinks and clicking on them, the page or action opens on the right portlet.

Can someone guide me on how to code it. I use weblogic workshop for that. Please give me an example of code if you can.

Thank you much for the help in advance

Concerning
John

Hi John,.

In JSR168, there are two "scopes" for the session - scope portlet (which is the default) and the scope. Your code would work except that you have found the scope of default by portlet session; you want the scope of application shared-of-everything-portlets.

For that, all you need to do is to change your call:

portletSession.setAttribute ("testVariable", "testing123");

TO:

portletSession.setAttribute ("testVariable", "testing123", PortletSession.APPLICATION_SCOPE);

and modify your call:

String value = (String) portletSession.getAttribute ("testVariable");

TO:

String value = (String) portletSession.getAttribute ("testVariable", PortletSession.APPLICATION_SCOPE);

Kevin

Tags: Fusion Middleware

Similar Questions

  • How to add portlets JSR 168 Portal Web Logic

    I installed WebLogic Server 10.3, WebLogic Portal 10.3 and workshop 10.3 on a virtual Windows Linux (version 5.4 of Red Hat Enterprise Linux Server).

    I used Workshop for WebLogic to create a Web portal project and a portlet in the < BEA_HOME > /wlportal_10.3/samples/domains/portal field. I can view the page in the portal at http://localhost:7041/PortalOneWP/myportal.portal.

    Using NetBeans IDE, I created a JSR 168 portlet that is packaged in a WAR file. I put the file. WAR in the folder < BEA_HOME > /wlportal_10.3/samples/domains/portal/autodeploy

    How can I add this portlet to the page I have to the http://localhost:7041/PortalOneWP/myportal.portal?

    Thanks in advance for your help,
    Barbara

    Hello Barbara,.

    The problem is that your JSP attempts to use portlet_2_0 tag library, which works only with the JSR286. JSR286 only is not supported by WLP right now (although it will be in the next version), only JSR168 is supported.

    If you do not use the specific tag library JSR286 features, you may be able to just change the import of taglib to be "http://java.sun.com/portlet" (the library of tags JSR168) and everything should work. If it still does not compile with that change, watch the JSR168 tag library documentation and make sure that you use only tags and attributes that are supported in JSR168 tag library.

    Kevin

  • Question of packaging portlets JSR 168

    Hello

    I have a bunch of Java (JSR 168, using Spring MVC) portlets (PortletOne, PortletTwo... PortletN) that I've created as individual Web portal projects and are contained in a portal REE project. This portal EAR is my unit of deployment and consists also of another project of Portal Web (Assembly.war) that contains an app.portal file where I intend to assemble all these Java portlets and use it to create a desktop computer. The reason for having all individual portlets in web projects that is clean is to export it to a device and use it as a shared library or package in the EAR another file as necessary.

    my application.xml looks a bit like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    
         <display-name>MyEar</display-name>
    
         <module id="WebModule_1">
              <web>
                   <web-uri>Assemby.war</web-uri>
                   <context-root>appname</context-root>
              </web>
         </module>
    
         <module id="WebModule_2">
              <web>
                   <web-uri>PortletOne.war</web-uri>
                   <context-root>PortletOne</context-root>
              </web>
         </module>
         
         <module id="WebModule_3">
              <web>
                   <web-uri>PortletTwo.war</web-uri>
                   <context-root>PortletTwo</context-root>
              </web>
         </module>
    </application>
    But since all these WAR files are at the same level that I can't refer to definitions of context and the controllers for the portlets defined in each of these portlet WAR files (PortletOne, PortletTwo,...) of the joint web project that contains the file app.portal in Assembly.war. I tried to set up a structure of classes customized in weblogic - Chargers application.xml and put the war on a lower level assembly file, but the app even not a not deploy with IllegalAccessError as soon as a framework for each of the war files is saved by the hot deployment of processes. Moreover, when I deploy the EAR file, the portlets defined in each of the WAR files do not appear in the resource library, seen from the Portal Administration console.

    Suggestions how to assemble these common individual portlets in a web project, while keeping their packaged in the same EAR file? Other approaches are also welcome.

    I've already reviewed deploy these files of WAR portlet like Weblogic J2EE of shared libraries. But with this approach, the overall application response time is very slow despite exhausting all the tuning options and can also precompile JSP pages in shared libraries.

    Is to import the JSR-168 portlets using the import utility as WSRP portlets ARE a viable option? I'll be able to share in portlets all session variables, of fire and manage events and be able to precompile the JSP in Rible portlets?

    Published by: shyam6190 on August 13, 2009 13:25

    Hello

    Maybe the nested multiple classloaders involved with shared libraries approach slows down, it down-if this is the case, it would be difficult to fix.

    With the help of WSRP should work for you; There is a little more complex, but if you have relatively simple portlets, use methods and tags correct JSR168 (or done spring bridge), it shouldn't be too difficult to get to work. The IDE may be able to help you with that; You can create a new portlet type 'remote portlet' in your aggregate webapp, and a wizard will guide you through the steps. If you use the local proxy mode, individual portlet WSDL URL will be the URL of the Web application for each portlet on localhost.

    WSRP configuration can also be done dynamically in the tools of administration of portal, and even using a specialized tool to import JSR168, but these two options would create instances of database portlets and portals in your webapp library. It would be nice if your EAR group does not need to move to a different deployment environment, but if you need portability of the EAR in another environment it makes packing, as data is also necessary. If you happen to use WLP version 10.3, according to me, there is a bug that prevents the import JSR168 tool specialized to work, but the tool is documented here:

    http://download.Oracle.com/docs/CD/E13155_01/WLP/docs103/prodOps/deployment.html#wp1047337

    Because all WSDL URL show up only on the local host, when you compress the associate WAR file it should successfully deploy on all servers. Information about the local proxy mode, which should improve the performance of your configuration, are described here:

    http://download.Oracle.com/docs/CD/E13155_01/WLP/docs103/Federation/chap-Best_Practices.html#wp1010714

    I hope this helps!

    Kevin

  • Using the JSR 168 Interportlet communication

    Hi all

    We use JSR 168 portlets. My requirement is to call on some events from Portlet to Portlet B method.

    I need assistance on the implementation of communication Interportlet using JSR 168

    Thank you

    Hello

    Pass review below two discussions

    Using the JSR 168 Interportlet communication

    Re: JSR 168 Portlets - IPC with custom events

    Thank you
    Vincent Sarvabatla

  • Portlets JSR-168 in WebCenter Interaction

    We exposed re-implement many of our portlets WebCenter Interaction in the JSR 168 standard uses the container of the JSR-168 WebCenter interaction. What we found, is that the stardard is fairly simplistic, and we do not find a way to access things like Id of the portlet or the URL of the Image Server, which we are accustomed to use. Is there a way to make use of these things in the WebCenter Interaction JSR-168 container?

    The main reason that we wanted to move to the standard is to facilitate future updates. We will have to move in the future everything on an IBM WebSphere portal that our company uses also, or if we stay with WebCenter Interaction, finally we heard that there could be major changes when the product merges with WebLogic portal.

    Thank you
    Tim

    Hello

    JSR168 is a fairly simplistic standard, but there are ways to do more things.

    For example, to get the portlet ID (I assume you want a single portlet instance ID and not an ID for that 'typical' portlet), you can use the PortletRequest.getWindowID () to return an ID for the single portlet user session.

    For the storage of URLs that need to be reconfigured depending on deployment, which is usually done with the preferences of portlets JSR168 portlet - portlet can read its value, which can be set by a developer or an administrator (or the portlet itself, if you wish). Deployed with portlets Java properties files can also contain this configuration information.

    Kevin

  • IPC using JSR 168 in Weblogic Portal

    Hello world
    Time and now I see a few articles on the most essential notion that we try to acquire knowledge and to produce in our portal application is inter-portlet communication. I found a lot of samples for websphere based of portlets and a few extensions more to support interportlet communication. Let me introduce to you in a concise way of what we are trying to achieve, we try to create inter portlet communication without using session context, event handlers and the backup files. Add to this that we try to have an ajax based approach to refresh portlets. We started using portal weblogic portal development just a month back and its all Greeks and latins for us to start with very little information, just, I think that I will get some answers from the experts here. I also understand that this post may be the requirement for most of the people who work with the portal environment. Please post your suggestions/samples on this approach and the ways to do this. Thanks in advance.

    Concerning
    Ashwin

    Ashwin Hello,

    Thank you to detail what you want to do. From your description, I think certainly you don't want to use asynchronous desktop. In the async Office, portlets refresh when they are interacting with on the customer or when they receive an event of the portlet is interacting with (and for the next version of WLP, whenever they welcome an audience of JSR286 make parameter). But WLP 10.3 for your use cases events are going to be the way forward to ensure the good portlet (s) are updated in desktop async mode.

    So for your use case described below, I think that you would be events want to implement something like this:

    High portlet fires an event (I'll call it "filterParams") when it gets to a call from processAction() indicating that the user interacts with this portlet and filter settings may change. To the event payload you might use a simple map of the filter parameter name / value of the filter setting.

    Second portlet listening event "filterParams" (from the top of the page portlet), so that it can cool off and display the AAU links based on what is at the top of the page portlet (which he received in the event payload). The second portlet also sends an event in its method processAction(), which I will call 'linkSelected', with a payload of the link that should display the third portlet. In the Manager 'filterParams' of events the second portlet can also send a "linkSelected" event to cause the third portlet refresh if you want to only it when the top portlet filter of modified page settings.

    The third portlet would listen for the "linkSelected" event and set its content appropriately from the link he received in the event payload.

    It would be possible to upgrade to JSR286 events in the future if you implemented this way with JSR168 events now.

    Kevin

  • NPE when registering remote Portlet in Weblogic Portal 10.3

    Hello

    I'm under Weblogic Portal 10.3 and try to create a remote portlet in my portal application. The remote Portlet is hosted on OC4J 10.3.1.1.1 and is consumed correctly on Oracle Portal without any error, however, when I try to access the portlet wsdl through the remote Portlet Wizard, I get the following exception when registering.



    Bq. {color: #3366ff}! ENTRY com.bea.wlp.eclipse.common 1 1 11:37:28.938 2008-10-06 {color}-{color: #3366ff}! \ MESSAGE [Portal-ERROR: http://forums.oracle.com/forums/] there was a problem submitting registration for this producer. {color}-{color: #3366ff}-reason = ProducerAgent::java.lang .NullPointerException: null {color}-{color: #3366ff}! \ ENTRY com.bea.wlp.eclipse.common 4 4 2008 - 10 - 06 11:37:28.938 {color} \ {color: #3366ff}! \ MESSAGE {color} \ {color: #3366ff}! \ STACK 0 {color}-{color: #3366ff}------java.lang.NullPointerException {color}-{color: #3366ff}------to weblogic.utils.encoders.CharacterDecoder.decodeBuffer(CharacterDecoder.java:188) {color}------{color: #3366ff}------to com.bea.wsrp.util.XmlUtils.decodeBASE64(XmlUtils.java:270) {color}------{color: #3366ff}------to com.bea.wsrp.bind.RegistrationContextImpl. & lt; init & gt;(RegistrationContextImpl.java:44) {color}-{color: #3366ff}------to com.bea.wsrp.client.ProducerAgentImpl.register(ProducerAgentImpl.java:258) {color}------{color: #3366ff}------to com.bea.wsrp.client.ProducerAgentImpl.register(ProducerAgentImpl.java:221) {color}------{color: #3366ff}------to com.bea.wlp.eclipse.wsrp.portletbuilder.wsrp.ProducerAgent.submitRegistrationDocument(ProducerAgent.java:384) {color}------{color: #3366ff}------to com.bea.wlp.eclipse.wsrp.portletbuilder.wizard.wsrp.SelectProducerPanel$ RegistrationRunner.run (SelectProducerPanel.java:1425) {color}-{color: #3366ff}------! ENTRY com.bea.wlp.eclipse.common 1 1 11:37:28.953 2008-10-06 {color}-{color: #3366ff}! \ MESSAGE [Portal-DEBUG | http://forums.oracle.com/forums/] RegistrationPanel::could do not have the registration document: null {color}

    {color: #3366ff}
    {color}


    {color: #000000} This producer is entirely consistent WSRP and works perfectly fine with Oracle Portal. Pointers where he might go wrong? {color}

    Andréanne

    There is a bug in WebCenter please upgrade to 10.1.3.4.1.

    Nate

  • Re-direct URL with Oracle Portal.

    Hello

    We have some old applications based portals that we want to redirect to the new version and we tried to do a redirection of the httpd.conf file and restarted the server http, but his does not work.

    We have

    http://hts03:7778 / portal/page/Portal/TestMichael/StaffList and I want to re-direct to: http://hts03:7778 / portal/page/Portal/PG_SITELINK_V2/P_SITELINK_HOME

    So, we have in our httpd.conf file:
    redirect /portal/page/portal/TestMichael/StaffList http://hts03:7778/portal/page/portal/PG_SITELINK_V2/P_SITELINK_HOME
    So we ask what we did wrong and can we use redirects with Oracle Portal?

    See you soon,.
    Paul.

    Why not use a rewrite rule?

    RewriteRule ^ / portal/page/Portal/TestMichael/StaffList/portal/page/portal/PG_SITELINK_V2/P_SITELINK_HOME

    And don't forget to run dcmctl updateconfig TC - SST after updating the httpd.conf file manually. If you change if via Enterprise Manager, it is done automatically for you.

    Thank you
    EJ

  • ALBPM portlets in WebLogic Portal Deployment error

    Hi, I have a problem when I try to deploy ALBPM workspace portlets in WebLogic Portal

    < 28/01/2009 BRST 18h11min47s > < HTTP > < BEA-101214 > < error > < included the resource or the file ' / workspaceWeb/framework/skeletons/text/flowlayout.jsp ' not found requested resource ' / workspaceWeb/BPMPortal.portal "."» >

    I copied the framework folder in the web project, but the problem persists. I used the 10.1 WLP. This could be a problem in version?

    Concerning
    Rogerio Cruz

    This can be Bug 8155355, which is classified as a configuration error. The solution is to make sure that you have configured in your Facelets web.xml file:


    javax.faces.DEFAULT_SUFFIX
    . XHTML

    What is your problem?

  • Error with calendar portlet in Weblogic Portal 10.3.2

    Hello

    I use WLP 10.3.2 version with configured AD.
    For the calendar, I have put right. Anonymous user has create, view, update, and delete functionality.
    Once the connection with the user of the AD, I go to the calendar portlet and can display the calendar. But when I try to add an appointment, then click on save, I see the error below.

    Any help would be appreciated...

    Thank you
    Win

    com.compoze.collab.CollaborationException: an error occurred trying to work with the back-end system. This error is unrecoverable. {collaboration.service_provider=bea_cm_groupware;beacm.mail_auto_create_mail_folders=true;beacm.entitlements_listener=com.compoze.collab.beacm.DefaultEntitlementsListener@460ea1a;beacm.repository_name=Community_Repository;beacm.owner=pwin35;beacm.visibility=COMMUNITY;beacm.create_root_node=true;beacm.repository_root_path=/Community_Repository/Calendar/EmployeePortal} [681DC467-569E-1554-7137-77E97F4968C4], nested: com.compoze.collab.CollaborationException: Error getting the default object class (stub) {collaboration.service_provider=bea_cm_groupware;beacm.mail_auto_create_mail_folders=true;beacm.entitlements_listener=com.compoze.collab.beacm.DefaultEntitlementsListener@460ea1a;beacm.repository_name=Community_Repository;beacm.owner=pwin35;beacm.visibility=COMMUNITY;beacm.create_root_node=true;beacm.repository_root_path=/Community_Repository/Calendar/EmployeePortal} [5084300E-B8DC-CDD0-1AB6-ED882900465A], nested: com.bea.content.AuthorizationException: User does not have view privileges to view this type or its properties
    at com.compoze.collab.beacm.impl.CmStub.commitItem(CmStub.java:2001)
    at com.compoze.collab.beacm.impl.CmStub.commitItem(CmStub.java:1755)
    at com.compoze.collab.impl.ItemImpl.commit(ItemImpl.java:659)
    at com.compoze.collab.beacm.impl.CmAppointmentImpl.commit(CmAppointmentImpl.java:847)
    at com.compoze.collab.beacm.impl.CmAppointmentImpl.commit(CmAppointmentImpl.java:641)
    at portlets.collaboration.groupware.provider.CalendarProvider.saveAppointment (unknown Source)
    at portlets.collaboration.groupware.calendar.content.addEditAppointment.addEditAppointmentController.saveAction (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    In addition to defining the rights on the portlet, you need allow the region in the BEA Repository storing artifacts of collaboration (appointments). You will also need to call the collaboration of content types to give view rights users can instantiate.

    Brad

  • Do the Aqualogic Portal support portlet with in an iframe?

    AquaLogic portal - 6.1 MP1

    Thanks in advance

    Sunil

    You can't expect any portals features to work if you have an iframe in a portlet (using idk, analytics etc.).

    Its generally said that the portal don't support Iframes for the aforementioned reasons.

    You can just bring in the Applications in the portal as it is. Based on the schedule and budget, we brought our company to understand the implications in an application that uses iframes and fact.

  • Default paging feature (Jdev 11.1.1.7.0) is incomplete with application portal webcenter framework.

    Hello

    Use the pagination by default with in the table for application portlet using Jdev (11.1.1.7.0), when I run application portlet that it works correctly.

    When I run the same portlet application with the webcenter Portal framework, I could not find navigation page number and the total number of records.

    Thank you

    SIFI.

    Make sure you put your portlet inside a stretch no layout, like PanelGroupLayout, don't put it inside the PanelStretchLayout and if you have a PanelCollection put the PanelCollection inside a PanelGroupLayout

  • Disable/remove portlets from the portal

    I would like to disable/remove access to some portlets in portal so that they are not accessible to users. The portlets in question are the Collaboration (calendar, tasks, Discussion, Mail, AddressBook) those provided by BEA/Oracle. I know one option is to remove the facet of collaboration portal, but I need this facet to continue using GroupSpace.

    They should not be listed. Any API that returns a list of the portlets should not list of portlets which the appellant did not have access to see. I have validated with GroupSpace end-user customization tools, as you have indicated that you use GroupSpace. If the user do not have display capabilities on a particular portlet, like the calendar, he was not returned in the list of portlets to add to a page.

    Brad

  • Cannot add any portal pages, a portlet to my portal project

    Hello world

    I created a project of portal in Workshop 10.3. The target framework's BEA WebLogic Server 10.0.
    When I try to add a new portal, Portlet, Page or any other component related portal, he said "*"MyPortal"project is collecting not a valid portal.

    The project is deployed with the files of the Portal works correctly. Y at - he of the configuration files that I missed to set if this workshop does not think that the project is a project of Portal? Could someone give me a hand on this subject? Thank you very much!

    Unfortunately, it is necessary for the workshop version, WLP server and projects workshop phase for all WLP works correctly.

    Greg

  • Possible GPIB communication through interactive control of Visa, not with Labview

    Hello

    I have a communication problem with Labview with GPIB instruments (with functions of visa).

    I get:

    "Error 1073807298 occurred at the VISA opening

    Possible reasons:

    "VISA: (Hex 0xBFFF003E) failed to perform operation due to i/o error."

    However, it works with an interactive control visa and this is where I am confused!

    Here is my setup:

    -Labview 2011 assessment

    -VISA 5.1.2

    KUSB - 488B with the associated drivers (adapter USB to GPIB of Keithley)

    Because I can speak with my instruments in visaic, I guess the installation of drivers for the Keithley interface is ok.

    Trace IO NOR I see beeing of commands passed through Labview to VISA so that they "see" between them.

    I found a thread where someone had the same problem and its solution was downgrade to Labview 8.5.1, which is not possible for me.

    http://forums.NI.com/T5/instrument-control-GPIB-serial/Keithley-2700-driver-problems/TD-p/1474212/PA...

    You have an idea to solve this problem?

    Kind regards

    Baptist

    Here's a follow-up on this issue.

    I tried with Labview 32-bit on main machine: it works.

    The pleasure is that I have to use Labview 64-bit.

    So the ultimate solution is now to run a client and a server of visa on the machine: Labview 32 bit can directly access my resources GPIB, Labview 64-bit must go through the closure of the network.

Maybe you are looking for