Spaces: passing parameters to portlet

Does anybody know how i can pass a parameter from the URL to my portlet?
I thought i would be the same as with the oracle portal but i'm wrong...
I tried creating a page parameter on my space page and than pass that page parameter to my portlet. When i set a default value of that page parameter, the value gets passed to my portlet but i want that my portlets receives the value from my URL.
For example i call following page:
http://localhost:7777/webcenter/spaces/myGroup/page/somePage?myId=11
How do i pass the myId to my portlet?
I'm using ADF portlets if that can be of any use...

Nevermind... problem solved.
I had t create a page parameter and bind the page parameter to #{param.myId}
My portlet parameter gets bound to the page parameter and than it's get parsed correctly.

Similar Messages

  • Oracle JSF portlet Bridge - Passing parameters to Portlet

    Hi All,
    I am referring following link to pass parameters to portlets that are created from TaskFlow.
    http://sqltech.cl/doc/oas11gR1/webcenter.1111/e10148/jpsdg_bridge.htm#CACCJCAA.
    I am able to pass values to portlet by having setters for respective navigation parameter exposed in oracle-portlet.xml file
    Now, how to invoke the method in a portlet that will make use of the passed values and do further processing. The method would be same as getEmployees() mentioned in the tutorial above. But the getEmployee method is not invoked event after doing all the event mapping.
    Regards,
    Sanjay

    AH, if you are using ADF faces than the risk gets smaller. If you are used to eclipse and you developer your ADF application there than i see a good chance for succeeding later on.
    You might have small issues when migrating to JDeveloper but i don't think they will be blocking.
    If you are working with lots of WS, have you looked at the different types of mash-ups you have in WebCenter?
    For example the omniportlet which allows you to integrate webservices and style the parameter forms and output.
    You can also create data controls at runtime in Webcenter that are based upon webservices.
    There aren't many cases available. Maybe you should come to OOW in October (if that isn't to late). There will be some customers presenting their use cases there.

  • Passing parameters between portlets (PL/SQL PDK)

    I'm new to the PDK, so forgive me if this is a dumb question. I need to develop a portal page containing a single search portlet, and then many other associated portlets which bring back various bits of data based on the result of the search.
    Is it possible to drive the content of other portlets on the same page by passing values from one to another and refreshing the whole page?
    null

    Neil,
    You can definitely pass parameters from one portlet to another in PL/SQL and we actually have a sample that you can take a look at. In the PDK, download the Parameter passing and CSS Example Provider sample. http://technet.oracle.com/products/iportal/files/pdkjan/index.html
    Click on PL/SQL
    One of the portlets demonstrates how to pass parameters to one portlet or all portlets on a page.
    Hope this helps,
    Sue

  • Passing parameters between portlets

    Hi , I have a page with two portlets : one , done with the wizard , is a form , the other one is another form , but is done with a JSP.
    My trouble is that with the second form , the one done with a JSP , I must insert into the database two values , one retrieved by the jsp itself , and the other one is a value of one field of the other form.
    My question is how can I get , from my jsp , that value coming from the other portlet ???
    Thanks
    max

    Hi,
    You can redirect to another page and pass parameters to it. For this, you need to know the pageid to which you have to redirect. Assign form action to
    http://machine:port/servlet/page
    PageServlet requires few other parameters (form fields) to redirect the control to the required page.
    You can get them by making a call to
    HttpPortletRendererUtil.htmlFormHiddenFields(pr,PortletRendererUtil.PAGE_LINK)
    This returns a string similar to the following.
    <INPUT TYPE="hidden" name="_pageid" value="54" />
    <INPUT TYPE="hidden" name="_dad" value="portal30" />
    <INPUT TYPE="hidden" name="_schema" value="PORTAL30" />
    Parse it for _pageid and change the value to the page you want to redirect. Print these contents inside your form. Once you submit the form, it'll redirect the control to the page you want with the parameters.
    --Sriram

  • Passing parameters from portlet reports to portlet forms

    Hi,
    I'm tring to pass parameters between a Report displayed as a portlet in a page ( page 1) and a form displayed in other page ( page 2).
    The problem is i can't do this.
    I only can pass parameters from a report ( running as normal or in a portlet displayed in a page) to a form running "normal" by using application links. Can i do this between a report that show's me every employees of scott.emp table. Then when i click on each employee, it open's me another page with the portlet form of the specified employee.
    I'm not sure i made myself clear. Please send me some feedback.
    Pedro

    I have the same problem. Please let me know if this could be done.
    In particular my form is a type of "Form on Table/View."
    Thanks
    Henry

  • Passing parameters to portlets

    I have two reports that are each based on the same three
    parameters. What I would like to do is base a from on three
    LOV's that conatain all the values that can be passed. (They are
    plant, grade and gauge). First should I use the lov's to
    populate a temp table and then pass those values or is there
    another way. And secondly after I have the values how do I pass
    them. I have an idea that on the driving form I can put 'GET
    REPORTS' link that will refresh the page with the parameters
    forcing the portlets to refresh but have no idea how to do it.

    Go to Ken Atkins site at
    http://www.arrowsent.com/oratip/frames.htm
    and select the "White Paper" link.
    Select "Advanced Development Techniques for Oracle Portal
    Components". Download this Power Point presentation.
    You will find an excellent description, and working code
    listing, on how to work with Session variables.
    He describes two stored procedures select_new_dept and
    current_deptno in detail. If you follow his examples you
    shouldn't have any problem creating the sored procedures for
    saving and restoring an LOV value to/from a session
    storage variables. The select_new_dept function will save the
    current values to Session Storage and the current_deptno
    function can be used to retreive the LOV value.
    What I did was add a button to the Form and add code to save the
    LOV values.
    In your report you can then used something like
    select empname
    from scott.emp
    where empno = my_pkg.current_empno('bldgform','bldg')
    and .... = my_pkg.current_mgr('bldgform','bldg')
    and
    and
    Hope this helps.
    Larry

  • Passing Parameters between Portlets or pages

    Hi,
    How can we pass the data from a Portlet in one page to another Portlet in a different Page??
    Requirement: I want a portlet which should take some parameters(basically a form),On submit should process the parameters and should forward the result to a Portlet in another page.
    Regards
    Yash

    Yash,
    You could use session variables to save information that can be used during the browser session. Example would be the form asks a user for their nickname. The user types in his nickname and hits the submit button. The form will then save the info in a session variable. Then any other portlet can open that session variable and get the info and use that info. Now if the browser is closed, the info in the session variable is lost. Check out this link:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/wwsto_api_session.html

  • Passing parameters between portlets with in the same page

    Hello,
    I have created a Form and a report. The form allows a user to make some selection values, and then upon submit it passes the selected values to the report to query the database. The results from the query are displayed in a new - seperate - window from the form. Is there anyway to disaply the report results on the same page as the form that called the report? I guess I am trying to have a page with 2 portlets (a form, and a report). I want the user to be able to make a selection from the form portlet and pass that selection to the report portlet within the same page.
    Thanks,
    McKell

    Hi I received this info from an OSS named Mahantesh. I thought it was very helpful information for passing portlet parameters between a form and a report within the same page.
    Please check these steps to pass parameter from form to report:
    This article is based on demo tables EMP and DEPT.
    1. Create a report RPT_DEPT using the query 'Select * from dept where deptno= :deptno'
    2. Create a form FRM_EMP based on EMP table.
    3. Edit the form FRM_EMP => 'Formatting and Validation Options' section => click on DEPTNO field
    => Give the value for the 'Link' (under 'Display options') as 'javascript:runrep()' where runrep is the name<br>
    of javascript function that we are going to create later.
    4. In 'Form text' section, in the 'Footer Text' add the code for the runrep function as follows.
    <script>
    function runrep()
    var formObj = document.forms[0];
    var deptno;
    for (var i=0; i < formObj.length ; i++){
    if (formObj.elements.name == 'FORM_EMP.DEFAULT.DEPTNO.01'){
    //FORM_EMP is the form name
    deptno = formObj.elements[i].value;
    break;
    var url="/portal/page?_pageid=38,1,38_31678:38_31787&_dad=portal&_schema=<br>
    PORTAL&deptno=" + deptno;
    //modify the url according to your environment.<br>
    window.location=url;
    }<br>
    </script>
    5. Modify the URL in the above code with your page url on which form and report portlets have been placed.
    6. Goto Page properties => Parameters tab (Parameters and Events option should have been enabled at Pagegroup level).
    7. Create a page parameter and map it with report portlet parameter.
    8. Now run the page, enter deptno or query the form to get the deptno and click on the link next to deptno field. You should get report with corresponding deptno on the page.

  • Passing parameters between portletized ADF Faces applications, possible?

    Hello,
    In the developer guide, section 4.5.3 (http://download-east.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_pages.htm#CHDGGCGE) it says that you can synchronize portlets using an ADF Faces component value. However, that example do not use a value coming from a real portlet, the parameter come from a selectOneChoice define in the container page.
    Is there a way to achieve the same thing but with the selectOneChoice being placed in the WSRP 2.0 portlet? Basically the communication scheme is WSRP 2.0 to WSRP 2.0 which is something possible using URL parameters. However, the problem with JSF components is that they pass their values through a JavaScript launched POST submit so the values are never added to the URL and even worst, you cannot be sure of the generated parameter name as it depends on the context in which the component exists (mainly the presence of a parent NamingContainer) and the only way to know that parameter name for sure is to have a way to call component.getClientId(facesContext) which is impossible for the portlet container and therefore for the other portlets.
    To put it shortly, is there a way to send a navigation parameter from a portletized ADF Faces application to its container page beside using goButton and goLink (we need to keep the action/actionListener functionality)?
    Regards,
    Simon Lessard

    Can someone explain how to assign a value to a parameter in JSF like in the ParameterFormPortlet source code? Something in replacement of this :
        if (viewMode)
          // Set the new parameter values. These will be intepreted by the
          // container as navigational parameters as the names match the names of
          // the declared parameters.
          actionResponse.setRenderParameter(PARAMETER1, param1);
          actionResponse.setRenderParameter(PARAMETER2, param2);
          actionResponse.setRenderParameter(PARAMETER3, param3);
        }I mean, how to replace setRenderParameter to achieve the same thing inside a JSF binding bean for example. Is it possible via the PortletContext?
    Thanks in advance for any hint.
    Jean-Philippe

  • Passing parameters from portlet to portlet on same page

    Hi,
    can anyone please give me an example with the code. I have read that i should be using some api's but , don't know where to write them.
    Thanks.

    Hi,
    What version of portal are u using.We have introduced the concept of Page Parameters in Portal 902 release which would do exactly the same thing. Where in a page parameter can be used b/w portlets on a page.
    Thanks,
    Anu

  • What is the format required to pass parameters to a component running as a portlet?

    I have just got working the passing of parameters to reports and forms. However, if I run these as portlets, it does not seem to accept the parameters, giving me various errors.
    What is the correct method of passing parameters to portlets?
    null

    Michael
    A search on passing parameter in this forum returned 5 hits; I believe one or more of them will likely answer your question.
    Also check out the FAQ: http://technet.oracle.com/products/iportal/htdocs/portal_faq.htm#CustomPortlets

  • Pass parameters that contain spaces between web pages

    Hi,
    I have a .jsp . Inside it, I only need to call a link with a parameter.
    The problem is that the parameter contains spaces:
    name="ALARM LEVELS"
    If I write:
    <a href=modif_list.jsp?name=<%=paramName%>>See list</a></p>The parameter received in modif_list is "ALARM" and not "ALARM LEVELS"!!!
    How can I pass parameters that contain spaces between web pages?
    Thanks

    The think is that the parameter is a label and obviously I don't know the value before hand.
    In fact, I am using
    <a href=modif_list.jsp?table=<%=paramName%>&label=<%=label%>
    <%=tableName%></a></p>.....So I can't help it if the label contains spaces.
    Now if there is no solution, I suppose I can always replace the space by "_" and when I collect the parameter, I replace the "_" by a space!

  • Passing Parameters between 2 Portlets on 1 Page

    Hi,
    I'm new to this portlet stuff and I might miss something important, but:
    I "just" want to send parameters from one form on one Page to a portlet on the same page...
    PassAllParameters is already set to true...
    I also have read the "Primer" and the "Adding Parameters and Events to Portlets", after giving up to do this my own, I just copied and pasted the Name/Age Form JSP (nearly... I've made Java out of it...) as my DataProvider Portlet and copied and pasted the "Generic Public Parameter Receiving Portlet" as my DataReceiver Portlet... the Event and Parameter Tags are NOT missing in the provider.xml... but even after pressing submit there are no parameters at all avaible for the "receiving Portlet"!!!
    PLEASE can someone tell me what I am doing wrong?!?!?!?

    Hi friends,
    I worked with the application which is in
    http://server:port/jpdk/providers/event. is working fine with passing parameters to another page.
    Also I create my own application which is working fine if i have the 2 portlets in the same page.
    But it is not working with portlets in different page. On clicking the link it is not going to the another page. Hereby i give the required codes.
    portletpass.jsp:
    PortletRenderRequest prr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String eventSubmit = EventUtils.eventName("submit");
    String eventParamsno = EventUtils.eventParameter("sno");
    String strsno="50" ;
    NameValuePair[] linkParams = new NameValuePair[2];
    linkParams[0] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, eventSubmit), "");
    linkParams[1] = new NameValuePair(HttpPortletRendererUtil.portletParameter(request, eventParamsno),strsno);
    <a href="<%=PortletRendererUtil.constructLink(prr,
      prr.getRenderContext().getEventURL(), linkParams, true, true)%>"><%= strtitle %>
    </a>
    provider.xml of portletpass.jsp:
    <event class="oracle.portal.provider.v2.DefaultEventDefinition">
    <name>submit</name>
    <parameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>sno</name>
    <displayName>sno</displayName>
    </parameter>
    </event>
    portletreceive.jsp:
    PortletRenderRequest prr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    //      String snosp = "sno", snorec="" ;
    //     String values = prr.getParameter("sno") -------returns null
         String values = prr.getParameter("_page_url");
         String snorec = values.substring(values.lastIndexOf("sno=")+4) ;
         out.println(snorec); // here i get the required value
    provider.xml of portletreceive.jsp:
    <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>sno</name>
    <displayName>Input Parameter #1</displayName>
    </inputParameter>
    Also i did the necessary changes in parameters and events tab as well.
    I cant sorted out what is the mistake i did.
    The scenario i need is on clicking the link it should display the details in a new page.
    Can anybody please help me.
    Thanks in advance
    Durai

  • Passing parameters between form portlets on two different pages ...

    Here is a brief summary of our problem.
    We have one master form and a detail form which are published as portlets and placed in two different pages.
    Now i want to pass parameters from master form portlet resides on one page to detail form portlet resides on another page.
    Say for example, when i invoke master form (created based on demo DEPT table), enter values on fields then invoke another page
    on which the second form portlet (say form based on EMP demo table) resides. Now i want to pass deptno to second form and
    get displayed in deptno field of second form.
    I was looking at the following posting, but how to do this when forms are published as portlets and placed on two different pages ?
    http://forums.oracle.com/forums/message.jsp?id=997683
    Customer actually want to pass a parameter from master form to 5 detail form portlets resides on different pages.
    This is bit urgent as it is the only problem stopping the customer go live.
    Thanks in advance.

    Please refer to post Re: session state security
    It tells you how to populate a form portlet in a page by clicking on a link in a report portlet.
    You can use the wwsto_api_session objects to store data submitted by the master and let the detail form pick it up and proceed with the query.

  • Passing  Parameters for url in portlet

    I want to pass parameters through the url to a portlet.
    As I can make that?
    There is some example.
    I am working with the portal 9i release 2 and jpdk november 2002 v2

    hi Frank,
    Thanks for the response. We followed your suggestion and managed to capture URL parameters in afterPhase(LifeCycle.PREPARE_MODEL) and save parameters to ViewScope.
    Then in beforePhase(LifeCycle.PREPARE_RENDER), we retrieve parameters back and invoke FndUIController.openMainTask method to launch the correponding taskflow but nothing happens.
    public static void openTaskflowOnNewTab(String taskflowId) {
    try {
    FacesContext fc = FacesContext.getCurrentInstance();
    ELContext elc = fc.getELContext();
    ExpressionFactory ef = fc.getApplication().getExpressionFactory();
    ValueExpression valExp = ef.createValueExpression(elc,"#{bindings.openMainTask}",Object.class);
    JUCtrlActionBinding methodBinding = (JUCtrlActionBinding)valExp.getValue(elc);
    Map params = methodBinding.getParamsMap();
    params.put("label", "Some Title");
    params.put("taskFlowId", taskflowId);
    params.put("reuseInstance", true);
    methodBinding.invoke();
    } catch (Exception e) {
    e.printStackTrace();
    To prove that this method works, we create a UI button on the page (which binds this method in PageDef.xml), and associate this method to onclick event. At runtime after page is opened, clicking on the button does launch the taskflow on new tab successfully.
    Do you happen to know what I do wrong in the beforePhase() method?
    Thanks
    -Phi

Maybe you are looking for

  • Lightroom 5 Beta – Radial Filter | What's New in Lightroom 5 Beta | Adobe TV

    Learn how easy it is to apply local adjustments including modifications to exposure, contrast, sharpening and more, using the new non–destructive Radial filter in Lightroom. http://adobe.ly/ZpT4bB

  • Copying the PKCS#11 wrapper dll to the client machine in a signed applet

    Hello, I'm implementing in a signed Java Applet using the IAIK PKCS#11 Wrapper and the PKCS#11 module of my hardware token to communicate with it. I have to copy the pkcs11wrapper.dll to the client machine. All things works perfectly under Windows XP

  • Need to update Exchange 2010 to SP1 from base

    I need to update my base install of Exchange 2010 to SP1 and eventually SP2. This sits on a 2008 R2 server. in reading other upgrade articles, there are references to needing hotfixes at the server level - 2008 R2. There are about 5 hot fixes referen

  • Code Signing Help!

    Hello. I am trying to submit my application to the mac app store. However I can't code sign when I click on submit.Please help the only option in Code Signing is Don't Sign. Thanks.

  • Printing e-mail messages only

    Does anyone know a way to print only the body of an email message? I keep getting the "to" and "From" and "subject" fields when I print, even if those fields have not been entered on a new message. Any ideas? Jerry