Post an event customized with jsp portlet

I have a portal page that contains a portlet to jsp and a few other portlets.
The jsp has several links and when you click on the links and the page is redrawn on the portal, I want the fire jsp portlet to which other portlets to the page may respond to events.

To achieve this, I have attached a backup file to a portlet to jsp and I have a custom event triggered (from the handlePostBack method) when certain conditions are met. The problem is that the handlePostBack method is not called in the life cycle jsp portlet (only init() and preRender() and destroy() are called). I realize that it is possible that URLS do not have the _nfpb parameter defined. I tried adding that the link url - but no luck.

Someone will direct me as to what is the problem with the configuration described above.

RAM memory.

Hello Ram,

You don't want to specify the path in your URL at all when you use one of the URL tags; If you want to add a parameter such as "cmd = 4", use the tag "render: param ' (inside the PostbackURL tag) to add parameters. The tag PostbackURL will get 'magical' the correct path to your portal and includes all the parameters "_nfpb" as well.

Kevin

Tags: Fusion Middleware

Similar Questions

  • Creating ent via API and post processing event handlers

    I have a number of post-processing-event handlers defined for the creation of the organization. They all work fine and do what they need to do when I create an organization via the web interface. However if I create an organization that uses the Java API, managers of events do not run. They are not supposed to run? I think that IOM should handle all the same applications - everywhere where they are generated.

    Here is my example of API:

    Import Thor.API.Exceptions.tcAPlException;
    Import Thor.API.Operations.tcOrganizationOperationslntf;
    import java.util.Hashtable;
    import java.util.HashMap;
    Import javax.security.auth.login.LoginException;
    Import oracle.iam. platform. OIMClient;

    public class test {}
    Public Shared Sub main (string [] args)
    {
    Hashtable env = new HashtableQ;
    approx. put (0IMc1 I ent. jAvA_NAMING_FACTORY_INITIAL, "weblogic.jndi.WLInitiialContextFactory");
    env.put (mpta OIMC]. JAVA_NAMING_PROVIDER_URL, "t3: / / localhost:14000");
    OIMClient oimclient = new olMClient (env);
    try {}
    oimclient. Login ("xelsysadm", args [O] .tocharArrayO); II the password is the only argument
    } catch (System.Exception e)
    System.out.println ("ERROR: connection exception.") Please check your username / password are correct. ») ;
    }
    tcorganizationOperationsintf orgManager = (tcOrganizationOperationsintf.class) oimclient.getservice;
    < String, String > HashMap hmorgDetails = new HashMap < String, String > ();
    hmOrgDetails.put ('Organizations.organizationName', 'org test');
    hmorgDetails.put ('Organizations.Type', 'Branch')
    Try
    {
    orgManager.createOrganization (hmorgDetails);
    } catch (Exception e) {}
    System.out.println (e. getMessage())
    e.printStackTraceQ;
    }
    return;
    }
    }

    and my definition of post processing:
    <? XML version = 'l.O' encoding = "uTF - 8"? >
    < eventhandlers xmlns = "http://www.oracle.com/schema/oim/platform/kernel."
    xmlns: xsi = "http://www.w3.org/2001/xMLschema-instance".
    xsi: schemaLocation = "http://www.oracle.com/schema/oim/platform/kernel%2dorchestrat-jon."
    -hand] ers. XSD">
    <! - custom preprocess event handlers - >
    < entity-type of the action handler = operation 'Organization' = 'CRΘER. '
    Class =' ' corn.corp.AutoCreateRoles
    name = 'Run in creating org'
    Stadium = "post-processing".
    order = "2000".
    Sync = "TRUE" / >

    Try to use OrganizationManager service class in your java code instead of the tcOrganizationOperationsIntf inheritance. Which should trigger the event handler. Recently, I had a problem where using the EntityManager on user has not triggered the eventhandler but only when using the UserManager triggered it.
    It would be possible only when you are using the legacy API, a new orchestration is not produced, and therefore the event handler is not called.

    -Marie

  • Flex with jsp?

    can someone tell me if flex can be integrated with jsp and if yes, can get a little example of it... Please help... its uugent

    http://Flex3.info/using-Flex-with-JavaServer-Pages/

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=data_access_2.html

    Ed http://www.coderanch.com/t/478820/Flex/application-frameworks/Flex-recive-Data-jsp-submitt

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

  • JSR168 with JSP

    Hi friends, I tried to work with the JSR 168 who send the request-response to JSP, here's the code.

    Portlet
    ----------------------------
    package com.xyz.portlet;

    import java. IO;

    Javax.portlet import. *;


    SerializableAttribute public class NumberGuesserPortlet extends GenericPortlet {}


    Protected Sub
    doView (request, response RenderResponse RenderRequest)
    throws PortletException, IOException {}
    / * see if a number is passed to the server as a parameter * /.
    Number of strings = request.getParameter (response.getNamespace () + "number");

    If no number has been entered, just display the form
    If (number == null) {}
    String url = "/ numberguesser.jsp";
    getPortletContext()
    .getRequestDispatcher (url)
    include (request, response);
    } else {}
    / * If a number was written, display the correct answer * /.
    response.setContentType("text/html");
    PrintWriter out = response.getWriter ();
    out. Print ("You guessed" + number);
    out. Print ("< BR > the number was 5");
    out. Print ("< BR > please try again.");

    / * create a link to the portlet by using a PortletURL * /.
    out. Print ("< A href =------" "");
    out. Print (Response.createRenderURL ());
    out. Print ("------" > try again < /A > "");
    }
    }

    }

    -------------------------------
    IS3
    ------------------------------
    < % @ taglib uri prefix = "http://java.sun.com/portlet' = 'portlet' % >
    < % @ page language = "java" contentType = text/html"; charset = ISO-8859-1"
    pageEncoding = "ISO-8859-1" session = "false" % >
    < portlet:defineObjects / >


    < FORM action = '< %=renderResponse.createRenderURL() % >' >
    I think of a number between 1 and 10. < BR > < BR >
    < i > what is it? < /I >
    < INPUT type = "text" name = "< % = renderResponse.getNamespace ()" % > number "size ="10">"
    < INPUT type = "submit" name = "SUBMIT" value = "Guess"! >
    < / MAKE >
    --------------------------------

    portlet. XML
    --------------------------------
    <? XML version = "1.0" encoding = "UTF-8"? >
    < version portlet-app = "1.0".
    xmlns = "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >

    < portlet >
    < portlet-name > NumberGuesserPortlet < / portlet-name >
    > class portlet < com.xyz.portlet.NumberGuesserPortlet < / portlet-class >
    <>Media
    <>mime-type text/html < / mime-type >
    Display > portlet mode < < / portlet-mode >
    < / media >
    < portlet-info >
    < title > NumberGuesserPortlet < / title >
    < / portlet-info >
    < / portlet >
    < / portlet-app >


    I am able to see the JSP page, when I entered the number and clicking on the button submit, then it shows the same page, I expect the number that I entered should appear.

    Please help me what I do wrong here.

    Thank you very much
    Peter

    Published by: user567405 on 24 Sep 2009 09:41

    Hello Peter,.

    During the validation of the data in a JSR168 portlet, an 'action' URL should be used. (GET-type forms may work with a render URL, but it's a good general practice to use an action URL).

    So, if you have changed your code slightly:

    Portlet
    -----
    package com.xyz.portlet;

    import java. IO;

    Javax.portlet import. *;

    SerializableAttribute public class NumberGuesserPortlet extends GenericPortlet {}

    ' public Sub processAction (request, response ActionResponse ActionRequest) throws PortletException, IOException {}
    Number of strings = request.getParameter("number");
    response.setRenderParameter ("number", number);
    }

    Protected Sub
    doView (request, response RenderResponse RenderRequest)
    throws PortletException, IOException {}
    / * see if a number is passed to the server as a parameter * /.
    Number of strings = request.getParameter("number");

    If no number has been entered, just display the form
    If (number == null) {}
    String url = "/ numberguesser.jsp";
    getPortletContext()
    .getRequestDispatcher (url)
    include (request, response);
    } else {}
    / * If a number was written, display the correct answer * /.
    response.setContentType("text/html");
    PrintWriter out = response.getWriter ();
    out. Print ("You guessed" + number);
    out. Print(")
    There were 5 ");
    out. Print(")
    Try again. ») ;

    / * create a link to the portlet by using a PortletURL * /.
    out. Print ("Please try again");
    }
    }

    }

    -----
    JSP
    -----
    <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
    < %="" @="" page="" language="« java »" contenttype="« text/html ;" charset="ISO-8859-1">< br="" >="" pageencoding="« ISO-8859-1 »" session="« false »" %="">


    I think of a number between 1 and 10.

    What is it?


    -----

    I also removed the spaces that you put on the parameter; the JSR168 portlet container is responsible for naming the workspace settings to avoid conflicts with other portlets, to add your own is not really necessary.

    Kevin

  • Error-200431, DAQmx create Channel .vi (I-voltage-Custom with excitement)

    Where is past ".vi DAQmx Create Channel (I-voltage-Custom with excitement)?

    I tried to use this VI of force measurement with an NI PXI-4472. He responds with the 200431 error... You asked: more: voltage: Custom with excitement, you can select: sound pressure, voltage: microphone,...

    It seems to me to be an internal error of the VI's Version of LabView 8.6.1

    Hi Suse,

    Thanks for your reply.

    It's the right device but the bad VI.

    PXI-4472 is an excellent camera for the dynamic force measurement using Quartz sensors. I was intending to use the .vi (I-voltage-custom with excitement) to configure entry and IEPE excitement, but I got the error code. I have now managed by using the pure (I-voltage) .vi entry configuration and IEPE using the DAQmx channel property node.

    However, I tried the .vi (I-voltage-Custom with excitement) with appropriate PXI-4220 simulated device, no error.

    Concerning

    T.Knox

  • How (if possible) I point out a whole day in the Windows calendar instead of just a single event? (With the help of Vista Ultimate) Thank you.

    How (if possible) I point out a whole day in the Windows calendar instead of just a single event? (With the help of Vista Ultimate) Thank you.

    I have no experience with Windows Calendar, but see this article for a bit of luck:

    Customize Windows Calendar
    http://Windows.Microsoft.com/en-us/Windows-Vista/customize-Windows-Calendar

  • I want to use the registration of custom with hyper-site domain object merges? Is this possible?

    I want to use the registration of custom with hyper-site domain object merges? Is this possible?

    Hey,.

    At that time, saving custom object data cannot be used with following:

    • with Hypersite field mergers;
    • with the research data on the data in the field, only the number of overall;
    • on off key Dynamic Content in the emails

    Thank you

  • by selecting a node in the 3d model with JSP in acrobat

    I made a little script to select a single node with JSP for 3D and want the selected node to display on the screen.

    But the result of the selection is not displayed in the form of acrobat.

    Can someone tell me where is the problem?

    Here is the part of the script used for the selection:

    Set selected node, axis CIHI is the selectable node, c3d is in this context of annote3d. The script is run after annotates it 3d is activated from interface.
    C3D. Scene.SelectedNode = axes;
    to display the result of the selection in the screen

    C3D. Scene.Update ();

    Thank you.

    Hello

    You don't need to update from the scene. The following code will select the first stitch of the scene and highlight automatically in the tree:

    C3D. Scene.SelectedNode = c3d.scene.meshes.getByIndex (0);

  • Can a customer with any Adobe online services sign a PDF form sent by Adobe eSign? (Mobile and desktop options)

    Hello:

    I'm trying a service allowing our small company to sign PDF documents in our offices or on our mobile devices. I came across Adobe eSign Services as a mobile solution (since we already have Acrobat Pro) However, because I am fairly new to the Adobe online services, I wonder is a customer with no Adobe eServices (eSign) could sign a PDF file that has been sent by us with Adobe eSign Manager? (especially on mobile devices. For example, if they had CudaSign or DocuSign) we do not want to cause inconvenience to our customers with download a particular application, or create accounts to anywhere just sign one of our documents. Some clarification in this regard would be appreciated.

    Hello TrinityGal,

    By default, it did not signatories to first have an account E-Sign to esign document. The signatories will receive an email containing the link to document and once it is which is clicked, it is opened in a browser to fill and esign.

    Kind regards

    -Usman

  • Form customized with curved edges - 8 Captivate

    Is it possible to create a smartshape customized with curved lines in 8 Captivate by using, for example, the polygon, drawing tool?

    You cannot draw a line curve immediately, but need of steps:

    • create a form
    • convert a freeform (context menu)
    • Now you can edit the points and tangent handles (Bezier curves)

    In this article, in the film, you will see such a curved shape. Here, I started with a star shape: Custom short answer Question - Captivate blog

    And in this picture, you see how I created an arc, starting with a triangle

  • Array of objects display BPM with JSP HOWTO

    Hello!

    Could someone please tell me, how to list the elements of an array of objects BPM with JSP? The object has attributes, and I do not know the length of the array in advance, so I would need some kinf of loop.

    I have not found any documentation or forum thread on this subject, and I'm out of ideas.

    Thanks for any help!

    Hello

    Please find the code below. Hope this code will help you

    <% int count = 0; %>

                        
         
         
         
         
         <% count++ ; %>

    Sidonie

  • Event Viewer displays customized with source Wininit

    Hello Microsoft experts.

    After trying to create a view custom in the event viewer, one with the 'Wininit' source, in order to capture all the events, I noticed that even though the view is created successfully, it brings no results (i.e. empty) (Windows 7 64 bit with SP1 operating system). Think that the application log is not registration events Wininit, I tried to add a custom filter in the category 'Application' of events with the source "Wininit. The latter brings multiple results (mainly information and one caveat, I think)). If the events with the "Wininit" source are recorded in the category 'Application '.
    How do you think should I proceed in the future, in order to troubleshoot further? I checked the filesystem with sfc/scannow nothing helps. Also I discovered that when I change the view custom to another source, for example 'Winlogon', the results appear under the view, with the selected source - 'Winlogon' now, to make it work as it should.
    Finally and most importantly, I navigated to my registry key (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\Wininit) and saw the differences between the two (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\Wininit, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\Winlogon) without any ideas on how to proceed.
    I assumed that it could be a matter of rights. So, I checked the security under the branches of two registry settings, and they are the same.
    Now I'm out of ideas, and internet research helps not at all.
    Please indicate something, because reinstalling Windows is not an option. Also, I checked this custom view (with source Wininit) in Windows 7 PCs of others (friends), and it works perfectly. What is the possible problem in my case?
    Thanks in advance.

    Hello

    I would recommend you to view the query on the TechNet Forum which, I am sure, will help you better.

    You can check the link to the request message:

    http://social.technet.Microsoft.com/forums/en/category/w7itpro

    Do not hesitate to write us if you have any other questions.

  • R12 post-installation checks fail with RW-50015 for HTTP, help, virtual directory, JSP Page and Login Page

    Hello

    I try to install EBS R12 for three weeks with the same result (after five fail post-installation verification).

    I tried to install Oracle Linux 5.8 32 bit and Oracle Linux 5.8 64-bit but end result is the same. When I installed Linux oral, I chose all the option packages. I also used the latest version of RapidWiz as suggested by some posts on the forum (and also in response to my other post by Hussein).

    Each installation attempt failed with the following text:

    (x) HTTP                                      (x) Help Page

    Virtual directory (x) (x), JSP

    Login page (x)

    It failed with "RW-50015: error".

    =========

    HTTP

    ====

    check the URL = http://prod.ebs1.com:8000

    RW-50015: error:-HTTP listener does not. The service may not be started on the port again. Please check the service and use the button try again.

    ==========

    Help page

    =========

    check the URL = http://prod.ebs1.com:8000/OA_HTML/help

    RW-50015: error:-Help Page does not. The service may not be started on the port again. Please check the service and use the button try again.

    ========

    Virtual directory

    =================

    RW-50015: error:-Http virtual directory server is not responding. The service may not be started on the port again. Please check the service and use the button try again.

    ==============

    JSP

    ===

    check the URL = http://prod.ebs1.com:8000/OA_HTML/jtfTestCookie.jsp

    RW-50015: error:-JSP does not. The service may not be started on the port again. Please check the service and use the button try again.

    ==============

    Login page

    ==========

    RW-50015: error:-Login Page does not. The service may not be started on the port again. Please check the service and use the button try again.

    ==============

    I did find a lot of information to solve this problem.

    Help, please!

    Best regards

    Well, I must fix it in next (trying to start Apache (adapcctl.sh) casts a ' error while loading Shared Libraries: libdb.so.2' on RedHat Linux 5 (Doc ID 879522.1)).

    Once you run the commands in the MOS Doc, stop and start the services than those mentioned above and it should seem so

    Thank you

    Hussein

  • Custom with the custom event handling/propagation class

    Hello

    I m trying to figure out, how we could extend a custom class so that other classes could enter the headphones to this custom class

    and will be informed by raising an event in this custom class.

    I can´t find any documentation about it. The post of oracle on the management of the event to

    http://docs.Oracle.com/JavaFX/2/events/jfxpub-events.htm

    doing business only about the event target and the string of events.

    But to my understanding, I need to know how this custom class could be extended to be an EventSource?

    I could extend my node, scene or window class to get all the things in the event by legacy, but I think that

    that is not the right way? Not everything is a node

    As indicated in the article

    If your control or element of your control is not a subclass of Window , Scene , or Node , you need to implement the EventTarget interface for this control or element.

    I must apply EventTarget and its method

    @Override
        public EventDispatchChain buildEventDispatchChain(EventDispatchChain edc) {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }
    

    But it is a target? And the source?

    I m a bit confused.

    Help would be great for a beginner, some shooting events

    THX

    Inge

    Would what type of event you like fire? Perhaps using the framework of the event in javafx.event is more you need. What if all you want to do is to inform listeners that some State has changed, you should consider using javafx.beans.Observable or one of the classes implementing this interface.

  • Need help with problem when implementing IPC with JPF portlet (WLP 10.3.2)

    Hi all.
    I implemented the CPI between 2 flow of the Page Java portlets (local IPC) training in certain pages:
    [Establishing the IPC by using custom and Page Flow events | http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/ipcguide/custevent.html]
    [An example Simple of IPC establishing | http://download.oracle.com/docs/cd/E13218_01/wlp/docs81/ipcguide/howworks.html#1000903]
    [Portal Federation with WebLogic Portal WRSP: Advanced IPC Techniques | http://www.developer.com/lang/article.php/3749366/Portal-Federation-with-WebLogic-Portal-WRSP-Advanced-IPC-Techniques.htm]

    But I'm dealing with a strange error. Here is the error in the console:
    <Oct 27, 2010 9:59:15 AM ICT> <Error> <netuix> <BEA-423330> <The method [ saysomething ] was not found in the backing class [ backing.InputBacking ].> 
    My scenario is: display portlet must listen to the events that will be drawn from entry portlet then display them.
    In InputController.portlet, I have a code:

    + < netuix:portlet backingFile = 'backing. InputBacking"definitionLabel ="InputController"title ="Input"> +.
    + < netuix:handleCustomEvent = "customEvent" eventLabel = "handleCustomEvent1" + event
    fromSelfInstanceOnly = "false" onlyIfDisplayed = "false" sourceDefinitionWildcard = "any" >
    + < netuix:invokeBackingFileMethod method = "saysomething" / > +.
    + < / netuix:handleCustomEvent > +.

    + < netuix:handlePageFlowEvent action = "customEvent" eventLabel = "handlePageFlowEvent1" +.
    fromSelfInstanceOnly = "false" onlyIfDisplayed = "true" sourceDefinitionWildcard = "any" >
    + < netuix:invokePageFlowAction action = "submit" / > +.
    + < / netuix:handlePageFlowEvent > +.

    + < netuix: content > +.
    + < netuix:pageflowContent contentUri="/input_portlet/input/InputController.jpf"/ > +.
    + < / netuix: content > +.
    + < / netuix:portlet > +.

    And it comes to codesnippet in InputBacking.java


    + / public class InputBacking extends AbstractJspBacking {+

    + public private static final long serialVersionUID = 1 L; +

    + ' public Sub pushInput (HttpServletResponse response HttpServletRequest request, Event event) {+
    + Setting PortletBackingContext = PortletBackingContext.getPortletBackingContext (request); +
    + String msg = (String) request.getParameter (context.getInstanceLabel () + "{actionForm.input}" "") +;
    + context.fireCustomEvent ("customEvent", msg); +
    +     }+
    + ' public Sub saysomething (HttpServletResponse response HttpServletRequest request, Event event) {+
    + System.out.println("*** Hello, this is a set point ***"); +
    +     }+
    +}+


    I don't know why pageflow impossible dectet my method? Someone help me?

    Kind regards.
    Doubt_Man

    Published by: Doubt_Man on October 27, 2010 11:09

    Published by: Doubt_Man on October 27, 2010 11:52

    Hello

    You get the error message indicates that the portal framework cannot find the method with the signature of method appropriate to your backup file. You have the correct name of the method, but the portal framework is not to find a method with the correct (in the right order) arguments when using reflection to examine your backup file.

    If you change the method signature to the order of the required arguments:

    void saysomething(HttpServletRequest request, HttpServletResponse response, Event event)
    

    the framework needs to properly run your method of backup file when the event is received. The fact that you get the error message indicates that other configurations AutoEventWireup for the event works; He can just find the right method in your backup file to finally deliver the event to.

    Kevin

Maybe you are looking for