Overriding or Adding CSS on a remote portlet

Hi all,
I have a producer portlet on Jboss and a remote consumer portlet on Weblogic Portal 10.2. I want to override or add the CSS on the consumer side to that portlet . I tried by giving the same path of the CSS file in both consumer and producer.
Please tell me if there is any way to do that.
Thanks
V.K. Singla

In G6, we have provided a way for a remote portlet to grab the parameters from the URL. If you go to the user info page for the web service, you will see a new option: "Host Page URL Query String". If you check that box, the remote tier will get the full query string, as typed into the browser, as a user info parameter. You can then parse that query string and get any additional arguments that you have passed in.
We realize that this will not work in 5.x, which most of you use. Below you will find the code that you can put into your 5.0 portaluiinfrastructure.jar/dll to make the same change as what we did with G6. That way, if you write your portlets to this feature now, when you upgrade to G6 they will continue working and you shouldn't have to do any modifications to the portal UI.
Locate AppDataObject file, which should be in portaluiinfrastructure.statichelpers package. Find this function:
public static IPTState GetAppDataObject(int iCommunityID, int iPageID, int iGWParams, String strHostPageURI, AActivitySpace asOwner, boolean bResolveSecureBase)
It should be a pretty long function that adds all sorts of stuff to objAppDataObject. At the very end of this function, immediately before the log.Debug statements, add the following line of code:
//set the query string on UserInfoptSession.GetUserInfo().AddUserInfoSetting("HostPageQueryString", asOwner.GetCurrentHTTPRequest().GetQueryString());
Build and deploy a new portaluiinfrastructure.jar/dll according to instructions published on the dev center.
Start the portal, open the web service object corresponding to the portlet which should have access to query string parameters from the URL. On the User Info page, add user info setting name "HostPageQueryString". In your portlet, get the user info setting with that name - you will have the query string as entered in the browser.
Feel free to post in this thread if you encounter any difficulties with this approach.

Similar Messages

  • WSRP - Changing the css of remote portlets

    Hi,
    Consumer: WLP 10.2
    Producer: Websphere Portal 6
    I need to apply css files of the consumer to the remote portlets (not the shell, but to the content inside the actual portlets). Is there any way to override the producer portlet stylesheets before rendering at consumer side?
    I thought of creating same stylesheets at consumer side with same class names and with different attributes (according to requirements) inside the classes.While rendering, in the interceptor class I am planning to read markup data using response and try to change the css name to consumer side css name and again writing the markupdata. Is it possible or is there any other best solution for this. Please help me.
    Thanks,
    Sid

    Hi George,
    We tried to apply "!important" declaration for each rule in css file.Its not picking from local CSS (Consumer) file.But What i feel like remote portlet is not picking up the local css file when get the viewsource on remote portlet the css file path is producers.as below.
    <link rel="stylesheet" type="text/css"
    href='http://localhost:7001/WsrpConsumerWeb/resource;SSPXYYSESSIONID=gDQ5JH9V2TYtzph1XhpgsC301Qbbp516f0nCTFxmgQnqsgM0Qtl6!30602842?_pageLabel=voipTrunk_portal_page_10&_portlet.portalUrl=%2FWsrpConsumerWeb%2FvoipTrunk.portal&_windowLabel=portlet_6_1&_nfpb=true&_portlet.renderResource=true&wsrp-urlType=resource&wsrp-url=http%3a%2f%2faiomt991.dev.qintra.com%3a1080%2foneflex%2fPA_SIPInventory%2ftheme%2fstylesheet.css&wsrp-requiresRewrite=false&wsrp-resourceID=&wsrp-preferOperation=&wsrp-resourceState=&wsrp-resourceCacheability='
    title="Style">
    wsrp-url=http%3a%2f%2faiomt991.dev.qintra.com%3a1080%2foneflex%2fPA_SIPInventory%2ftheme%2fstylesheet.css
    should be replaced with local css file path right.Which we are trying to do in interceptor file.But we are unable to replace existing path to local path If you any other way to do this please let us know.
    Thanks
    Kalpana,Sid & Anu.

  • Getting NPE while adding Remote Portlets

    Hi,
    I am working for BI Disco team, I have one WSRP producer . With this I am able to publish port lets properly in Oracle Portal 11g and WebSphere Portal 6.1, but same one is failing in Weblogic Portal 10.3 ( build date is 20080730 ) .
    Remote Producers registration is successful, but when I am trying to add the remote portlet getting following Exception
    java.lang.NullPointerException
    at com.bea.jsptools.portal.helpers.wsrp.ProducerManagerControlImpl.addPortlet(ProducerManagerControlImpl.java:389)
    at com.bea.jsptools.portal.helpers.wsrp.ProducerManagerControlBean.addPortlet(ProducerManagerControlBean.java:450)
    at portalTools.definitions.portletProducers.portlets.BrowseController$AddAction.doAction(BrowseController.java:465)
    at com.bea.portal.tools.portal.controls.PortalControlImpl.executeActions(PortalControlImpl.java:63)
    at com.bea.portal.tools.portal.controls.PortalControlBean.executeActions(PortalControlBean.java:122)
    at portalTools.definitions.portletProducers.portlets.BrowseController.addPortlets(BrowseController.java:321)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

    Looks like you found a bug in the WLP AdminTools-- this appears to be happening because either the portlet title is not coming across WSRP or it is not localized. In order to track down and fix this bug, it would be helpful to get more information from you.
    Are you using the same build of WLP 10.3 as the producer? If not, what producer are you using?
    Thanks!
    Kevin

  • Render Dependencies Issue in JSF Remote Portlet

    Hi All,
    Am facing one issue while Rendering Dependencies (JS and CSS)
    from a Remote Page (in Consumer) which contains a JSF Portlet in Producer.
    I created a JSF Portlet and added the "home.dependencies" in Render Dependencies Path
    in producer.
    Then i created a page "Sample.page" in producer and added the created JSF portlet.
    Then in consumer I created a remote page which access the "Sample.page" in producer
    and added it to the portal.
    Then, after opening the portal in IE, on checking the view source, the dependencies
    rendered in the head section of the portal are like..
    <head>
    <link rel="stylesheet" type="text/css" href="home.css"><script src="homeJobs.js" type="text/javascript"></script>
    </head>
    But, when i am trying to render dependencies from a JSP portlet using a remote page..
    on checking the view source, then dependencies rendered in the head section of the portal
    are like..
    <head>
    <link rel="stylesheet" type="text/css" href="http://localhost:7001/SamplePortal/resource;jsessionid=v8v8PLwTjWtx5cqGLRZJ13mGDvJ0hHJ11RQdP4QnrXdd94DJbpJy!1009314001?_portlet.portalUrl=%2FSamplePortal%2Fbrowse.portal&amp;_windowLabel=Sample_page_sample_Home_page_page_5_portlet_home_1&amp;_nfpb=true&amp;_portlet.renderResource=true&amp;wsrp-urlType=resource&amp;wsrp-url=http%3A%2F%2Flocalhost%3A7001%2FBrowseJobsApp%2Fsample%2Fhome.css&amp;wsrp-requiresRewrite=true&amp;wsrp-resourceID=&amp;wsrp-preferOperation=&amp;wsrp-resourceState=&amp;wsrp-resourceCacheability=&amp;">
    <script src="http://localhost:7001/SamplePortal/resource;jsessionid=v8v8PLwTjWtx5cqGLRZJ13mGDvJ0hHJ11RQdP4QnrXdd94DJbpJy!1009314001?_portlet.portalUrl=%2FSamplePortal%2Fbrowse.portal&amp;_windowLabel=Sample_page_sample_Home_page_page_5_portlet_home_1&amp;_nfpb=true&amp;_portlet.renderResource=true&amp;wsrp-urlType=resource&amp;wsrp-url=http%3A%2F%2Flocalhost%3A7001%2FBrowseJobsApp%2Fsample%2FhomeJobs.js&amp;wsrp-requiresRewrite=true&amp;wsrp-resourceID=&amp;wsrp-preferOperation=&amp;wsrp-resourceState=&amp;wsrp-resourceCacheability=&amp;" type="text/javascript"></script>
    </head>
    I cannot get the same type of portal url for dependencies when am using a JSF portlet in
    a remote page.
    the dependencies code i have used is..
    <?xml version="1.0" encoding="UTF-8"?>
    <window
    xmlns="http://www.bea.com/servers/portal/framework/laf/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/portal/framework/laf/1.0.0 laf-window-1_0_0.xsd">
    <render-dependencies>
    <html>
    <links>
    <link href="home.css" type="text/css" rel="stylesheet"/>
    </links>
    <scripts>      
    <script src="homeJobs.js" type="text/javascript"/>
    <script src="browseJobs.js" type="text/javascript"/>
    </scripts>
    </html>
    </render-dependencies>
    </window>
    Is there any configuration am missing for rendering the dependencies with
    the portal url in the head section of view source?
    Thanks in Advance,
    Senthil.
    Edited by: Senthil on Jan 9, 2012 11:16 PM

    No idea about jsptags.com's pager tag, but consider creating your own request based paging implementation.
    It is in fact simple. Add a request parameter representing the index of the first row to be displayed. Add a second parameter or less or more hardcoded setting representing the amount of rows to be displayed at once. On next, just add the one with the other. On previous just substract the one from the other. Use those parameters to obtain a sublist from the collection, or to fire a query which returns a subset of results. As you're using JSF, you may get some useful ideas out of this: [http://balusc.blogspot.com/2008/10/effective-datatable-paging-and-sorting.html].

  • Changes are not reflecting using af:resource for adding CSS

    Hi,
    I am trying to add new CSS file(say the name as customNew.css) to page template using af:resource tag, the changes are not reflected. Instead I see(using firebug) that, styles coming from different CSS file(say the name as customOld.css ) which configured on trinidad-config.xml and trinidad-skins.xml files.
    I was under the impression that, the new CSS file(customNew.css) will override the old css (customOld.css). So, CSS added using af:resource tag will not override any other CSS ???
    Any help will be appreciated
    Thanks,
    San.

    Hi,
    if you bring CSS to the browser through af:resource then this is not overriding any skinning definition. Skins can only changed in trinidad-config.xml file (which also can be done at runtime). Just adding a CSS file to af:resource wont do the trick here.
    Frank

  • Oracle BPEL Worklist application as a remote portlet in ALUI portal

    Hi,
    I am integrating the Oracle BPEL sample worklist application as a remote portlet in ALUI in a community page.
    I have 2 urgent queries...and desperate to look for a resolution...
    1) On opening the page where the remote portlet is placed ,it is very very slow to open the firt login screen in IE6.However the page is loading fast in IE7 or netscape.Every time the login page is hit we need to refresh the page to load it quickly..
    2)on thewebservice configuration section for portlet -- > http Configuration ,I have created a gateway and added our Oracle BPEL worklist context to gateway the request.There is a option like Inline refresh..
    a)If inline refresh is unchecked ,the BPEL worklist is not retaining the portlet nature like minimize ,maximize and the top community navigation is lost.
    b)however if inline refesh is checked..The portlet nature is retained ,however there is javascript error coming in the page which is not allowing some of the vanilla features of BPEL worklist is working properly like clicking some buttons and taking actions...
    Is this some configuration to be made in the ALUI side or some thing else...Please let me know if there is any solution to this...
    Regards
    Ashif

    Now I am able to display the initial page of the remote portlet. However, when I try to do some operations I m running into one more issue:
    [WSRP-Consumer:420733]No markup received from the producer [oraclePortal_producer] for portlet with portletHandle[E:3:default].
    Is there anything futher I need to do?
    regards,
    Ansuman

  • Using different namespaces in ALUI remote portlets

    I'm trying to incorporate AJAX technology into our ALUI remote portlets. I'm using Backbase tools to try to do this. However, these Backbase tools have their own namespace defined for their custom tags. When I try to access the remote portlet, I get 'unrecognized namespace prefix' errors in PTSpy. Is there something special I need to do to get ALUI to recognize different namespaces? I have the following line in my remote portlet:
    <pt:namespace pt:token="$PORTLET_ID$" xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" />
    Do I need to do something with this line to use different namespaces?

    I was able to get basic Backbase functionality running inside of ALUI. Since Backbase is booted from the onload method of the body tag, I had to create a Javascript method and call window.onLoad on that method to get Backbase to boot (it wouldn't recognize the onload method in my remote portlet).
    Also, since I'm using remote portlets, I had to gateway the calls to Backbase using the Remote Portlet's Web Service settings.
    In case anyone is interested, my remote portlet looks like this (where the server listening on port 7001 is the gateway server, and the server listening on port 7021 is the server running Backbase):
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <pt:namespace pt:token="$$PORTLET_ID$$" xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" />
    <style type="text/css"> #pt-portlet-$$PORTLET_ID$$ {border: solid 0px;}</style>
    <script type="text/javascript" src="http://localhost:7001/portal/server.pt/gateway/PTARGS_0_0_299_209_0_43/http%3B/localhost%3B7021/Backbase/3_1_6/bpc/boot.js"></script>
    <script language="javascript">
    function runBPC()
              bpc.boot("<pt:url pt:href='http://localhost:7021/Backbase/3_1_6' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>");
    window.onload=runBPC;
    </script>
    <div
    xmlns:b="http://www.backbase.com/b"
    xmlns:s="http://www.backbase.com/s"
    >
              <xmp b:backbase="true">
              <b:button>test</b:button>
              </xmp>
    </div>

  • PreferenceStoreException when selecting a Remote Portlet

    I endup in this error when I add a non-weblogic Producer to Portal Admin console Library.
    The producer gets added correctly and lists all the protlets from the producer.
    Here are the steps I follow.
    1.Click on the Producer just added under Left navigation tree under library.
    2.Producer summary page lists all the portlets form producer
    3. Goto 'Selected Portlets' tab and Click on a particular portlet
    4, For this particular portlet, Under "Portlet Preferences" tab, I see below error: Same is the case with all portlets in this producer.
    Any ideas?
    com.bea.portlet.prefs.spi.PreferenceStoreException: Received a response from url: http://producerserver/producer/wsrp/router/v2/portletmanagement/MyProducer with HTTP status 200 and SOAP content-type: text/html. Set -Dweblogic.wsee.verbose=weblogic.wsee.connection.transport.http.HttpClientTransport to see the full response stream.
         at com.bea.wsrp.consumer.adapter.customization.RemotePreferencePersistenceDelegate.getPropertiesInternal(RemotePreferencePersistenceDelegate.java:800)
         at com.bea.wsrp.consumer.adapter.customization.RemotePreferencePersistenceDelegate.getPreferences(RemotePreferencePersistenceDelegate.java:121)
         at com.bea.portlet.prefs.spi.PreferencePersistenceDelegate.getPreferences(PreferencePersistenceDelegate.java:101)
         at com.bea.portlet.prefs.spi.PreferencePersistenceDelegate.getPreferences(PreferencePersistenceDelegate.java:80)
         at com.bea.jsptools.portal.helpers.PortletHelper.getPortletPreferences(PortletHelper.java:1221)
         at com.bea.jsptools.portal.helpers.PortletHelper.doShowDetails(PortletHelper.java:462)
         at com.bea.jsptools.portal.helpers.PortletHelper.doShowDetails(PortletHelper.java:406)
         at portalTools.definitions.portlets.details.DetailsController.getResources(DetailsController.java:90)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
         at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
         at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)For above error, is it something to do with the content type? I tried setting this in startup -Dweblogic.wsee.verbose=weblogic.wsee.connection.transport.http.HttpClientTransport but nothing happening in the log.
    I also see this error when i add another producer by following the same steps mentioned above.
    com.bea.portlet.prefs.spi.PreferenceStoreException: java.lang.NullPointerException
         at com.bea.wsrp.consumer.adapter.customization.RemotePreferencePersistenceDelegate.getPropertiesInternal(RemotePreferencePersistenceDelegate.java:800)
         at com.bea.wsrp.consumer.adapter.customization.RemotePreferencePersistenceDelegate.getPreferences(RemotePreferencePersistenceDelegate.java:121)
         at com.bea.portlet.prefs.spi.PreferencePersistenceDelegate.getPreferences(PreferencePersistenceDelegate.java:101)
         at com.bea.portlet.prefs.spi.PreferencePersistenceDelegate.getPreferences(PreferencePersistenceDelegate.java:80)
         at com.bea.jsptools.portal.helpers.PortletHelper.getPortletPreferences(PortletHelper.java:1221)
         at com.bea.jsptools.portal.helpers.PortletHelper.doShowDetails(PortletHelper.java:462)
         at com.bea.jsptools.portal.helpers.PortletHelper.doShowDetails(PortletHelper.java:406)
         at portalTools.definitions.portlets.details.DetailsController.getResources(DetailsController.java:90)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)Vijay

    Hello,
    It is possible for a WSRP producer to support portlet preferences, but not support accessing or changing portlet preferences through the WSRP portlet management port. The WSRP portlet management port is an optional portion of the WSRP specification, and what portions of the portlet management port are supported should be declared in the producer's WSDL document. From the behavior you're describing, I would guess that the portlet management port for the producer isn't supporting the preferences management portions.
    The best way to tell exactly what is going on would be to use the WSRP monitor on your consumer, and look at the SOAP messages that are being returned from the producer. Examining the producer's WSDL document for the "portlet management port" would also be useful.
    As for hiding the minimize / maximize buttons on a streamed remote portlet, I don't have any specific ideas. Since it is a streaming remote portlet, there is no way to attach a backing file to it, so anything you did would need to be done in a WSRP interceptor. But I don't know of any way to suppress the minimize / maximize buttons from the interceptor's context objects or the PortletPresentationContext-- this doesn't mean it can't be done, I just don't know how-- it isn't my area of expertise.
    Kevin

  • Convert MyFolder in 4.5 to Remote Portlet in 5.0

    We want to convert the native gadget "My Folders" in 4.5 to a remote Portlet in 5.0 as this native gadget has no longer been supported in 5.0. Has anyone done this? Any suggestions or good practive advices? We would also like to migrate the current "My Folders" user data to the 5.0 with the new gadgets. Thanks much!
    Hao Pan ([email protected])

    Your psychic - I looked at that yesterday because I opened the dbupgradetool.bat and it calls portalenv.bat which does this:
    rem * Set PORTAL_HOME, CLASSPATH, and PATH
    set PORTAL_HOME=%PT_HOME%\ptportal\6.1
    set PATH=%PORTAL_HOME%\bin\native;%ICU_PATH%;%INXIGHT_PATH%;%OUTSIDEIN_PATH%;%PTHREADS_PATH%
    set CLASSPATH=.;%PORTAL_HOME%\lib\java\portalapi.jar
    set PT_JRE=%PT_HOME%\common\jre\1.4.2
    Now I looked in my environment variables collection and I don't see CLASSPATH or PT_JRE. So I'm wondering if it ever even got to this point. I tried adding manually, but got the same error.
    I think you're on to something and I'm going to look into this as a possible solution again. This has to be what it means.
    To answer your question, yes my 6.1 portal comes up vanilla just fine when I open the portal config manager and point the db to the 6.1 db. Hmmm..as I type though, I'm thinking about my environment. I've tried the upgrade on a 4.5WS SP3 dev image upgraded to 6.0 and I got this same error. Now I'm trying it on an exclusively 6.1 vanilla dev image w/ a 4.5 PlumDB moved to the images sql 2005 server for upgrading. Trying both scenarios yields the same results.
    My co-worker who's in charge of upgrading collab from 2.x to 4.x had a successful portal db upgrade yesterday from 4.x to 5.x because collab's upgrade path forced him to. I'm wondering if we just don't want to do the same thing for our portal db upgrade - i.e not follow the 4.5 to 6 path and just chugging it through the 4 to 5 to 6 path. Argh.
    I'll continue looking into the environment variable situation then probably go back to my original 4.5WS SP3 dev imagej and try the upgrade from scratch again.
    This is really eating into time we alotted for ui changes - db wasn't supposed to take this long. :(

  • Remote portlets and their dependencies

    Can we access dependencies in remote portlets which are deployed onto a simple producer?
    How CSS and JS are sent to the consumer?
    Thanks

    Simple producers cannot use any WebLogic Portal specific features, like look and feel. See the document "Simple Producers": http://download-llnw.oracle.com/docs/cd/E13155_01/wlp/docs103/federation/Chap-Details.html#wp1028331
    A complex producer knows what WebLogic Portal look and feels are. See the document "Complex Producers": http://download-llnw.oracle.com/docs/cd/E13155_01/wlp/docs103/federation/Chap-Details.html#wp1021335
    I'm no WSRP expert but I have used render dependencies on a remote portlet. If I remember correctly, the URL for the dependencies that the consumer ends up using is a resource URL that is proxied back to the producer. I looks like any other WSRP resource URL.

  • Plumtree.Remote.Portlet.NotGatewayedException: Request not gatewayed

    Hi,
    Iam getting a error like "Plumtree.Remote.Portlet.NotGatewayedException: Request not gatewayed" when iam trying to remotely connect to Oracle web services from .Net code.
    In the below code when the pointer comes to execute "PortletContextFactory.CreatePortletContext" then system is throwing a exception like "Plumtree.Remote.Portlet.NotGatewayedException: Request not gatewayed".
    Please help.
    protected void Page_Load(object sender, EventArgs e)
    IPortletContext m_context;
                   m_context = PortletContextFactory.CreatePortletContext(Request, Response);
    if (m_context.GetRequest().GetSettingValue(SettingType.Session, "searchTerm") != null)
    sSessionVal = m_context.GetRequest().GetSettingValue(SettingType.Session, "searchTerm");
    sPagePath = this.Request.Url.LocalPath;
                   if (this.Request.QueryString["search"] != null)
    m_context.GetResponse().SetSettingValue(SettingType.Session, "searchTerm", this.Request.QueryString["search"].ToString());
    sSessionVal = String.Empty;
    pnlRedirect.Visible = true;
                        pnlForm.Visible = false;
                   if (System.Configuration.ConfigurationSettings.AppSettings["AllowBorders"] != null)
                        if (Convert.ToBoolean(System.Configuration.ConfigurationSettings.AppSettings["AllowBorders"]) == false)
                             pnlNoBorder.Visible = true;
              }

    I was trying to run the page directly instead of through portlet.
    I got it now.
    I have created a Webservice - Remote portlet and Created Portlet then I added the portlet to Page that works fine.
    Thanks.
    Srinivas Kootikanti

  • Facing problem working with remote portlets

    Hi,
    I have a usecase where in i created a WSRP producer containing 2 jsr168 portlets. This producer application contains a form based security configured for the default role PortalSystemAdministrator(weblogic/weblogic).
    I am have a consumer application which consumes these portlets. This application too has form based security configured for the default role PortalSystemAdministrator.
    What i have done in the above application is created a SSO scenario, where in once i login in through the consumer application, the user information is passed along to the producer through the configured WSRPIdentityAsserter token, thereby forming a trust between the producer and consumer application.
    This scenario works perfectly fine as expected and i am able to view the remote portlets through the consumer.
    Now i have deployed another j2ee application in the same portal domain. This application resulted in a custom realm created and a set of custom authentication providers within it.
    So now the current situation is that active realm in the new custom realm, and it contains 4 custom suthentication providers. Here i saw the WSRPIdentityAsserter missing from the list so from the admin console i configured WSRPIdentityAsserter.
    But when i try to run the same consumer application, though it lets me login in using the same credentials (weblogic/weblogic), it fails to propagate the principal values across to the producer application.
    Since in my producer portlet i have a code "request.getUserPrincipal()" which now results in a null value.
    When i used the "/monitor" context to check for the flow of soap messages between the consumer and the producer i can see the header containing the Saml token and "weblogic" as the user name.
    And the most wired part about all this is, when i was reading through the weblogic documentation for wsrp, i encountered something related to <enable-local-proxy> value within wsrp-producer-registry.xml. By default this value is set to false. And the things worked well earlier with this default value as explained above. So just to give a shot at trying things i set this value to true and i was able to view the portlets correctly.
    But i am still yet to find a solution to the problem as stated above with the <enable-local-proxy> set to its default value(false), since it worked well earlier.
    So i am pretty clueless as to what would be going wrong here. Is it that since the new custom relam is now active i need to make some sort of changes in regards to the WSRPIdentityAsserter configurations.
    I tried googling for a long time, but failed to get any relevant help on this problem.
    Can someone please throw some light on this.
    Thanks,
    Vikram

    Deepak,
    I dont think that would be an issue since, my scenario worked well with the default realm (myrealm) and the default user (weblogic/weblogic). In that case i suppose it used DefaultAuthenticator for authentication and WSRPIdentityAsserter for passing the information from the consumer to the producer.
    But after deploying this other J2ee application on the same portal domain, which resulted in a new security realm being created and few custom authentication providers added.
    So now the situation is when i try to run the above consumer application, though it lets me login but it does not pass the login credentials (principal) to the producer application (which is earlier did through the WSRPIdentityAsserter). Since my code in the producer portlet (request.getUserPrincipal()) results in null value.
    Checking through the "/monitor" context shows that the consumer is passing the login credentials through the saml tokens within the SOAP header. But either it is not reaching the producer application or then there is some other reason due to which the producer application is failing to trust the consumer and provide the secure data.
    Please can some one help me on this.
    Thanks,
    Vikram

  • Returning to different community pages from remote portlet

    Hi,
    I'm trying to determine the options available if we'd like to a remote portlet on one community page to return to a different page within the community on post back. We're able to dynamically build out a redirect string using parts of the request's hostpage properties, but we know that the page id of the community will probably change between different environments (dev/staging/live). I understand that pages don't have UUIDs so that's out.I'm sure there are some kludgey workarounds like keeping track of the different pageIDs as preferences or an external file, but we'd like to do this the "right" way if possible so we don't have to separately maintain that info.
    Any help is appreciated, thanks!

    hi,
    i don't think producer can access consumer's backing contexts.
    but you can use backing files on the proxy portlets and retrieve desktop, page names in the backing file and pass the data to producer using custom data transfer technique. For further info, pl. refer to the below link.
    http://edocs.bea.com/wlp/docs81/wsrp/custxfer.html
    -sampath

  • Multiple form parameters with the same name not passed to remote portlet

    I have an html select box that contains several values, and multiple
    selection is enabled. When my code runs as a remote portlet, the
    following is showing up in the soap monitor when I select multiple
    values and submit the form:
    <urn:interactionParams>
    <urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
    <urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
    <urn:value>true</urn:value>
    </urn:formParameters>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}">
    <urn:value>beatest1</urn:value>
    </urn:formParameters>
    In this case, I selected beatest1 and beatest2, but only beatest1 comes
    through to the remote portlet. Is this a known bug, and, if so, is
    there a patch or workaround available?
    Thanks in advance,
    Andy

    If you're not on 8.1.4 move there. 8.1.3 had limitations in the wsrp
    release.
    wrote:
    I have an html select box that contains several values, and multiple
    selection is enabled. When my code runs as a remote portlet, the
    following is showing up in the soap monitor when I select multiple
    values and submit the form:
    <urn:interactionParams>
    <urn:portletStateChange>cloneBeforeWrite</urn:portletStateChange>
    <urn:interactionState>_action=addEmployeesToGroup</urn:interactionState>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}OldValue">
    <urn:value>true</urn:value>
    </urn:formParameters>
    <urn:formParameters
    name="P62005wlw-select_key:{actionForm.selectedEmployees}">
    <urn:value>beatest1</urn:value>
    </urn:formParameters>
    In this case, I selected beatest1 and beatest2, but only beatest1 comes
    through to the remote portlet. Is this a known bug, and, if so, is
    there a patch or workaround available?
    Thanks in advance,
    Andy

  • Portlet Edit Mode in a Remote Portlet doesn't work with JSP

    I am facing a strange problem. I created a protelet and attached the edit to a JSP Page(edit.jsp). When I create a portlet of this and display in a portal, the edit works fine in case of a local portlet. But when the same is made as a remote portlet, I get an Operation failed fault.
    The exception is:
    Fault: {urn:oasis:names:tc:wsrp:v1:types}OperationFailed
    Internal Server Error: Page Flow [testPortlet.edit.edit.jsp] is invalid..; nested exception is: java.lang.IllegalStateException: Page Flow [testPortlet.edit.edit.jsp] is invalid
    Does anyone know why the edit in a remote portlet works only with a page flow?

    There is no edit mode defined in this portlet.
    Subbu
    Chandra Mouli Parameswaran wrote:
    Here you go!. This is the portlet file on the producer side.
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:portlet definitionLabel="portlet_2" title="ViewQuotesController">
    <netuix:titlebar/>
    <netuix:content>
    <netuix:pageflowContent contentUri="/viewQuotes/ViewQuotesController.jpf"/>
    </netuix:content>
    </netuix:portlet>
    </portal:root>

Maybe you are looking for

  • Error during the installation of OWB 10g: ins_plsql.mk

    Hello, When trying to install OWB10g for Linux, the error to proceed is presented: "Error in invoking 'install' of makefile '/oracle/OWB10g/plsql/lib/ins_plsql.mk'." The DB is 9.2.0.5 and the SO is Red Hat Enterprise Linux 3. Trankful for the attenct

  • Can you use Sibelius sounds with Logic?

    Sibelius comes with it's own orchestral sounds (Kontakt sounds). I know you can buy the Kontakt sounds separately BUT does anyone know if Logic will play the ones that exclusively come with Sibelius. I'm wondering if Sibelius comes with some code tha

  • To load a pdf in a Panel

    Hi, How to load a pdf in a panel. I tried the code:- var u:URLRequest = new URLRequest("../pdf/Registration.pdf"); navigateToURL(u,"_blank"); This will open the pdf in a new window. I need to get the pdf file open in a panel .

  • WRT120N How to open NAT type PS3 !!!!

    Hi i have a WRT120N router. it goes alrite in connection wise but for my ps3 my nat type is strict which wont let me join in some of my mate's partie's or host a game. And i REALLY wanna fix it by opening my nat i've bascially tried everything portfo

  • Changing brush shape in next version.

    I like to have the brush to do different shapes. Like a square so you can burn or dodge straight lines.