Portal Component Navigation

Hi all,
I would like to ask you for help with my problem. I have created simple Portal Application with one Portal Component, created iView from deployed PAR.
iView works fine, but if I want to send some data through HTML form (from my page to the same), there is problem. I tried to use simple form:
<FORM method="post" action="">
<input type="text" name="required_field">
<input type="submit" name="mysubmit" value="go">
</FORM>
Problem is, that when I submitted form, page was refreshed, but result page is blank (no error, only blank).
I tried another method with using form action like this:
<FORM method="post" action="ParUserMapping">
<input type="text" name="required_field">
<input type="submit" name="mysubmit" value="go">
</FORM>
If I use my Portal Application name as link destination it returns to me error:
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
iView not found: ParUserMapping.default.
Exception id: 05:36_31/08/06_0032_16393450
See the details for the exception ID in the log file
My portalapp.xml is:
<application>
  <application-config>
    <property name="SharingReference" value="com.sap.portal.usermapping, com.sap.portal.runtime.logon"/>
  </application-config>
  <components>
    <component name="MyPortalComponent">
      <component-config>
        <property name="ClassName" value="com.deloitte.MyPortalComponent"/>
        <property name="PrivateSharingReference" value="com.sap.portal.usermapping, com.sapportals.portal.prt.runtime.PortalRuntime"/>
      </component-config>
      <component-profile/>
    </component>
  </components>
  <services/>
</application>
I just want to send my value via form to same page, but I don't now, why this not works. Should I set any default point/object for my Portal Application?
I would appreciate any help.
Many thanks,
Pavel

I solved problem by changing Form action attribute to:
IPortalComponentURI uri = request.createPortalComponentURI();
uri.setPortalRequestEvent(request.createRequestEvent("LoadUserMapping"));
>> uri.toString()

Similar Messages

  • IPortalComponentRequest in JSP from Abstract Portal component

    Hi,
    I have an abstract portal component like this:
    import com.sapportals.portal.prt.component.*;import com.sapportals.portal.prt.resource.IResource;public class Nav2 extends AbstractPortalComponent{    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)    {          IResource jspResource = request.getResource(IResource.JSP, "jsp/Nav2.jsp");          response.include(request, jspResource);    }}
    Now in the called JSP, I want to use the request object.
    e.g.
    Hashtable env = new Hashtable();env.put("NavigationPrincipal",request.getUser());
    But, the request object is not available.
    How to I get the same object available here?

    Hi Praveen,
    Thanks for the solution but I get some error when I add
    String theCall = service2.createAbsoluteNavigateClientCall(myNavNode.getName(),IClientNavigationGenerator.SHOW_INPLACE,null,null);
    The code is like this:
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.resource.IResource;
    import java.util.*;
    import com.sapportals.portal.navigation.*;
    import com.sapportals.portal.prt.runtime.*;
    import com.sapportals.portal.prt.session.IUserContext;
    import com.sapportals.portal.prt.util.StringUtils;
    public class Nav2 extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              //IResource jspResource = request.getResource(IResource.JSP, "jsp/Nav2.jsp");
              //response.include(request, jspResource);
              response.write("hello india");
              Hashtable env = new Hashtable();
              env.put("NavigationPrincipal",request.getUser());
              INavigationService service = (INavigationService) PortalRuntime.getRuntimeResources().getService(INavigationService.KEY);
              INavigationNode myNavNode = service.getNodeByQuickLink(env,"help");
              IClientNavigationGenerator service2 = (IClientNavigationGenerator) PortalRuntime.getRuntimeResources().getService(INavigationService.KEY);
              String theCall = service2.createAbsoluteNavigateClientCall(myNavNode.getName(),IClientNavigationGenerator.SHOW_INPLACE,null,null);
    Can you please help out on this one?
    Thanks

  • Redirecting from an abstract portal component

    Hi,
    I'm trying to redirect from an abstract portal component to a quicklink. I do it like told in this thread:
    Redirecting to external website from abstract portal component?
    private void redirectUrl(String target, IPortalComponentRequest request) {
      try {
        HttpServletResponse resp = request.getServletResponse(true);
        resp.sendRedirect("../../../../portal/" + target);
      } catch (IOException e) {}
    It works, but the content of my target-URL is still in the Portal-Frame. So I've two time the Portal-Framework-Navigation. Something like this:
    | Welcome         |
    | Welcome         |
    | content         |
    |                 |
    |                 |
    |                 |
    My goal is to redirect the whole page, not only the frame.
    Thanks for any help...
    Regards, Markus

    Perhaps I can do it with
      public void doOnNodeReady(IPortalComponentRequest request){
        request.redirect("http://www.google.de");
    But like in this Tread, it didn't work AbstractPortalComponent and doOnNodeReady

  • Error in service call of Portal Component while accessing CRM iview

    Hi Experts,
    When I'm trying to open the iview, i'm getting portal runtime error.  Below is the log I found.  I check the permissions and everything looks fine.  We have migrated from EP6 to EP7 EHP1 SP8.  This iview is working properly in EP6 but throwing error in EP7.  Kindly let me know how to resolve this issue.
    Exception ID:02:43_05/09/11_0009_109976350
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/com.scc.scc/vcr/com.ids.scc.vcr.crm_link/com.ids.scc.vcr.crm_link.Roles/com.scc.sapbpe.salesrep/myApplications_dlren_0/CRM/quotations/com.sap.pct.crm.sal.my_favorites_sales_documents
    Component class : com.sap.pct.crm.core.favorites.list.ListPortalComponent
    User : TESTUSER
    at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:973)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:355)
    at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:310)
    at com.sapportals.portal.navigation.workAreaiView.doContent(workAreaiView.java:293)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:375)
    at java.security.AccessController.doPrivileged(AccessController.java:246)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:388)
    at com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
    at java.lang.Thread.run(Thread.java:770)
    Caused by: java.lang.NoClassDefFoundError: com.sap.pct.crm.core.objectlinks.ObjectLinkGenerator (initialization failure)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
    at com.sap.pct.crm.core.favorites.list.ListDynPage.onContainerCreate(ListDynPage.java:547)
    at com.sapportals.pct.util.pdv.PDVDynPage.doProcessBeforeOutput(PDVDynPage.java:171)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:127)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    ... 15 more
    Thanks in advance,
    VV.

    Hi,
    check whether note 1291058 applies for you.
    Check whether your Stacks and SPs / Business Packages matched correctly with maintenance optimizer.
    Got this error only once while implementing a new portal, it was due to a corrupted deployment, so probably some of the XSS JAVA Components got corrupted.
    EDIT: "Caused by: java.lang.NoClassDefFoundError: com.sap.pct.crm.core.objectlinks.ObjectLinkGenerator" really looks like something with the JAVA deployment went wrong. Java Stack can't find a class definition in PBO... you haven't modified anything with NWDS/NWDI or have you?
    regards, Lukas
    Edited by: Lukas Weigelt on Sep 7, 2011 1:22 PM

  • FPN: Error in service call of Portal Component

    Hi,
    I'm working with a federated portal network and the producer portal is a BW system.
    My remote role assignment works fine, but not the remote delta links.
    I have create on my consumer portal a delta link to my role residing on my BW system.
    When I test this role,  I got a syntax error in my DetailedNavigationTree:
    [EXCEPTION]
    {0}#1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/Standardobjekte/Layout/ Default_Desktop/frameworkPages/Default_Page/com.sap.portal.innerpage/com.sap.portal.detailedNavigationTree
    Component class : com.sapportals.portal.navigation.DetailedNavigationTree
    User : ADMIN
         at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:973)
    Caused by: java.lang.NullPointerException
         at com.sapportals.portal.navigation.DetailedNavigationTree.doContent(DetailedNavigationTree.java:201)
    Can you tell me why I get this error with the remote delta link role?
    Thanks for your help.
    Regards,
    Mathieu

    Hi,
    thanks for your help. I will update my consumer portal to SP14 and then test again.
    There is in the SAP help this interesting topic: [Version Interoperability|http://help.sap.com/saphelp_nw70/helpdata/de/43/23fabdcad10d23e10000000a1553f7/frameset.htm]
    Consumer-side functionality determines the support level. If content on the producer uses portal client-side functionality (for example, OBN or other navigation related functionality) that is not available or supported by the consumer portal, then the content is not supported in an FPN implementation.
    Regards,
    Mathieu

  • Linking portal component

    Hi all,
                   How to write code to redirect from one portal component to another portal component.
    I am using Response.Redirect("portalcomponent.ascx") like how we redirect page in asp.net application.
    It shows runtime error...
    anyone give an idea to retify this issue.

    Hi Sudarshan,
    how are you doing ?
    a key to keep in mind is that with the PDK you are programming in EP using ASP.NET as a language / syntax class implementation (very similar to how J# uses the java language syntax for .net classes)
    As navigation is within EP, the EP methodologies apply:
    Please have a look at the EPCF API's
    with : WDPortalNavigation.navigateAbsolute(), etc ...
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/6fa84016631814e10000000a1550b0/frameset.htm
    with respect,
    amit

  • Error while consuming web service in portal component

    Hi All,
    I am working on a portal application which uses web services in portal component via web service.
    I have tested the web service and then creted a relevant portal service to it .When using this portal service in the portal component and running it Im getting the following run time error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : Test_portal_service_app.Test_portal_service_app
    Component Name : Test_portal_service_app.Test_portal_service_app
    com.sap.portal.ivs.global.ume.UMECLient.
    Exception id: 11:17_03/07/08_0028_2739150
    See the details for the exception ID in the log file
    I did not use any ume attributes or ume api methods in the portal component .
    I have also added sharingreference= portalserviceapplication name  in deploymentdescriptor of the portal application which has the portal component.
    Please provide any suggestion for the possible cause of error .
    Urgent!!!!
    Thanks.

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • Error Reading Property File in Portal Component

    Hello,
    I have created a portal component that calls an api that is located in a jar file.  The documentation on the Portal Component Structure specifies putting the jar file in the PORTAL-INF/lib directory, which I have done.  The problem is, my jar file reads a property file using ResourceBundle, but it doesn't find the property file.  I have placed the property file in the jar file, and throughout the portal component structure, but it just can't find it.  Has anyone else done something similar?  If so, where did you put your property file(s) for external jars that are used in the portal component.
    EP6 SP2 Patch27
    thanks,
    Keith

    Hi,
    I had similar issues and moved the property files to PORTAL-INF/classes.
    Best Regards
    Frank

  • How to access a  web service(.wsdl) from portal component.

    Hi ,
    Is there any document/tutorial available on how to access a webservice from portal component ?
    I have found this linkhttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/how to access a web service.htm...
    but the urls in the link are not working...
    i want  to know the steps to access webs service and sample code if some body has already done that..
    Thanks for the help.
    Lakshmi

    Hi Lakshmi,
    See the links below:
    http://help.sap.com/saphelp_nw04/helpdata/en/f0/581140d72dc442e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a3/918340d990ce62e10000000a155106/content.htm
    Hope this helps.
    Regards,
    Pooja.

  • Anonymous access to Portal Component over direct URL.

    Hi All,
    Im having a few Issues with enabling anonymous access to a portal component.
    Here is a mock of our portalapp.xml file
    <?xml version="1.0"  encoding="iso-8859-1"?>
    <application>
      <application-config>
        <property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
        <property name="startup" value="true"/>
        <property name="releasable" value="true"/>
        <property name="Vendor" value="com.ourdomain"/>
        <property name="SecurityArea" value="OurSecurityArea"/> -->
      </application-config>
      <components>
        <component name="MyComponent">
          <component-config>
            <property name="ClassName" value="com.ourdomain.MyClass"/>
            <property name="ComponentType" value="servlet"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
      </components>
      <services/>
    </application>
    I want to be able to access the servlet over a URL like...
    http://host:port/irj/servlet/prt/portal/prtroot/MyApp.MyComponent
    I have added the Default User Group Everyone to the no_safety area of our com.ourDomain Security Zone.
    However when try to navigate to the URL we are first faced with a SAP Portal login page. on successful login the servlet is then shown.
    Note: I was able to get the Same Servlet working within an iView when the iViews Authentification Scheme was set to anonymous...However i am under instruction to get it working without the iView...
    As Background, The servlet is to be a sink for accepting data sent via an HTTP Post.
    Any help with this or pointers in the right direction would be greatly appreciated.
    -Paul

    Hi Darrell,
    Thankyou for that, yes it has helped....And I can now access the servlet directly without need to login.
    I figured that there was something that i was missing.....
    -Paul

  • Error while running a portal component.

    Hi,
    I am not able to access portal service from an abstract portal component that I created in the same project as the portal service. Here is the error I am getting:
    Portal runtime error.
    "An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 11:45_15/01/09_0068_15350950
    Refer to the log file for details about this exception."
    Here is the portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
    <application-config/>
    <components>
    <component name="AOSTestComp">
    <component-config>
    <property name="ClassName" value="com.gfc.ume.service.AOSTestComp"/>
    </component-config>
    <component-profile/>
    </component>
    </components>
    <services>
    <service name="OfficeListService">
    <service-config>
    <property name="className" value="com.gfc.ume.service.OfficeListService"/>
    <property name="startup" value="false"/>
    </service-config>
    </service>
    </services>
    </application>
    Here is the code for the service:
    public interface IOfficeListService extends IService
    public static final String KEY = "OfficeListService";
    public String testMyService(String user);
    Here is the code for the component:
    package com.gfc.ume.service;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.runtime.IPortalRuntimeResources;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    import com.sapportals.portal.prt.service.IService;
    public class AOSTestComp extends AbstractPortalComponent
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    IService aService = runtimeResources.getService(IOfficeListService.KEY);
    IOfficeListService myService = (IOfficeListService)aService;
    response.write(myService.testMyService("Longivity"));
    Thanks
    Tony

    Tony,
    this is Java Web Dynpro forum.You already have posted this same question twice in Portal forums. This is third time. please dont do so. We have to keep SDN clean (no redundancy).
    Regards,
    Yogesh Varma

  • Portal Component receives GET from other app out of the Enterprise Portal?

    Hello.
    I want to design a portal component, to which i can send GET-Parameters via URL.
    The sending application runs out of the enterprise Portal and has a simple HTML-form (The portal component generates HTML and JAVA-Script for a Flex Application in the Enterprise Portal which should point to a specific document named in the params. The params will be written into the generated HTML document after calling).
    Is this possible without authetification and how would the URL looks like, which is used to call the enterprise portal?
    Pls help me.
    With best regards
    Edited by: Björn Karpenstein on Aug 15, 2008 11:02 AM
    Edited by: Björn Karpenstein on Aug 15, 2008 11:03 AM
    Edited by: Björn Karpenstein on Aug 15, 2008 11:05 AM

    Hi Björn,
    you can access request parameters with the following code in the standard methods of your Portal Component:
              // IPortalComponentRequest request;
              request.getServletRequest().getParameter("ParamName");
    The direct URL of your Portal Component without a specific iView is:
    http://
    If your component should be directly accessable without authentication you must add the following property in your portalapp.xml in the the component-profile section:
          <component-profile>
            <property name="AuthScheme" value="anonymous"></property>
          </component-profile>
    Best regards,
    Stefan Brauneis

  • Event Handling in Abstract Portal Component

    Hi Friends,
    I am using HTMLB Classlib in an Abstract Portal Component to develop a Dropdownlistbox. Now I want to handle the event of change of selection in this dropdown. However, this event is not getting captured. Sample code is as follows:
    public class dropdownsimple extends AbstractPortalComponent
                           public void onClick(Event event)
                           public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
                                                    IPageContext myContext1 = PageContextFactory.createPageContext(request, response);
              Form myForm = myContext1.createFormDocument("CRMForm");
              GridLayout myGrid = new GridLayout();
              DropdownListBox drp = new DropdownListBox("drp");
              drp.addItem("Key 1","Item 1");
              drp.addItem("Key 2","Item 2");
              drp.setOnSelect("onClick");
                                                     myGrid.addComponent(1, 1, drp);
              myForm.addComponent(myGrid);
              myContext1.render();
    I am able to see the dropdown box along with values when I preview the PAR iView created from this component. Please let me know how to capture the event of change of selection in the dropdown?
    Edited by: Shetul Chothani on Jun 21, 2011 6:37 AM

    Hi,
    Change this line
    drp.setOnSelect("onClick");
    to
    drp.setOnSelect("click");
    and leave the line
    public void onClick(Event event)
    as it is, and it should work just fine.
    I.e., if you name your event "fooBar", the event handler should be named "onFooBar"
    Cheers,
    Robin

  • PortalRuntimeException in Business Object document iview No portal component associated with the following context

    Hi all,
    We are stumped with a problem in our QA Enterprise Portal (7.3.1 Sp7) that throws a portal runtime error when we preview a Business Objects document iview.  The Business Objects Server versions are 4.0 SP5 and/or 4.1 SP3.
    The error is caught in the the defaultTrace file, /usr/sap/QNW/J00/j2ee/cluster/server0/log
    [EXCEPTION]
    com.sapportals.portal.prt.runtime.PortalRuntimeException: There is no portal component associated with the following context:
    pcd:portal_content/com.summit.SES_BI/com.summit.iviews/Daily_Margin
    at com.sap.portal.prt.component.PortalComponentContext.<init>(PortalComponentContext.java:93)
    Here is what we have tried
    * Confirmed the iviews exist in the PCD, by browsing to the content folders and right lick, preview on the iview.
    * Our PRD and DEV systems work correctly and are on same versions of EP Runtime and java. 7.3.1.7.0.201..
    * Occurs with all Businessobjects iviews from the QA portal and all doc types, webis, dashboards. Tried creating new iview.
    * Reapplied the com.sap.businessobjects.iviews.templates.epa to the Portal from t he BI 4.1 SP3 distribution
    * Deleted and recreated the BI portal system connector using the SAP BOBJ system template set path to http://bi-qas:8080/BOE
    * Set the embed key value in the BI system connector property and in the custom global.properties file, restarted tomcat and SIA services
    * Set permissions for everyone end user on the content folders and the BI system connector
    * Confirmed Single sign on configured correctly between BI and Portal
    * Confirmed that the QA BI server is configured correctly by directing the working DEV Portal to the QA BI server.
    * Performed actions in note 1709737
    We are certainly stuck and the defaultTrace file is not very informative.  Any suggestions are greatly appreciated
    Lee Lewis

    This is resolve with note 1615838  - SAP Netweaver Enterprise Portal 7.3 iView creation with BI 4.0 results in exceptions.
    The note includes a file portalapp.xml that need to be inserted into com.sap.businessobjects.iviews.par that is included in the BI server distribution.
    Then deploy the ear file.....
    Odd thing is that the note mentions 4.0 and we are on 4.1 SP3...
    Environment
    SAP BusinessObjects BI Platform 4.0 SP02 Patch 4 or lower
    SAP Netweaver Enterprise Portal 7.3
    Lee Lewis

  • Error in service call of Portal Component

    Hi
    When user trying to access the ITS screen through portal he is getting the following error.
    Portal runtime error with exception id.
    I
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    With the same exception id i could see the another error...
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Exception occured in layer CommonTopLayer
    All other users can access it successfully..
    What could be the problem.
    Please suggest us.
    Thanks & Regards
    Sowmya.

    hi,
    i had the same exception.....
    and find some notes mentioned in other thread:
    Note 1063785 - Runtime of Remote Delta Links fails...
    but seems still not work.
    any suggestion?  or some support package maybe..?
    Edited by: fishy 61 on Oct 13, 2009 4:18 AM

Maybe you are looking for