Communication between multiple page flow portlets

Hi, I am working on weblogic portal 8.1.
I've been struggling to communicate between different page flow portlets,
I have a login page flow portlet and i need to submit login details to indeex page after login action is done.
I am able to do this by using PageUrl class and RequestDispatcher's forward method using definition label of the index page flow portlet.
but it is not happening again when i logged out.
If anybody have worked on it, please let me know the soltution.
Thanks,
Vidya sagar

Not sure whether you tried this option(I tried it works for me).
configuration has to be done is portlet-2:
=========================
Create an custom event namely(messageCustomEvent) and also add an action for it for invoking a portlet method getMessage in Portlet-2.
//Place this method in Portlet-2
public void getMessage(ActionRequest request, ActionResponse response,
Event event) {
CustomEvent customEvent = (CustomEvent) event;
String message = (String) customEvent.getPayload();
response.setRenderParameter("message0", message);
configuration has to be done is portlet-1:
=========================
when click on Login in portlet1, in the pageflow code you fire an custom event as shown below
PortletBackingContext context =
PortletBackingContext.getPortletBackingContext(getRequest());
context.fireCustomEvent("messageCustomEvent", form.getMessage());
return new Forward("success");
Thanks & Regards,
Murali.
============

Similar Messages

  • Oracle WebLogic Portal 10.3.6: Creating a Java Page Flow Portlet in WorkShop

    Hello,
    We are not able to create a Java Page Flow Portlet in WorkShop. While adding the Beehive NetUI Facet(1.0.2) getting the following error in the workshop.
    error installing beehive netui facet
    File template generation failed: Unable to configure AvalonLogSystem : java.io.FileNotFoundException: C:\Windows\System32\velocity.log (Access is denied)
    Following are the environment details:
    WebLogic Server 11gR1
    Oracle WebLogic Portal 10.3.6
    Any Solution for this issue??

    Hi Chris,
    I have already gone through this document. But the procedure that is given in it is not working. I mean I am not able to render diffferent different jspx files based on the menu link clicked. It will great if you can provide me steps by step process since I am new to the portal World.
    Thanks a lot for your reply

  • Restore Data between multiple pages

    Hi All,
    I have 3 jsp pages for the registration part.The user can navigate between these pages and finally submit it from the third page.
    Now lets say the user enters data on the first page and clicks on Next to go to second page. He enters some more data on second page and now wants to edit the data entered on the first page.
    How do I store the values entered by the user in the first page?
    In normal struts all the data entered will be in form bean defined.So the data is available.
    Please let me know how to handle it using ADF as there is one common Dataform ?
    waiting eagerly for the repsone
    Thanks

    If you get this one figured out, I'd really like to know.
    We dropped the bindings on each page (like an Input form), but removed the unnecessary bindings. We created an event_Next button and event_Previous buttons as well as a [Save] and [Cancel] button.
    The forwards between the pages would call a method in the DataForwardACtion for the page, i.e. onNext. The only action we'd do in there was a Commit. (we didn't want to lose anything). However, all of our validation was done inside Struts Validator with custom extensions. This is probably not the route you are supposed to go with ADF as validation should be occurring at the entity, but it was at least "workable" for now. As we learn more about things, we'll probably revisit this.

  • Communication between multiple JVMs

    We have a Java toolkit that is shipped as a JAR file. The toolkit is ported from a C++ DLL running on Windows. Therefore, in both instances (Java and C++), we can't control who loads us or when.
    I need to communicate between different JVMs running on the same machine. The communication is very simple: "Is this user logged on in your JVM?" I send a string to the other JVM and I get back a boolean. I don't need to worry about crossing machine boundaries. Also, I'm not expecting to have a huge number of JVMs running. Maybe 3 or 4 could be likely. However, the solution does need to scale in case there are more than that. I'm not setting a limit on the number of JVMs either.
    The C++ code handled this situation very easily and elegantly. It created a named system semaphore (mutex) whenever a user logged on. The name of the mutex was the username. So, if there were multiple instances of the DLL running in separate processes (EXEs), we could easily tell if this user was logged on in another instance. We'd try to create the system semaphore - it would fail saying the name already exists. Therefore, we'd know the user was already logged on. The named system semaphore provided the means for a machine-global list - which is exactly what we wanted. It also had this extra benefit: if the process terminates normally or abnormally, the system semaphore is removed from memory. This means: the application is terminated, the user is no longer logged on, and we can relog this user on.
    Therefore, I have 2 requirements:
    1) A machine-global list where we can place a string. Keep in mind, it doesn't absolutely have to be a machine-global list. A suitable means to talk to other JVMs is acceptable too.
    2) If the process exits normally or abnormally, the string(s) get removed (for this JVM) from the list. Abnormal termination is the more important one to focus on because lots of people of varying skill levels use our toolkit. Abnormal terminations can be common.
    The first thought is to store these in a file. That solves #1, but not #2. I've seen the JIPC package. However, I'm not too crazy about requiring 3rd party developers to start up another program (JIPC) before they start up their application. As I said, we're just a toolkit so we can't control when or who loads us. It's not totally out of the question, but I'd prefer something else.
    I have a fairly involved solution that involves sockets. The first JVM creates a ServerSocket on a specific port and becomes the server. Subsequent JVMs also try to create the ServerSocket on the same port. They get a BindException because the ServerSocket already exists, so they know they're clients. Then, they create a client socket and talk to the server that way. This gets a little hairy when the server goes away. The clients will scramble to become the server and then all the other clients need to reconnect to the new server.
    This proposed solution sounds like it will address both requirements. However, I'm looking for something simpler. I'm asking this forum for help in case there's an easier way to do this. I don't have the breadth of experience with Java yet to know if there's a simpler way to fix this. If I have to go with the socket solution, I will. I just didn't want to overlook something simple that is already built into Java.
    Thanks for any tips or suggestions

    Thanks for the response.
    FileLock. We still have to target JDK 1.3 so we can't use FileLocks (at this point)
    JNI: That's an interesting idea. I suspect many people are using our software on Windows. Therefore, we could probably fix it in Windows the same as in the C++ code. If they're not on Windows, we could use the Sockets approach.
    I also had another idea: how about hashing the username string into some integer (or long) value. Then use the hashed value to lock some other resource: like the port number passed to ServerSocket. I know ServerSocket only accepts 0 - 0xFFFF so this obviously won't work. But is there some other system-wide thing we could lock given an integral value?

  • GPIB Communication between multiple devices

    Hello, 
    I am trying to build an application in C# which will be able to send commands to more than one device on the GPIB BUS.
    For example I have 3 devices connected to the computer with addresses as:"GPIB0::18::INSTR","GPIB0::19::INSTR","GPIB0::28::INSTR"
    Now, I know how to communicate with a single device. 
    But is there a way I can send commands to multiple devices. So far I have the following. 
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Ivi.Visa.Interop;
    namespace Step_Attenuator
    public partial class Form1 : Form
    ResourceManager rMgr = new ResourceManager();
    Ivi.Visa.Interop.FormattedIO488 ioobj = new FormattedIO488();
    object resources = null;
    string address1 = "GPIB0::18::INSTR";
    string address2 = "GPIB0::19::INSTR";
    string address3 = "GPIB0::28::INSTR";
    public Form1()
    InitializeComponent();
    private void PsaComm()
    private void Form1_Load(object sender, EventArgs e)
    private void button1_Click(object sender, EventArgs e)
    ioobj.IO = (IMessage)rMgr.Open(address1);
    ioobj.WriteString("*RST");
    But now If I want to send a RST command to say device on address2, do I have to again open the session and send it?
    There are going to be a lot of commands to these devices. I am sure there is a much simpler way to do it. 
    Please pardon me if this seems to be a silly question. 
    Thank You. 

    Hi nmedelec,
    I made a research about “Ivi.Visa.Interop.FormattedIO488” and it seems that it is related with Ivi.Visa.Interop which is a third party product. If you have any issue about a third party, I would recommend you go to the office site for help.
    Thanks for your understanding.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Communication between multiple processes

    Hi there!
    I have once again a problem concerning paralel processing in ABAP.
    The problem is that:
    I want to write a programm which invokes a process that can recursive invoke another process and so on.
    Let me try to picture it out:
    -> means invokes
    Main Program -> Thread1
    Thread 1 -> Thread 2
    Thread 2 -> Thread 3
    Thread 2 -> Thread 4
    Thread 4 -> Thread 5
    Thread 5 -> Thread 6
    As you can see I have several Threads invoking another Thread. The structure of Threads invoking each other will be dynamic. Now I face the following problem:
    I want just a few threads to run at the same time (let's say for now 3) and there are dependencies between the Invoker and the invoked Thread (e.g. Thread 3 needs some information from Thread 2).
    How can I let my Main Program know that all the data is ready? Does the WAIT UNTIL statement also applies for these nested threads?
    How does Thread 5 e.g. know that there are already too much processes running and he has to wait?
    Is there a possibility how I can queue these processes?
    sth like:
    Thread 1 - Thread 2 - Thread 3 - Thread 4 - Thread 5 - Thread 6
    If prerequisites for Thread 3 are not fullfilled it would look like:
    Thread 1 - Thread 2 - Thread 4 - Thread 5 - Thread 6
    and so on...
    The problem is the communication over the bounds of Threads. This dynamic structure is neccessary due to the large data amount that I have to handle. Due to restrictions I can only use a function group and a report. No database tables or stuff like that is allowed.
    I hope I was able to point out my problem. If it was to unclear please let me know it, then I will try to specify it more.
    Thank you in advance for your help.
    Best Regards,
    Sebastian

    @ Sandeep:  Thanks for your answer I am going to have a look at that
    @ Thomas: These nested Calls would be useful because of the amount of data that has to be processed. Think about a Tree with over 200.000 entries. For each entry there is the requirement for Check if corresponding dataset is right, if necessary Adapt data and Update on the database.
    The approach with the nested threads would check a single node, looks whether there are child nodes and if so starts a thread for processing the child nodes. These would check each child node and if neccessary starts another thread and so on. Child nodes can only be changed if parent change was successful so I have the dependency right here.
    Yesterday I had another idea that should work:
    My Main Programm first checks the root node and then the direct childs of the root node (1st hierarchy level). Then invokes a thread for each child node which has again child nodes and for which changes applied (2nd hierarchy level. Each thread 'returns' a list of nodes for which once again the main program should invoke another thread and so on. (This would build up a queue for processing within the Main Program)
    It is a similar approach to the think with nested threads but the control structure is more clear and there is no nesting of threads neccessary.
    Thanks and Best Regards,
    Sebastian

  • Communication Between Multiple Executables

    I'm building a system that needs to communicate with several different external executables (all were programmed in LabVIEW) at approximately the same time.  I say several because this number is not known until runtime, and I say approximately the same time because all of the executables will be communicating asynchronously.  Essentially I need to receive commands from each executable, put them in a queue of some sort, run a test with my system in the order the commands were received, and then send a result back to each executable.
    Because the number of external executables is not known until runtime, I was thinking about using a network published variable that would be an array of clusters.  I could then tell each executable which array element it should use to communicate with and then when data needs to be sent back and forth I could update or read from this array element in each executable as necessary.  In my VI, I would simply build a watcher that would constantly watch the array to see if new data came in, put this data in a queue, and then process it as necessary.  The communication back to the executables would be handled in the same way (perhaps with a second network published variable only to be used for results).
    The problem with this approach is that I would need to lock the network published variable (a functional global would really help here) while I'm writing to it from each of the executables so I could be sure that I wouldn't miss data.  The number of commands won't be high, but there is a chance that 2 commands could arrive at the same time.  I've played around with this in the Shared Variable Properties dialog ("Single Writer" and "Use Buffering"), but can't seem to get it right.
    I know that I could open a TCP communication port for each executable and then use that port to communicate directly between my program and the executable, but I was wondering if anyone had any other suggestions.  If you've got a suggestion, I'd love to hear about it.  Thanks.

    You can use a network queue. The attached code works very well for us. It is a modified version from some code I got from LAVA several years back. Just unzip this file into your user.lib directly. The queues work like normal queues except they work over TCP. This means your messages will be added to the receiving queue in the order they were sent. Simply dequeue the commands and execute them.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    Network Queue Class.zip ‏361 KB

  • Multiple Page flowed form with expandable field, causing a blank page

    I have a 3 page form with an expandable field on page 1.  I've set the pages up as flowable with positioned subforms and everything is working well, until you type a lot of info into the expandable field and it moves everything else in page 1 down to page 2, the problem appears after the text is moved, there is a huge blank space after the text that was moved.  Basically the rest of the information is moved to page 3 and then there is a page 4.  Hope this makes sense.
    Original - Page 1, Page 2, Page 3
    Expanded past the page - Page 1&2 (then big blank space), Page 3, Page 4
    I'd just like the pages to flow together so if the expanded box moves to the next page the sections just continue to follow without a huge blank space on page 2.

    It sounds as if some of your content is set to not allow page breaks within it.  Have you checked all containing sub forms for the option below?

  • URGENT: Share PageParameter value between multiple pages

    Hi All
    I have a set of pages where each page have a page parameter (lets call it ParamX). This parameter is used by portlets on the pages to display content from database.
    The problem is that, I need to share the same value of this parameter in all pages of the portlet. In other words, when ParamX is updated from value V1 to V2 in PageA, PageA is refreshed to show new data corresponding to new Value V2. But when user goes to another page PageB, the value is still V1. I want this value to be updated as it was in the page from where user navigated to new page.
    In short, the value ParamX pageparamter should be shared by all pages.
    Thanks in advance

    hi,
    as far as i know there are no global parameters that we support in the portal UI.
    could you please post this question in Portal Development Forum, the people there are more development oriented and might have a solution for you:
    http://forums.oracle.com/forums/forum.jspa?forumID=4
    regards,
    christian

  • Difference between java page flow and java process definition

    I have joined a BEA WebLogic Integration project as an entry level BEA developer. I have a big question on the real difference between a jpf and a jpd. My co-workers say there is actually no difference, but I don't believe so. I think a jpd is more like a back-end process and it may or may not not need a View(MVC). While a jpf is the Controller(MVC) and is closely related to a web-based application where all the navigation logic(and only navigation logic) resides. A jpf normally should have a View(rendered on browser or other terminals) to present data from Model. I strongly believe this is true. But my project manager and my team lead, both are very technical guys, fiercely object to my understanding. I am extremely curious to have input from the BEA community on this fundamental concept.

    I find it hard to believe your team lead really believes there is no difference between a JPF and a JPD. There are numerous differences, both conceptually and technically.
    I believe your understanding of the differing roles of the two is correct. A JPF would represent the view of an application, and a JPD would represent callable services of an application, and server-side business logic.
    From the technical point of view, a JPF, assuming it avoided certain features, can be deployed on Tomcat. The core of it is a pure servlet application. A JPD is an EJB, either a SLSB or a SFSB.

  • Communication between multiple remote flash instances

    I am relatively new to Flash development, but need to create a simple application that will essentially function as a remote slideshow broadcast service. One presenter will see the show (full screen) and will be able to proceed to the next slide, all other attendees will only see the show (no control) and will see the next slide when the presenter proceeds. I have a Flash Media Interactive Server which can be utilized. I understand that no one will be able to walk me through actual the development process, but was wondering whether someone could tell me what the best approach would be and where I could find tutorials to get started.
    Thanks a lot! Any help is greatly appreciated.

    UPDATE: I am particularly confused about what kind of communication method to use. I heard about Socket, SharedObjects, HTTPService, RTMP, RTMFP, etc. could someone advise which would be the best for this situation. I only need to send a very small bit of data.
    Thanks.

  • Communication between multiple VPN Sites

    Hello,
    i used 3 CEs and 2 PEs, build a hub and spoke MPLS VPN topology as follow, two the overlapped addresses 100.100.100.100 reside separately in VPN1 of R1 and VPN2 of R2. But traffic initiated by 100.100.100.100 from VPN1 toward VPN3 was always redirected through R5 to VPN2. Is there any solution of this issue?
    thanks!

    Hi
    You can not have overlapping addresses in a scenario like this, where You are leaking between vpn:s.
    When traffic is arrived towards 100.100.100.100 on r4 et0/0 there are no way for r4 to know wich of the 2 (r1 or r2) that the traffic is intended to go.
    /Mikael

  • How does the JSF save the state between multiple page requests?

    I have an issue where I will visit my JSF page, enter some information and click a command button. I will then navigate away from the page. Then when I return to the JSF page my data (that was submitted) will be in the form.
    Example
    1. Navigate to JSF page
    http://localhost/MyWeb/form.jsf
    2. Enter in value in name field (which is blank)
    3. Click the Submit command button attached to an action method that returns null
    4. The form is viewable again but with the value entered in the name field
    5. Navigate to a non-JSF page
    http://localhost/MyWeb/index.jsp
    6. Navigate back to JSF page
    http://localhost/MyWeb/form.jsf
    The page displays the data that I submitted on the previous request. My guess is that JSF stores the viewstate in a scope that is larger than the request scope and that on page view it loads the previous submit attempt (which is not expected).
    Specs: Websphere Application Server 6.1 (which is JSF 1.1)

    Here is a trace of the phases:
    #visit form.jsf
    [7/8/09 13:02:53:082 EDT] 00000027 SystemOut O Before Phase: RESTORE_VIEW 1
    [7/8/09 13:02:53:082 EDT] 00000027 SystemOut O After Phase: RESTORE_VIEW 1
    [7/8/09 13:02:53:097 EDT] 00000027 SystemOut O Before Phase: RENDER_RESPONSE 6
    [7/8/09 13:02:55:050 EDT] 00000027 SystemOut O After Phase: RENDER_RESPONSE 6
    #visit home.jsp
    [7/8/09 13:02:59:753 EDT] 00000027 ServletWrappe I SRVE0242I: [MyWeb] [MyWeb] [home.jsp]: Initialization successful.
    #visit form.jsf
    [7/8/09 13:03:04:988 EDT] 00000026 SystemOut O Before Phase: RESTORE_VIEW 1
    [7/8/09 13:03:05:050 EDT] 00000026 SystemOut O After Phase: RESTORE_VIEW 1
    [7/8/09 13:03:05:050 EDT] 00000026 SystemOut O Before Phase: APPLY_REQUEST_VALUES 2
    [7/8/09 13:03:05:050 EDT] 00000026 SystemOut O After Phase: APPLY_REQUEST_VALUES 2
    [7/8/09 13:03:05:050 EDT] 00000026 SystemOut O Before Phase: PROCESS_VALIDATIONS 3
    [7/8/09 13:03:05:050 EDT] 00000026 SystemOut O After Phase: PROCESS_VALIDATIONS 3
    [7/8/09 13:03:05:050 EDT] 00000026 SystemOut O Before Phase: UPDATE_MODEL_VALUES 4
    [7/8/09 13:03:05:050 EDT] 00000026 SystemOut O After Phase: UPDATE_MODEL_VALUES 4
    [7/8/09 13:03:05:050 EDT] 00000026 SystemOut O Before Phase: INVOKE_APPLICATION 5
    [7/8/09 13:03:05:066 EDT] 00000026 SystemOut O After Phase: INVOKE_APPLICATION 5
    [7/8/09 13:03:05:066 EDT] 00000026 SystemOut O Before Phase: RENDER_RESPONSE 6
    [7/8/09 13:03:05:331 EDT] 00000026 SystemOut O After Phase: RENDER_RESPONSE 6
    It appears to go through the full lifecycle on the second view of form.jsf instead of stopping after restoring the view.
    Edited by: jaredp on Jul 8, 2009 11:26 AM

  • Communication between html pages

    I do have an SWF sequence of images in the main html page. In
    the second page I do have sections. Each section has a title of an
    image of the SWF file. The role of this section is to describe the
    image.
    I trying to whenever I click on each image of the SWF in the
    main page, I should be directed to its description in the second
    page, meaning, that the second page should be loaded and its scroll
    down bar should go down and stop where the specific section
    (describing the image I’ve just clicked on) starts.

    Actually, many of the problems I have already solved. I have an applet now that queries the database and stores and HTML page within a JEditorPane. But the pages are beginning to be quite large and not all of the HTML stuff is taken care of by JEditorPane. Ex) images, sounds, have to manually do hyperlinks, etc. So the database stuff is done. I already know how to write a servlet to create an applet in html.
    I just need to figure out how to get this new applet to communicate with the 1st.
    I tried this but not working:
    import javax.swing.*;
    public class AppletA extends JApplet
      AppletB theOtherApplet = null;
      public void init()
        callAppletB();
      public void callAppletB() {
        theOtherApplet = AppletB.selfRef;
        theOtherApplet.createText();
    import javax.swing.*;
    public class AppletB extends JApplet
      public static AppletB selfRef = null;
      public void init()
        selfRef = this;
      public void createText() {
        javax.swing.JLabel label = new javax.swing.JLabel("New Label");
        getContentPane().add(label);
        repaint();
    }

  • Communicating Between Multiple LabVIEW Executables on different computer using Shared Variables

    hi,
    I need to develop some executables which will be launched on different computer of a LAN. Some DATA are common. I need to share the data using shared variables.
    I usually used LabVIEW so I 'm familiar with shared variables but in this case, the RT target is a part of my
    project.
    I do I need to procceed in my case?
    thanks

    Ok but it's not my configuration and I haven't found my answer in the tutorial.
    You speak of a case where there is a computer and a RT target under the same LabView project. As I said earlier, I often use labview RT and shared variable between computer and RT target. But I assume here it's different.
    My question is : how do you acces to the SVE from 3 computers (without any RT target)? 
    1. If I create 3 labview projects using the same Shared Variable, do I need to use the same .lvlib on each project?
    2. Is it possible? 
    3. How can I configure where the SVE should be? When I use a RT target, It only depends where I put my Lvlib. But here there is 3 projects. 
    James
    Attachments:
    Sans titre.JPG ‏9 KB

Maybe you are looking for

  • Create XML File from a specified XSD file

    Hi, I'd like to create an XML document with java. BUT How can we "bind" this creation with a XSD file. Hence, the creation may fail if the XSD binded file is not respected. So I know how to create XML file but not bind to this creation my proper XSD

  • Apps don't download

    One day I tried to download a free app from the App Store. When I tap the free button and enter my password, instead of downloading and the free button turning into the circle, the button just goes back to free. As if I hadn't pressed it yet.

  • Having trouble with Mail

    Are there any other ports other than 995?

  • Error when querying long raw

    Hi, I am using developer 6i with oracle 10.2.0.4 on win 2008. I created a table as below: create table image_table (filename varchar2(255) primary key, image long raw); i created a trigger in forms to upload a image and store the link in the database

  • How Change Flash CS5.5 save file CS5.

    Hi, I using Flash CS5.5. But i am save the file save default CS5.5. We need to save CS5 Format. With Using Save As option. Default save CS5 format.  What to do? Any setting change in CS5.5 Default save CS5 format. or what way change the format. any o