Order of portlets execution.

Hi..
I need info on "the order portlets in one portalpage would execute".
I am working on WLP7.0
<br><br>
There are 2 portlets in a page.<br>
<b>Portlet1</b>: Has a dropdown<br>
<b>Portlet2</b>: Displays content depending on the dropdown in Portlet1
<br><br>
The requirement is that the content in Portlet2 should change if the Portlet1.dropdown changes. So I would assume we would have a form submission. The dropdown's value will be stored in the session (for future use) which should be retrieved by Portlet2.
<br><br>
My question is: Can I be sure that the Portlet1 will be first executed before Portlet2 so that the session value can be picked up by portlet2.
<br><br>
I would much appreciate any guidances.
<br><br>
Thanks & regards,<br>
Jaya

The order of portlet execution is according to depth-first algorithm.
For example if you have a 2 column layout with portlet1 on left and portlet 2 on right, portlet1 will be executed first and portlet2 next and vice versa.
If you have a single column layout and have portlet 1 on top of portlet 2, then portlet 1 will be executed before portlet2. So if you want portlet 2 to listen to portlet 1 or grab anything that portlet 1 puts in session, you have to make sure you have them accordingly to comply with depth-first order. Or else you will end up getting Nullpointer exception in portlet 2.
The following cases work fine when portlet 2 has to listen to portlet1.
Case 1: two column layout
portlet1 | portlet2
Case 2: one column layout
porlet1
portlet2
The following cases wont work when portlet 2 listens to portlet 1 and will result in NullPointerException
case3:
portlet2 | porlet1
case 4:
portlet2
portlet1
Let me know if you need more info.
--SJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Order of Query Execution in Workbook

    I have a workbook with 3 queries.  I have some macro code that moves results around and does formatting.  The code is dependent on the order in which the queries are executed.  I had assumed that the queries are executed in the order they are listed as data providers.
    For most of my users, the workbook works fine.  But for some, the queries execute in a different order.  Is there some way to force the order of query execution?
    Thanks,
    Dave Paz

    TopLink uses a deferred transaction model implemented through its UnitOfWork. This means all changes (creation, modify/ removal) are tracked and during the transaction commit phase we perform these operations ordered based on your referential integrity rules (FK constraints).
    If you are using TopLink Essentials (JPA) you have the option to issue flush on your entity-manager after the persist call to force the insert to occur prior to your next read.
    In Oracle TopLink the only way to do this is to use a DatabaseSession which offers additional calls controlling the transaction directly as well as support insert/update/remove operations without the UnitOfWork. This approach supports these additional calls because it uses a single connection and does not have a multi-client shared cache. This is much closer to a pure data access style versus the rich multi-client persistence infrastructure most commonly used.
    Doug

  • Assure order of query execution in toplink

    Hi,
    can any one please suggest how to assure the order of query execution in toplink.
    at present what is happening is.
    suppose if i am having 5 queries, first one is Read and based on that out put of the read query, i need to create record in Database and read one more row from database again and save the record in the Database.
    1. Read From Database.
    2. Insert into Database.
    3.Read From Database.
    4.Insert into Database.
    order that i want is 1,2,3,4 but toplink excution order is 1,3 and 2,4. that means it is doing all reads first and insertions next.
    can any one please let me know, is there a way to set the order of the query execution.
    thanks in advance,
    regards,
    Benarjee Gandhavalli.

    TopLink uses a deferred transaction model implemented through its UnitOfWork. This means all changes (creation, modify/ removal) are tracked and during the transaction commit phase we perform these operations ordered based on your referential integrity rules (FK constraints).
    If you are using TopLink Essentials (JPA) you have the option to issue flush on your entity-manager after the persist call to force the insert to occur prior to your next read.
    In Oracle TopLink the only way to do this is to use a DatabaseSession which offers additional calls controlling the transaction directly as well as support insert/update/remove operations without the UnitOfWork. This approach supports these additional calls because it uses a single connection and does not have a multi-client shared cache. This is much closer to a pure data access style versus the rich multi-client persistence infrastructure most commonly used.
    Doug

  • Not able to save order after action execution

    Hi ,
    Im facing a peculiar problem where the order is not saved and it runs for ever. What i did..
    i have a requirement to  set the status of order to complete when it reaches the zorder_close_date (i created a date rule for this ). Hence i configured an action profile with action  with method COMPLETE_DOCUMENT and put start condition current date = zorder_close_date.. I have put the processing as immediate.
    when i test this, the action is executed successfully , but when i click on save it runs for ever and dont save.
    I really have no clue why it happens like this, any inputs?
    Thanks,
    Shaik

    Hi Shaik,
                  You are Executing the Method Call via Action Profile and Changing the Status of the Order.
    Since when your Action Executes it Goes in a Loop and doesnot allow you to Save the Order as i get..Have you Tried to Manually change the Status of the Order and save without Execution of the Action..This shall justify you weathe their is a Problem in your Order_Save or your Method_Call.
    Also try Setting Processign Time as "1.Process using Selection Report" and Select the Checkbox Schedule Automatically in your Action Defination and check it out if their is a Problem with Action Condition then it shall Present with a Failed Action Processing in your Transaction then.
    Also Check your Loops in the Method Call System as understood is not allowing to Save..System on the Status Change instance is going in a Loop and is not able to Exit Loop for Execution of Order Save Instance and so its Directly Exiting.
    Also You may Check the Links for Some Help in Action:
    http://help.sap.com/saphelp_crm50/helpdata/en/83/785141eb54ba5fe10000000a155106/frameset.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/43/ce9370010f01b4e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/51/0302403D62C442E10000000A1550B0/content.htm
    Hope it Answered your Queries...
    Revert Back for Further Clarification..
    Thanks and Regards,
    RK.
    Added Help Links for Help

  • Order of trigger Execution

    Hi Friends,
    Suppose i have 3 triggers on a table emp ( having cols empno,ename, deptno, DOB,designation)
    Trigger 1 : on update of EMPNO
    Trigger 2 : on update of ENAME
    Trigger 3 : on update of DEPTNO
    what would be the execution sequence.
    Thanks

    btw exactly that is said in docs:
    Note:
    You can create multiple triggers of the same type (BEFORE, AFTER, or INSTEAD OF) that fire for the same statement on the same table. The order in which Oracle Database fires these triggers is indeterminate. If your application requires that one trigger be fired before another of the same type for the same statement, then combine these triggers into a single trigger whose trigger action performs the trigger actions of the original triggers in the appropriate order.
    http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10759/statements_7004.htm

  • Default Order of trigger execution

    If a table has two or more triggers(of same type like both "before insert") defined on it then what is the default order of executing of the triggers.
    Thanks in advance.

    Prior to 11g, there is none. Two triggers with identical specs (i.e. two row-level before insert triggers) will fire in an arbitrary order. And that order may change between calls. If you have code that depends on a particular order, you're much better off creating a single trigger that makes calls to two different procedures that do whatever the two triggers are doing in an appropriate order.
    In 11g, you gain the ability to force triggers to run in a particular order, but I would generally advise against any architecture that would require this sort of thing.
    Justin

  • Portlet execution

    Hello,
    I have a page containing about 10 portlet. This portlet are segragate by portal groups using is_runnable function.
    My question is: when the page is rendered and a user has no privilege to see a portlet does the portlet is execute or not? I mean, if a user is not able to see the portlet, does he has to wait anyway the that portlet is build?
    If I add the debug parameter in page servlet engine, seems that the user have to wait anyway...
    Thank you,
    Lorenzo.

    Yes the portlet code must be instantiated to execute the is_runnable function.
    The user will not have to wait for the portlet to render, but they will have to wait for the portlet to verify whether the user can execute the portlet or not.

  • Execution order of objects into a Portal page

    Hi, to all.
    I have a portal page (Oracle Portal 10.1.4) with many Areas (Items and Portlets). Every area contains one or more components (java portlet, plsql portlet,
    dynamic page, plsql item, html portlet and so on). Let say 5 areas and 10 objects.
    What is the order of executions of the objects ?
    Who is the first object executed?
    Portal executed all the objects in the first area and then started with the second area?
    Which is the first area? these at the top-left corner of the page?
    Thank.

    8.3.1 Managed Portlet Execution per Page
    The PPE(Paralel Page Engine) uses the concept of fetcher threads. These are threads within the PPE servlet which are used to service requests for portlet content. By default there are 25 fetcher threads within the PPE waiting to service requests. If a page has 26 portlets and that page is requested then 25 of the portlets will be requested in parallel and the 26th request will wait for the next available fetcher thread.
    This serialization effect will ultimately slow down the portal performance as more requests are received. This degradation will affect the whole portal site, to combat this at a more granular page level OracleAS Portal introduces a feature called Managed Portlet Execution (MPE).
    This feature provides a throttle effect similar to fetcher threads but on a per-page basis. If a page has 25 portlets 20 will run the other 5 will wait for free slots then they will run, in effect they'll be throttled.
    MPE is set to 20 by default, but this is a configurable parameter allowing administrators to ensure that the performance of the whole site is not degraded by over-zealous page designers putting excessive quantities of portlets on one page.
    Link:[http://www.deakin.edu.au/its/dba/oracle-doco/9.0.4.1/9.0.4_doc_library/core.904/b12223/portal.htm#CIHHFCGE]
    And parallel means like "all at the sime time" isn't it?
    Greetings

  • How to change the execution order of data control and backingbeans

    Hi,
    I have a form for a BPM human workflow. It has an inputText and a selectOneChoice component in the form.
    The list of value for the selectOneChoice is initiated based on the value in the inputText.
    I have a data control - JavaBean, which returns a list of values based on a parameter for the selectOneChoice and the parameter is binded with the value of inputText defined in a backingBean. I also set the default value of the inputBox in the backing bean with setValue().
    The problem I have is that the data control for selectOneChoice is loaded before the inputText or backingBean is loaded. Therefore, the parameter is null.
    I tested the same combination in an ADF web app and it works fine. In the app, the inputText and the backingBean are loaded first and then the value of inputText is sent to the data control.
    How can I change the order of the execution? I need to make the inputText and backingBean loading first before the data control for the list of values loading.
    Edited by: user626218 on Oct 10, 2012 9:25 PM

    Hi,
    The inputText is pre-populated based on the user profile in the BPM instance. I tried to render the selectOneChoice if the value of the inputText exists but the data control for selectOneChoice is loaded before the backingBean so it keeps getting a null as parameter.

  • How to enforce order of execution of parallel tasks?

    How do I set the order of execution of parallel tasks in a container?
    The execution isn't truly random. It appears to be set to a random constant at package creation.
    Demo
    I set up a dummy package.
    Max concurrent executions = 1
    sequence container with four script tasks that do a thread.sleep
    The tasks always execute in the order 4, 2, 1, 3. Closing/opening the solution makes no difference to the order of parallel execution.
    Is there a way i can change the execution order? Do I need to change the guid/id of the object (tried this but it invalidates the xml) or is there an order somewhere else in the XML?
    I've found a hack/workaround but it's a bit ugly so I'm wondering if there's a way to do it without adding dummy tasks.
    Basically if i create a dummy start task and then drag off "on success" constraints to each of the four threads, the threads will execute in parallel in the order in which i created the constraints
    Why do i want to do this? I have a number of parallel tasks in a sequence container where three will take a long time and the rest won't take as long.
    I'll minimise the time required for the execution of container by using parallel tasks AND controlling the queue order (longest first). It won't matter whether I have 1 logical cpu or as many logical cpus as i have tasks.
    Thanks
    Jakub @ Adelaide, Australia

    I think the problem you are trying to say is 
    a) You have multiple tasks( i assume 10) now out of these 3 execute slowly.
    b) You done have any constraints for task execution, so what you want to achieve is that the 7 task should continue without waiting for the other 3 in your case the 3 are starting up earlier and other 7 are not able to start as a result.
    AS arthur pointed out these are 2 diff things constraints and parallel execution, and there would always be some task which would be started at some point of time.
    But if you know in advance some tasks are going to take time, i would suggest keep 2 diff sequence containers in 1 keep the 7 tasks which runs fast in another one keep the other 3 which tend to run slow
    Abhinav http://bishtabhinav.wordpress.com/

  • Order of execution and variable access

    Hello frnds,
    This prog shows the order of its execution:
    public class Sequence {
    int j=10;
    public Sequence() {
    System.out.println(" constructor initializer : "+i);
    // line x
    System.out.println(" instance initializer :"+this.i);
    static
    System.out.println(" static initializer");
    public void method() {
    System.out.println(" method initializer");
    public static void main(String args[]) {
    Sequence sq = new Sequence();
    sq.method();
    int i=20;
    output is :
    static initializer
    instance initializer :0
    constructor initializer : 20
    method initializer
    If at // line x i edit it like this
    System.out.println(" instance initializer :"+i);
    it gives compile time exception :
    illegal forward reference
    System.out.println(" instance initializer :"+i);
    ^
    Why is to so with (this.i) it does not gives compile time error.

    Restrictions on the use of fields during instance initialization:
    Instance initializers are permitted to refer to the current object this, to any type variables in scope and to use the keyword super.
    But, use of instance variables whose declarations appear textually after the use is sometimes restricted, even though these instance variables are in scope.
    Precisely, the declaration of a member needs to appear textually before it is used only if the member is an instance field of a class or interface C and all of the following conditions hold:
    - The usage occurs in an instance variable initializer of C or in an instance initializer of C.
    - The usage is not on the left hand side of an assignment.
    - The usage is via a simple name.
    - C is the innermost class or interface enclosing the usage.

  • How To Add Portlet Order Buttons?

    I'm looking to extend MyPortalContentView.GetPortletActions() so there are buttons in the portlet title bars to move portlets up and down in a column without having to edit the page. Figuring out how EditMyPortalPageModel does it is proving to be time consuming, so I'm wondering if someone can just point me in the right direction: where is the order of portlets stored and what interface would I use to change it? Oh, and I'm also looking to add a delete portlet from view button.

    sure - you will have to edit the .shell file by hand though
    for just the content
    <netuix:header>
    <netuix:jspContent contentUri="/portlets/login/header.jsp"/>
    </netuix:header>
    if you need some structure around it (as of sp3 you can add html elements)
    <html:table style="vertical-align: top; width: 100%;">
    <html:tr>
    <html:td style="vertical-align: top; width: 1%;" valign="top">
    <netuix:jspContent contentUri="/some.jsp"/>
    </html:td>
    <html:td style="vertical-align: top; width: 99%;" valign="top">
    <netuix:break/>
    </html:td>
    </html:tr>
    this shoudl work for all the orther content tyoes. i ff you actually want the portlet title bar and stuff
    just include the markup right from a .portlet file
    <netuix:portlet .../>
    </html:table>

  • Inter portlet communication, load order, portal server 7

    Hi.
    I�m struggling with a portlet application, which uses interportlet communication. PortletOne creates an ArrayList of objects and add the list to the portletSession. PortletTwo displays the first object in the ArrayList.
    The trouble seams to be the load order of the portlets. If portletTwo loads before PortletOne, the ArrayList is empty, and it displays nothing.
    Any idea how I can be sure that my page loads PortletOne before PortletTwo?

    If your intention is to transfer data(Array List of Objects) from from one portlet to the other, you need to use InterPortlet Communication API rather than putting the data in the session. In the first portlet set the event data and fire the event and in the second portlet, get the event data.
    The order in which the events are fired is not guaranteed. i.e if portlet fires an event to portlet1, portlet2 and portlet3, the order in which the portlet1, 2 & 3 will receive the events is not guaranteed. Load order of portlets does not cause any problems.

  • Formula execution order

    I have several formulas and fields defined in the details section.
    is there a document that describes the order in which formulas are executed, when placed in the details section ?
    can i assume that if i want a specific formula to execute after all the others i have to add:
    evaluateafter(formula #1);
    evaluateafter(formula #2);
    etc, etc  for all other formulas
    i have a formula that resets a few global variables used by the others(therefore has to execute last).  all formuals are in the details section.
    thanks in advance John

    Hi John,
    A Crystal Report executes in the left-to-right top-to-bottom fashion. So, formulas placed in higher sections execute 'early', again, depending upon whether they're 'whileprintingrecords', 'whilereadingrecords' or 'beforereadingrecords'.
    If you wish to force formulas placed in the same section to follow an execution pattern i.e formula 1 after formula 2, formula 4 after formula 1..., then you're right, you would need to add 'evaluateafter (formula)'.
    I'm not aware of any document that describes the order of formula execution, however you could still try searching in the Crystal help (F1).
    Hope this helps!
    -Abhilash

  • Query: Module Execution Order

    Hi Experts,
           I've a query on the execution order of module execution. Say my requirement is File (with FCC) to File (with FCC) and I need to write a module at both sender and receiver end due to some business requirement. My questions are
    1. On the sender side, does sender adapter User defined module gets executed before the sender Standard adapter module? If so, what would be the format of data available to the user  defined module (XML data after file content conversion) ??
    2. Similar query, but for the receiver channel (receiver adapter modules execution order).
    Please explain the nature and order of execution of the adapter modules and the format of data available to the User Defined Modules.
    Thanks,
    Hussain.

    Hi Hussain,
    So, does that mean the input data to sender custom module is of Text format ie. the whole text file in text format (not in XML format) ? - Yes
    Also, can the order of the modules be changed i.e Can custom module be specified and executed later Standard module?? I suppose No but still wanted a confirmation. - Only in synch communication, when you have sender comm channel, there if you have a reciver custom module, then in sender comm channel in module tab, it will be specified after standard module..............But for asnych communication, where you will have a reicever comm channel, there you will specify your custom module before standard module.
    Hi Prateek,
    I think that the input to the custom module would be xml created after content conversion. - No, the file will be input as plain text file and in your custom module you will create a XML document for your sender msg.........Similar is the case when you have a excelsheet file as input, in it you have your excel file data as input and you create a XML document in your custom module.
    Regards,
    Rajeev Gupta

Maybe you are looking for

  • Report Manager - Template Conversion Problems Excel 2003/2007

    Hello, We are having an issue in which templates created using excel 2003 are showing incorrectly formatted outputs in excel 2007. We have performed testing by creating new templates in Excel 2007 and most formatting is correct as long as we only mak

  • NCITSolutions

    NCIT Solutions provide offshore IT, Web design, software programming services for clients in the US and worldwide, with offshore prices and best quality. The mission of NCIT Solutions is to provide viable and lower cost outsourcing solutions. We offe

  • Problems using Mac Mini with a Sharp 60" led 1080p

    My Mac Mini is connected to a Sharp LED 60 "and I use the VGA input but when I use 1080p resolution, then the text becomes blurred and chopped up. Why does this happen?

  • My adobe plugin always crashes when ever i want to watch a video in youtube

    when i play video in youtube or facebook the plugin crashes, i did try about:crashes, but couldnt help me

  • Having trouble finding built-in ethernet

    When I go to System Preferences, Network, and then to the Show drop down menu, built-in ethernet doesn't show up as an option. Yet I have an external connection for an Ethernet. I need the ethernet connection for DSL. What do I get that built-in ethe