Multiple instances of same portlet on same page

Dead horse, I know, but I am afraid I still don't get it:
I use ONE JSP to extract data as XML, parse the data using XSL, render it. A portlet has some variables that may vary between instances of the same portlet on the same page. I am familiar with this document: http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/PRIMER.PORTLET.PARAMETERS.EVENTS.HTML
but still don't know how to make sure that every portlet gets it's 'own' parameters passed. I pass them and attempt to grap them in the jsp using request.getParameter().
I have played with making each parameter unique using the portlet instance name followed by a '.' and a name, e.g. 35024_LISTPORTLET_49519321.next_page=10.
Setting passAllUrlParams in provider.xml to true helps getting the parameters through, but the side effect is, of course, that all instances get mixed up. Setting it to false does nothing.
PLEASE, is there, somewhere, a document that tells us EXACTLY how to do this? JDev 10g, as10g.
Tnx.

Have you read the Public Portlet Parameters Support section of the Portal Developer's Guide?
The question is who passes the parameter to your portlets. If the parameters are passed from within the portlet instance itself, use qualified private portlet parameters. If they're passed from the outside, use page parameters and public portlet parameters.
Hope this helps.
Peter

Similar Messages

  • Can't run multiple instances on same page!

    Hi,
    Since I got no response on the shadowbox forums after 2 weeks, I thought it's worth to post it here and hope someone can help me out.
    Note: This is also related on non-joomla pages. I've tested it on plain html as well (by Dreamweaver) and get the same issue.
    The following issue was posted by me on the shadowbox forums:
    I was wondering if the following is possible.
    I've tried almost everything where I can think of, but no luck.
    Searched many forums and googled a lot, but without success.
    I got feeling that I'm so close and missing some simple solution.
    So I'm stuck here, I'm not able to figure it out.
    This is what I want to achieve:
    My website is running on Joomla 1.5. And I'm using a Shadowbox extension.
    In an article I've put multiple SWF movies, like previews acting like buttons.
    So when clicking on a SWF button/movie, Shadowbox opens and plays a related FLV movie.
    To achieve this part I've followed the instructions at this site under FAQ > first paragraph.
    So far so good...
    Now the ugly thing is when putting multiple swf buttons on a single page, after clicking a random button Shadowbox always displays the same flv movie. I did some altering with ID's and such but had no luck.
    Even try to alter with the Shadowbox options and variables, flashVars and such (at this site under Options and Usage) but that worked out for me.
    The strange thing is when placing the buttons, let's say in an article belonging to a section and category and make the articles paginated, after clicking the swf button the related flv plays. Browsing to the next page and clicking the button, the related flv will play also. This is the way it should be. Unfortunately it doesn't work when multiple buttons are displayed on the frontpage or an single article regardless whether they belong to sections and categories or not.
    Even when a single code is placed in a single article and display 2 or more articles containg a different swf and a different related flv link only the last added flv plays with every random swf button/movie.
    This the code I'm using for each swf (actionscript behavior):
    FIRST INSTANCE SWF=====================================
    on (release) {
    getURL("javascript:openShadowbox
    ('http://test.cquence-multimedia.nl/images/cqmm_test.flv','flv','title')");
    SECOND INSTANCE SWF=====================================
    on (release) {
    getURL("javascript:openShadowbox
    ('http://test.cquence-multimedia.nl/images/WizardFinal_1.flv','flv','title')");
    ================================================
    This is the code I'm using in the article (2 instances on a single page):
    =======================================================
    <!-- FIRST INSTANCE -->
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="50" data="images/default_swf_button.swf">
    <param name="movie" value="images/default_swf_button.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="9.0.45.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
    <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>-->                       
    <object width="150" height="50" data="images/default_swf_button.swf" type="application/x-shockwave-flash">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="9.0.45.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" border="0" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </p>
    <script type="text/javascript">
    swfobject.registerObject("FlashID");
    </script>
    <script type="text/javascript">
    function openShadowbox(content, player, title, width, height, options){
    Shadowbox.open({
    content:"http://test.cquence-multimedia.nl/images/cqmm_test.flv",
    player:"flv",
    title:"SHADOWBOX FLASHBUTTON TEST FLV",
    width:"800px",
    height:"600px",
    </script>
    <!-- SECOND INSTANCE -->
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <object id="FlashID1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="150" height="50" data="images/default_swf_button2.swf">
    <param name="movie" value="images/default_swf_button2.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="9.0.45.0" /> <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
    <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> <!--[if !IE]>-->        
    <object width="150" height="50" data="images/default_swf_button2.swf" type="application/x-shockwave-flash">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="9.0.45.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" /> <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
    <a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" border="0" alt="Get Adobe Flash player" width="112" height="33" /></a>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    <script type="text/javascript">
    swfobject.registerObject("FlashID1");
    </script>
    <script type="text/javascript">
    function openShadowbox (content, player, title, width, height, options){
    Shadowbox.open({
    content:"http://test.cquence-multimedia.nl/images/WizardFinal_1.flv",
    player:"flv",
    title:"SHADOWBOX FLASHBUTTON TEST BRIAN",
    width:"800px",
    height:"600px",
    </script>
    =======================================================
    This is the link to the page in question:
    http://test.cquence-multimedia.nl/index.php?option=com_content&view=article&id=9&Itemid=13
    Please, any suggestions would be great!
    Thanks in advance.
    Best Regards,
    John.

    Sorry...I still don't get it. What is it about Windows FUS that keeps iTunes from running running the process twice? It can run many other non-Apple windows apps in multiple user sessions (commercial apps, open source apps, audio/video apps, networked apps). I can even run two different virtual machines at the same time under two different user sessions.
    Why can iTunesHelper.exe run twice but iTunes.exe cannot? Why can I run Safari at the same time? Quicktime Player runs fine under multiple user sessions.
    Blaming it on Windows and/or FUS sounds like FUD. Can anyone give a valid technical reason? Semaphores? Mutexes? An admission (and explanation) that the Windows version is purposely crippled?

  • How to use/sync single data (file) across multiple instances of same application

    Currently we have an application (a diagram editor), that have the ability to save and load (serialize) its state in a xml file.
    Now we want this application to behave like Microsoft OneNote application. Where multiple users have the ability to access the same file.
    Later we may also need to enhance with other things like, (1)what is changed and who changed it, (2)option to resolve conflicts if any.
    I came to know about sync framework to resolve this. so far, i have not tried it.
    All i want is,
    Virtually single file should be edited by multiple instances of same application.
    We need a dll (sync framework) that does following
    It takes complete responsibility of file handling.
    Using this dll, each instance of the application will notify their own changes.
    Each instance of the application should have the ability to detect the changes that is recently made (when, who, what are the changes).
    My question:
    Will sync framework be suitable for this requirement?
    If so, is there a demo application that represents this?
    - Jegan

    Seems like I have found the solution.
    In the taskflow there is a property named data-control-scope and I set it to isolated instead of the default (shared) and this seemed to do the trick.
    I can now have two instances of the same taskflow running with different ApplicationModules
    Cheers,
    Mark

  • How to create multiple instance on same database

    Hi ,
    I would like to know how to create multiple instance on same database . I know that some people use database configuration assistant to do this but i could not figure out how they did it.
    Any how if some one can help me with this and can give me links of this it would be great help for me.
    Thank you for reading my problem and helping me !
    Amil
    please if possible mail me on [email protected]

    How to create multiple instance?????Do you mean multiple instances on the same database, or multiple databases on the same machine ?
    I m new to this field....
    Willin to learn a lot about oracle....Then it wouldn't be bad reading a bit of Database Concepts

  • Can we have Multiple Instance on same Node in Oracle 10g RAC

    Hi All,
    I am planning to implement the RAC in Oracle 10g.Before that i have one doubt regarding RAC.
    My question is "Can we create multiple Instance on Same node(Server) ?"
    is it possible.
    Any ideas or thoughts would be apperciable.
    Thanks in Advance.
    Anwar

    This is where it is important to keep the separation between 'database' and 'instance'.
    A database is the set of files that contains the data (and the redo, control files, etc). A database does nothing by itself, other than take up lots of disk space.
    An instance is theCPU cycles (running software) and the memory to control the database.
    In Oracle RAC, you can have as many instances controlling one database [at the same time] as you want (within reason). Each instance must be able to access the disk(s) that contains the database.
    These multiple instances can be on the same computer (effectively taking up a lot of server memory and CPU for nothing) or they can be on separate computers.
    If they are on separate computers, the disk subsystems must be able to be shared across computers - this is occasionally done using operating system clusterware and is the main reason why clusterware is required at all. (This is also the toughest part of the pre-requisites in setting up a RAC and is very vendor dependent unless you use ASM.)
    These instances need a communication connection to coordinate their work (usually a separate network card for each computer) so they do not corrupt the disk when they are trying to access the same file, and possibly the same block, at the same time.
    In a RAC configuration, instances can be added, started, running, stopped and removed independent of each other (allowing a lot of high availability) or can be started and stopped as a group.
    Each instance gets it's own SID, which is in no way any different than a non-RAC SID. It's just the name of a service that can be invoked. The neat thing is that the SID
    a) helps the DBA keep things straight by lettiung us talk about 'instance A' (the Oracle software to be running over on computer A) vs 'instance B' when starting, stopping and managing;
    b) helps the application by providing targets that can be listed in the TNSNAMES.ORA [against one service alias], which is used by ORacle Networking to provide automated load balance or failover (instance/SID a is not available, I guess I'll try the next in the list)
    Hope that helps the concept level a bit.

  • Running multiple instances from same oracle home

    Hi Gurus,
    I am preparing for OCA 11g examination. I had a question about running multiple instances from same oracle home. While reading the book I came across a statement about database control which says "If there are several database instances running off the same Oracle home, then each will have its own Database Control instance".
    Now I assume that this statement implies multiple instances accessing the same physical database (which as per my knowledge can happen only in case of a RAC).
    I am not able to understand how exactly can you have multiple database instances in a single oracle home. I have installed Oracle 11g on my computer whose oracle home is +"D:\oracle\product\10.2.0\db_1"+; now this directory houses all the binaries (executables and folders like admin,bin, etc) for the oracle instance that I have installed (the instance name is ocp1). Now if I am to install or create another Oracle Instance (say ocp2) in the same home, wont there be a conflict of binaries of the two instances in the same home ?
    Basically,it makes sense if db_1 folder is further split into multiple folders, one for each instance (for example, one for ocp1 & one for ocp2); each of these folders will then contain the binary files, libraries,etc for its own instance; but, this is not the case, here db_1 houses all the binaries directly under it ...
    The other question which stems from the statement I mentioned above is that if having multiple instances running from same oracle home accessing the same physical database, can this arrangement be called RAC at all; or does RAC dictate that you cannot have multiple instances that are accessing the same database have to be installed on physically separate machines and so you cannot have two RAC instances (accessing same physical database) installed on the same computer ??
    I hope my questions are not too much confusing ... !!
    Cheers,
    Sudripta

    Hello,
    "If there are several database instances running off the same Oracle home, then each will have its own Database Control instance".This is true, and also means each instance will have its separate database (i.e. dbf files etc.) & separate DB Control. Usually in this case you create several instances on the same node.
    Now I assume that this statement implies multiple instances accessing the same physical database (which as per my knowledge can happen only in case of a RAC).You are correct about RAC where several instances (usually running on separate nodes) access the RAC.
    More info:
    1 Oracle Home - 1 Database - 1 SID is possible.
    1 Oracle Home - Many Databases - Many SID is possible.
    1 Oracle HOme - 1 Database - Multiple SID is possible and this is called RAC.

  • Detecting multiple instances of same application on startup.

    How can I detect multiple instances of same application on startup? I would like to display a message to the user stating that the application is already running [and then close out].

    How can I detect multiple instances of same
    application on startup? I would like to display a
    message to the user stating that the application is
    already running [and then close out].Congratulations on being the bazillionth person to ask this kind of question without bothering to search the internet.

  • How to open multiple instances of same form thru menu items

    i'm not able to open another instance of the form.....if i want to open multiple instances of same form ...what should i do???

    Hi Shenaz,
    To open multiple instances of the same form you need to set a different FormUID to each form you open.
    So lets say your FormType is MyFormXPTO. You need can set the FormUID as MyFormXPTO_1, MyFormXPTO_2, and so on.
    If you need a code samples, take a look at this post.
    Regards,
    Vítor Vieira

  • Multiple instances of same component become non-editable

    I have created a simple component for authors to add links. They enter anchor text, link destination, title attribute, via textfield. They set the target attribute via a dropdown list, xtype=selection. The issue we run into, is that if the author has entered multiple instances of the same component on a page, the dropdowns become non-editable after they are set the first time. They cannot be edited changed until the page edit view/content finder is closed and reopened.
    Scenario:
    1. User drag/drops component
    2. User makes selection from dropdown xtype=selection
    3. User drag/drops same component again to allowed parent
    4. User make selection from dropdown xtype=selection in second instance of component
    5. User can no longer change the selection in either instance of the component without closing and reopening edit view/content finder.
    6. User closes and reopens edit view/content finder.
    7. Again, both instances of the dropdown xtype=selection become non-editable after first selection of an option until the edit view/content finder is closed and reopened.
    When there is only one instance of the component on the page, the drop downs/xtype=select remain editable at all times.
    In addition to this particular scenario, I've had to work around some other issues of multiple instances of a component, where only one instance on a page works at all, the data gets crossed/jumbled between instances of the same component, etc.
    My question is first, how might I solve for the scenario fully called out in this question? Secondly, is there some methodology to making multiple instances of the same component track themselves individually, work together on the same page, play nicely with each other?
    Any assistance is appreciated.

    Using request scope would be a workaround.
    I'm looking for view distinct state for the associated component tree for the session (i.e. managed bean state, whether its separate instances of the bean or copies of serialized state I don't care)
    My views require conversational-like state handling that I don't want stored on the client.

  • Multiple instance of same mac on network

    Hello,
    Running OS X Yosemite, I've noticed multiple instances of the same mac appearing on my home network.  Has anyone else encountered this and know of a way to fix it?  Currently, I have to try more than one instance before I find the "correct" icon to connect.

    10.10.1, when I posted. Last night I installed 10.10.2.  It got hung up on the "Restarting..." (w/App Store logo) screen for over 2 hrs, so I let it run overnight.  It was still stuck in the morning so I just shut it down.  After restarting, everything looks fine (cautiously optimistic)!  There is only ONE instance on the network!!   I read some tips in other forums and the simplest one I used, which wouldn't do more harm than good, was to turn off my air printer during the reboot.  I am good for now and will repost if the problem returns. William Lloyd how long since you updated have you been multiple-instance-free?

  • How to create multiple instances within same AS

    Ramesh,
    I have a unique problem. I might have to create B2B instances for 4 owners. As in BPEL, I can have separate domains for the 4 clients in the same instance; what is the equivalent in B2B?
    I have a limited number of CPUs and need to install the instances on the same box and hence trying to be creative yet secure here.
    Could you please provide some pointers.
    Thanks
    Shamik

    Hello Shamik,
    Please elaborate your use case. Is this just caters to user management or to really have different domain like bpel for four different users. Please see, b2b do not have the notion of BPEL domain, you might have to install multiple instances of B2B pointing to the same MR.
    Rgds,Ramesh

  • Running multiple instances on same machine

    I need to run multiple instances of BEA WLS on a unix machine. I need 4 separate instances (dev and test for two different departments) on one machine and two production instances on another machine. What is the best way to go about separating these (ex. an account or directory structure for each)?
    Thanks,
    Roger ---|-

    Dev/Test:
    Give each one its own domain name - i.e. a separate directory under config. This
    works well.
    Production:
    Do the same, but to keep licensing costs down, I'd be inclined to run everything
    on a single instance.
    simon.
    Roger Cornejo wrote:
    I need to run multiple instances of BEA WLS on a unix machine. I need4 separate instances (dev and test for two different departments) on
    one machine and two production instances on another machine. What is
    the best way to go about separating these (ex. an account or directory
    structure for each)?
    Thanks,
    Roger ---|-

  • New Update (2014.1) - How to have multiple compositions on same page?

    With the latest update, it seems as though Edge now always assumes that the composition has an element ID of "Stage". Previously, I was able to have multiple compositions on the same HTML page by simply altering the default id of "Stage" for each composition to something unique. Any workarounds for having multiple compositions on the same page utilizing the 2014.1 update?

    You can use the following approach
    Dropbox - Multiple.zip
    <!DOCTYPE html>
    <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
      <title>Untitled</title>
    <!--Adobe Edge Runtime-->
        <meta http-equiv="X-UA-Compatible" content="IE=Edge">
        <script type="text/javascript" charset="utf-8" src="edge_includes/edge.5.0.0.min.js"></script>
        <style>
           .edgeLoad-EDGE-77458053 { visibility:hidden; }
            .edgeLoad-EDGE-77430105 { visibility:hidden; }
        </style>
    <script>
       AdobeEdge.loadComposition('2', 'EDGE-77458053', {
        scaleToFit: "none",
        centerStage: "none",
        minW: "0",
        maxW: "undefined",
        width: "550px",
        height: "400px"
    }, {dom: [ ]}, {dom: [ ]});
    AdobeEdge.loadComposition('1', 'EDGE-77430105', {
        scaleToFit: "none",
        centerStage: "none",
        minW: "0",
        maxW: "undefined",
        width: "550px",
        height: "400px"
    }, {dom: [ ]}, {dom: [ ]});
    </script>
    <!--Adobe Edge Runtime End-->
    </head>
    <body style="margin:0;padding:0;">
      <div id="Stage1" class="EDGE-77458053">
      </div>
        <div id="Stage2" class="EDGE-77430105">
        </div>
    </body>
    </html>
    -Siva

  • Multiple quicktimes on same page, same place

    Hopes this makes sense but what I would like is a blank white page with multiple "text menus (hyperlinks)" on the left side of the page that when selected will activate appropriate quicktimes that will then open on the same page, but on the right side.
    However, I don't want to see the quicktimes or a quicktime window until it is selected. Then, after the quicktime has played it should disappear and then if another option is chosen from the menu on the left, another quicktime will pop up in exactly the same place. I need this to happen at least 5 times per page.
    I'm trying to figure out how to do this without creating a whole new identical page that would be activated and then have to load. All I want to load for each link is the QT's that would appear on that same page, in exactly the same place on the right.
    Sorry this is a bit of a mouthful...
    imac G5   Mac OS X (10.4.7)  
    imac G5   Mac OS X (10.4.7)  

    If there's to be any QuickTime on the page, the QuickTime plugin is going to load, so there's going to be that Q at some point or another. If that's ok, then look at the examples and follow the link to the tutorial on this page.
    http://web.mac.com/btkirman/iWeb/Stuff/Welcome.html

  • Multiple instances of same view (Sun 1.2 JSF RI question)

    Does the 1.2 RI support distinct backing bean and/or component state for multiple instances of the same view?
    I've seen mention of a "window identifier" in the 1.2 spec and some RI patches (Issue 28 https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=28)
    but the latest RI code no longer contains reference to this functionality. I've attempted to test this case, bringing up the same view in two frames (or two browsers - same session). But the state is still shared between the two views.
    What configuration and/or calls need to be made to support multiple instances of the same view?

    Using request scope would be a workaround.
    I'm looking for view distinct state for the associated component tree for the session (i.e. managed bean state, whether its separate instances of the bean or copies of serialized state I don't care)
    My views require conversational-like state handling that I don't want stored on the client.

Maybe you are looking for