OPA portlet Customization

I am working on project to integrate OPA portlet in Webcenter.
There is requirement to enable communication between OPA interview portlet and Webcenter portlet.
once the interview is done , there should be a way to dispatch event to another portlet.
How to achieve this?
appreciate a quick response on this.

Hi,
We have not added explicit support for receiving events - mainly because these are very application-specific.
However, you should be able to use our plugin framework and write some custom code to send an event. I am assuming you are working with the RC1 version of 10.4, which has information about the Interview Portlet in the Developer Help (topic "Customize the Interview Portlet" -> "Interview Portlet Events and Event Handlers").
Specifically:
1. Declare the events you wish to send in portlet.xml as described in http://developers.sun.com/portalserver/reference/techart/jsr286/jsr286.html
2. Write an event handler for com.oracle.determinations.portlet.eventmodel.events.OnPortletWriteResponseEvent as described in the "Interview Portlet Events and Event Handlers" topic
3. If the portlet response is an ActionResponse and you wish to send an event to another portlet, then use ActionResponse.setEvent as described in http://developers.sun.com/portalserver/reference/techart/jsr286/jsr286.html
Please let us know if you have further questions!
Cheers,
Linda

Similar Messages

  • Migration of  ADF 10g application to ADF 11g(Portlet Customization Error)

    Hi,
    Currently we are doing a migration of ADF/Webcenter 10g appication to 11g(11.1.1.6) and in the current 10g application portlet is used which contains the file based content and can be customized using a specific role say(admin).
    We have almost done the migration using the Jdeveloper 11.1.1.6 and most of the pages along with the portlet content are coming similar to the 10g look and feel but whenever we want to do portlet customization using the specific role we are getting the below exception. The content is file based system and the details of the versions are as below
    10g Environment:
    OC4J version. Oracle Containers for J2EE 10g (10.1.3.5.0)
    JDK version- java version "1.5.0_06"
    Webcenter and it’s version : Webcenter 10g(10.1.3.5.0)
    ADF version. Oracle ADF 10g
    Jdeveloper 10.1.3.3.0
    11g Environment: Currently I am using Jdeveloper 11.1.1.6 with Integrated weblogic server
    webcenter extension used: oracle.webcenter.framework_bundle/oracle.webcenter.customization_bundle
    Error which I am getting during portlet customization:
    [2013-02-20T14:47:42.162+05:30] [DefaultServer] [ERROR] [] [oracle.portlet.binding] [tid: [ACTIVE].ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: portaladmin] [ecid: 39e706a46ad531be:31f43ddc:13cf6ad5231:-8000-0000000000000386,0] [APP:TEST_DEV#V2.0] An error has occured for Portlet Binding portlet3.[[
    java.lang.NullPointerException
    at oracle.adfinternal.model.portlet.binding.PortletModelImpl.getRequireIframe(PortletModelImpl.java:907)
    at oracle.adfinternal.model.portlet.binding.ActivityPortletModelWrapper.getRequireIframe(ActivityPortletModelWrapper.java:71)
    at oracle.adf.model.portlet.binding.PortletBinding.prepareRenderPhase(PortletBinding.java:455)
    at oracle.adf.model.portlet.binding.PortletBinding._refresh(PortletBinding.java:377)
    at oracle.adf.model.portlet.binding.PortletBinding.refresh(PortletBinding.java:969)
    at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3273)
    at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:561)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:82)
    at oracle.adf.controller.v2.lifecycle.Lifecycle$9.execute(Lifecycle.java:224)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$1000(ADFPhaseListener.java:23)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$5.before(ADFPhaseListener.java:402)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:64)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:352)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Any hellp or suggestion will be helpful for me to resolve this issue.
    Thanks in Advance
    Chetan

    Hi,
    given its a WebCenter question, you want to post it to the Webcenter forum: WebCenter Portal
    Frank

  • The question about portlet customization and synchronization

    I have a question about portlet customization and synchronization.
    When I call
    NameValuePersonalizationObject data = (NameValuePersonalizationObject) PortletRendererUtil.getEditData(portletRenderRequest);
    portletRenderRequest.setPortletTitle(str);
    portletRenderRequest.putString(aKey, aValue);
    PortletRendererUtil.submitEditData(portletRenderRequest, data);
    Should I make any synchronization myself (use "synchronized" blocks or something else) or this procedure is made thread-safe on the level of the Portal API?

    HI Dimitry,
    I dont think you have to synchronize the block. i guess the code is synchronized internally.
    regards,
    Harsha

  • OPA Portlet: jQuery Integration

    I am trying to use JQuery in OPA portlet, but the jQuery calls doesn't getting fired from OPA portlet.
    problem is jQuery works on DOM and as the portlet is remote and consumed as iFrame creates issues.
    same code works for web-determinations.
    I tried number of ways to work it out but failed to trigger the Jquery calls.
    any clue to achieve this is highly appreciated.

    You need to make sure that jQuery is included in the portal page that is hosting the OPA portlet. On Webcenter, you may want to use the PortalWebAssets project - please consult Webcenter documentation for details.

  • Fetching Values from Portlet Customization Form

    I am using DB Provider Report components.
    I have been trying to pass parameters between portlets and have decided retrieve cookies in the "before processing form" pl/sql section of each report.
    HOWEVER, I would have to set them using the customization form and have not figured out how to retrieve the parameters from the customization form so I can set the cookies.
    Can anyone help?
    THanks
    Kelly McMillin

    I thought you were using a form. But now that I know you are using a dynamic page I can help you out more. The customize link on a dynamic page and a report is very combersome. I found the best way to make a parameter form for a dynamic page or report is make a form based on a procedure. For example I have a dynamic page that has parameters for a start date and end date. I created a procedure in the DB back end:
    CREATE OR REPLACE procedure <name of procedure>(
    startdate IN date DEFAULT NULL,
    enddate IN date DEFAULT NULL)
    as
    begin
    <schema>.<name of dynamic page>.show(p_arg_names => portal.wwv_standard_util.string_to_table('startdate:enddate'),
    p_arg_values => portal.wwv_standard_util.string_to_table(startdate||':'||enddate));
    htp.print('<!--');
    exception
    when others then
    null;
    end;
    Then I granted this procedure to PUBLIC. Then went back into portal and created a form based on procedure using the above procedure. Then, you can use this form to run your dynamic page and fully customize it.
    Hope this helps.
    Martin

  • Multi Language Portlet Customization

    Hello ..
    Can any one tell me, if we can provide a multilanguage customization using the JPDK, meaning if user1 clicks the Customize link, change the portlet title from "Title" to "Title1" then press Ok, the Portlet title is changed to Title1.
    Now If he switched his language to ar -By using Set Language Portlet, and changed the Title to Title2 in arabic language for example,the Portlet title is changed to Title2 -in arabic. But if he comes back to the english language, the Portlet Title return to be Title1. In My opinion for this to happen, we need to save the user customizations in two different files for example: username.dat, username_ar.dat under the same preference path. Every Time Portal renderes the Customize page, it is rendered according to the current user language, and the values of the customization parameters also appears either in eng or arabic according to the current language. Can we do that using JPDK? How can we make profit of the method PortletReference.translateDefaultCustomizations?
    Please Advice
    Amr

    Hoan - is your question what are the considerations when creating multiligual catalogs? If so, I can tell you that at other clients I have seen them use a single catalog for one or two languages. For the two langugages, such as Spanish/English, you can create a single catalog with both of them. Once you get to more than two languages, the catalog would get unweildy and is therefore not suggested.

  • JPDK June - Portlet customization sample question

    Hi,
    I was wondering whether someone could help me out with the customization sample provided in the JPDK distribution of June.
    Since BaseCustomization usage is deprecated I'm trying to use subclass the 'NameValuePersonalizationObject' class. However until now I've not been able to change title nor (default) message of the portlet. What am I doing wrong?
    Thx.

    Jan,
    I need a few more details here! Do you mean that you have created your own portlet and are having trouble implementing customization?
    Please repost with a few more details, include your usage of NameValuePersonalizationObject and the context in which you are using it.
    Regards,
    Gareth

  • Portlet Customization problem

    I am using JPDK 3.0.9.0.1 for writing my portlets.
    I am trying to add the customization support to a portlet. and I
    am using FilePersonalizationManager.
    The provider.xml has following element for
    PersonalizationManager
    <personalizationManager
    class="oracle.portal.provider.v1.FilePersonalizationManager">
    <dataClass>com.coverall.portal.MyPersonalization</dataClass>
    </personalizationManager>
    Here MyPersonalization class extends
    NameValuePersonalizationObject class.
    The customization works fine for an Integer value, where I use
    the MyPersonalization class to store String Array into it using
    putStringArray() and getStringArray() methods it doesn't work.
    and gives me
    Error while adding Portlets to the Page. (WWC-44012)
    The following error occurred during the call to Web provider:
    java.io.IOException:
    at
    oracle.portal.provider.v1.FilePersonalizationManager.writeDataObj
    ect(FilePersonalizationManager.java:938)
    at oracle.portal.provider.v1.FilePersonalizationManager.create
    (FilePersonalizationManager.java:331)
    at oracle.portal.provider.v1.FilePersonalizationManager.create
    (FilePersonalizationManager.java:298)
    at
    oracle.portal.provider.v1.http.ServletProviderResponse.registerPo
    rtlet(ServletProviderResponse.java:295)
    at
    oracle.portal.provider.v1.http.HttpProvider.dispatchProviderActio
    n(HttpProvider.java:650)
    at oracle.portal.provider.v1.http.HttpProvider.service
    (HttpProvider.java, Compiled Code)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest
    (JServConnection.java, Compiled Code)
    at org.apache.jserv.JServConnection.run(JServConnection.java,
    Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    (WWC-43147)
    I checked jserv.log and it says
    "[25/10/2001 12:55:14:221 EDT] MyProvider/Error creating
    D:\cti\Portal\provider\MyProvider\65825143\1
    \388_MYPROVIDER_65825143\_default.dat : "
    How do I get this NameValuePersonalizationObject to store String
    Arrays?
    Thank you
    Sagar

    Please log a bug for this through Oracle Support

  • URGENT: IMAP Portlet - customize link problem

    Hi all,
    I got the IMAP Portlet up and running. But, when I click on the customize link I get an empty page back. Any idea is very welcome.
    Thanks
    Ingo

    Can you look into the log file and see if any useful messages
    appear in there ...
    -AMJAD.

  • Repost:Edit Folder link/Portlet Customize link

    All,
    apologies if this has been asked already.
    Need to hide the customize link in Portlet and edit folder link in folder/content area. Better yet, would like to give selective access to these, based on user group (or other acl). I am on 3.0.7. Currently, hiding the header (or banner) is the only way of not showing these links. Do later versions have the same problem ? or has this issue been resolved.
    Thanks
    Sanjay

    I had similar problem in 3.0.9
    I agree with Karthic that looks like a caching problem.
    In the folder portlet, I enabled the Edit option. If a user originally had the privileges to do edit folder, then the folder shows the Edit option.
    If later I remove the privileges so that the user only have view content privileges,
    then the Edit option still shows up in the folder portlet and if the user clicks on the "Edit"link, then a message like insufficient privileges error comes up.
    FYI i don't use any caching for pages.
    Karthic,
    have you heard of this problem in 3.0.9?
    Tks!

  • HTML Portlet - customize

    Hi,
    I am using the HTML Portlet in a page to display some company specific announcements to a user who is logged into the system. Right now all the users get a "Customize" link on top right corner of the portlet, which would allow them to post the announcements. Is it possible to disable(or make invisible) this link to some users and enable/show it to some others, thus ensuring that only few users are able to post the announcements ?
    Thanks in advance,
    Karthik

    Hi,
    You cannot grant any specific privileges on a html portlet to a user. The only way you can suppress the customize link is to not display the portlet header. But this cannot be done for specific users. It would not show up for all the users.
    Thanks,
    Sharmila

  • How to restrict Portlet customization to a small group?

    I have a few nice dynamic pages with bind variables.
    I use the user PORTAL to customize my bind variables, but what I customize is not for other users, they see the result of the default bind variables.
    Surely there is a way to set the customization of a designer for the whole comunity. My question is how to pull that off.
    Thanks for any information in advance.
    Kind Regards,
    Arnoud M. Barth

    I didn't mean setting default values for the parameters in the dynamic page. I meant using the Edit Defaults action on the portal page to set the default customization for the portlet. You can set different default customizations on each page on which you place the portlet.
    Regards,
    Jerry
    PortalPM

  • My favorites portlet customization

    How can I customize the "my favorites" portlet to
    a.) remove the "my favorites" logo from the portlet banner
    b.) add a scrolling bar to the portlet window
    Currently using: 9iAS v.1.0.2.2 (PDK v1)
    If I need to build this on my own, what's the best way to do this (Dynamic HTML portlet?)
    Thanks.

    How can I customize the "my favorites" portlet to
    a.) remove the "my favorites" logo from the portlet banner
    b.) add a scrolling bar to the portlet window
    Currently using: 9iAS v.1.0.2.2 (PDK v1)
    If I need to build this on my own, what's the best way to do this (Dynamic HTML portlet?)If you just want to remove the logo, you could try to rename "ml_us.gif" to something else and then copy "pobtrans.gif" to "ml_us.gif". Both can be found in the portal images directory (\oracle\ora9ias\portal30\images). But of course, it now won't show anywhere.
    Your best bet is to make a custom portlet and then let it show an IFRAME. That way, users can scroll. You can't customize the stock "my favirites" portlet, since the code in the database is wrapped :-/
    Bart

  • 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

  • Registration portlet customization.

    Hello there,
    I want to ask if we can customize the look and feel for the registration portlet, or is there any JAVA API can we call to make a user in OID and Portal???
    Kindly advise.

    For customization of Self-registration portlet follow following thread on thi forum:
    Subject Customize Self Registration Portlet/Form? dtd Nov 10, 2003 9:03
    And refer the following to create user programatically thru Java APIs in portal 9.0.2:
    Oracle Internet Directory Application Developer's Guide
    Release 2 (9.0.2) ->Java API for Oracle Internet Directory -> oracle.ldap.util.User
    hope this soves your problem....!!!

Maybe you are looking for