Changing  between pages using jsr286 events.

Hello,
I am trying to implement inter portlet communication between 2 portlets which reside on 2 different pages using JSR 286 implementation.
I added supported-publishing-event and supported-processing-event in portlet.xml and able to fire the event from portlet A and able to handle the event in portlet B. However I am unable to navigate to page where portlet b resides. After handling the event, portal still displays the portlet A page.
How do I tell portal container to switch page while processing event?
Any help appreciated.

Hello,
There is no "standard" mechanism for doing this from JSR286 portlets-- the JSR286 specification doesn't deal with the concept of portlets on other pages, or how to switch pages.
However, WebLogic Portal has a mechanism for doing exactly what you want to do. You'll need to create a file in your webapp with a ".portlet" extension, which looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0" xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:javaPortlet definitionLabel="portletNameFromPortletXml" title="sample portlet">
        <netuix:handleCustomEvent qname="{event.namespace}eventLocalPart">
            <netuix:activatePage/>
        </netuix:handleCustomEvent>
    </netuix:javaPortlet>
</portal:root>The "portletNameFromPortletXml" is the portlet-name as declared in your WEB-INF/portlet.xml file, and is used to tie this .portlet file to the particular portlet in portlet.xml that you want to extend.
The "{event.namespace}eventLocalPart" is the fully-qualified JSR286 event name, expressed in Java QName notation (with the namespace in {}, followed by the local part).
The "activatePage" XML tag is used to tell WLP that when this portlet receives this event, automatically make the page that the (receiving) portlet is on the visible page. You don't have to have any code in the portlet to even handle this event-- any time it is sent, the page the portlet is on will automatically be made visible.
Kevin

Similar Messages

  • Applescript to change image resolution using image events

    Does anyone have an applescript to change image resolution using image events in OSX? I want to optimize my images for iWeb. I want to use a shell script in an applescript as a droplet or as a service in Automator. I'd like to leave the original intact.

    For what type of use in iWeb are these photos intended? If it's for adding to a page (not a photo or album page) iWeb does a great job of optimizing. See my post in this topic: Re: Photo Resolution in iWeb.
    You can optimize an entire site with an application like Web Site Maestro. It can reduce the site's size by up to 49%. Here's the settings available for the optimization:
    Click to view full size
    It's very effective.
    OT

  • Change image resolution using image events

    Does anyone have an applescript to change image resolution using image events in OSX? I want to optimize my images for iWeb. I want to use a shell script in an applescript as a droplet or as a service in Automator. I'd like to leave the original intact.

    No? Oh...ok den. No Applescripts at all.

  • Page size keeps changing between pages based on browser zoom

    I recently started designing a web page for a golf league.  I designed my main page (index.html) and have it laid out all nice and neat with 9 divs (outer, wrapper, logo, social media, topnav, banner, content, rightside, footer).  My main page has horizontal navigation links near the top of the page for 7 different pages (Home, Course, Events, History, Statistics, About, Contact).  I created 6 blank html files for the other 6 pages and then created and applied the template from my main (Home) page to the other 6 pages. 
    All the pages are laid out perfectly and everything seems fine.  However, when I view the web pages and use the zoom on my mouse (CTRL + Mousewheel), it only remembers the zoom level for the current page that I'm on.  NOTE: FYI, I'm viewing all of these pages offline, which I assume might be the problem.
    For example, if I'm on my main page and zoom in, then click the "Events" link, it switches to the Events page, but doesn't have the same zoom level.  These zoom levels also seem to be saved (to my browser, not the dreamweaver code), because when I close the browser and reopen it to the web page, it remembers the previous zoom settings.
    I just started building a web page a few days ago and don't have a published web page as I haven't selected a host yet, but plan to when I know how what exactly I need in terms of size.  All the web pages I've been viewing are on my hard drive.  Is that why the zoom is not consistent across all my pages?  To clarify, if I zoom all the way in on my home page, then click "Events", the Events page won't necessarily be zoomed all the way in, it will be at the same zoom level as the last time I viewed it.
    I just want to know if this issue will go away when I actually publish my page to the internet and view it on the web?  If not, I'd like to tackle the problem now before I publish it because this site has to be professional since we're holding a big charity event in the fall with a major and well known charity and celebrity.
    Thanks in advance for any help!

    You're not using frames or framesets are you?
    In which browsers are you testing your site?
    My experience in Firefox, Chrome & IE9 is that Ctrl++ (zoom) remains constant until I change it.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How do I transition between pages using something other than a white screen

    When the site first pulls up (I see this in Safari intermittently but not Firefox) the background is white (outside the page). After switching between pages it goes back to black. Can I have it use any other color besides white? How do I do this?
    Also, when trying to pull up in Internet Explorer, there are numerous problems loading. How do I optimize for this browser?
    dancingdogtreasures.com

    Roddy has some tips at his iWeb for Musicians site: How to get your iWeb Site to load in Internet Explorer.
    Using an optimizing application like Web Site Maestro can greatly reduce the "weight" of a site's pages to facilitate faster loading. I use it event thought my sites are geared for Mac users and it greatly reduces the size of the files in the site.

  • Jdev 11g, Passing data between pages using data control

    Hi,
    I'm fairly new to Jdev, J2EE, and ADF. I created a project using the tutorial "Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces" (found here: http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html).
    Data model part seems to work fine. I am able to connect to the database and print out a record using the sample client.
    Now I'm trying to build the web front end for it. I started using a data control and ADF to make the components. I built a search page by dragging and dropping my method from the data control onto a form. I set the action on the form to go to a detail page which I put a database node from my table product_group. My thinking was the user would put in the id and then be taken to the next page that has the detail on it.
    When I ran the page though the search page seemed to execute fine but the detail page came up blank. There were no runtime errors. I think data is not being passed to the next page.
    This is the code for the form on the search page:
    <af:form>
    <af:panelFormLayout>
    <af:inputText value="#{bindings.p_id.inputValue}"
    label="#{bindings.p_id.hints.label}"
    required="#{bindings.p_id.hints.mandatory}"
    columns="#{bindings.p_id.hints.displayWidth}"
    maximumLength="#{bindings.p_id.hints.precision}"
    shortDesc="#{bindings.p_id.hints.tooltip}">
    <f:validator binding="#{bindings.p_id.validator}"/>
    <af:convertNumber type="number"/>
    </af:inputText>
    <af:commandButton actionListener="#{bindings.queryProdGroupFindByID.execute}"
    text="Search ID"
    disabled="#{!bindings.queryProdGrouptestFindByID.enabled}"
    action="search"/>
    </af:panelFormLayout>
    </af:form>
    This is the detail page:
    <af:form>
    <af:panelFormLayout>
    <af:panelLabelAndMessage label="#{bindings.description.hints.label}">
    <af:outputText value="#{bindings.description.inputValue}"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.id.hints.label}">
    <af:outputText value="#{bindings.id.inputValue}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.id.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.status.hints.label}">
    <af:outputText value="#{bindings.status.inputValue}"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.storeId.hints.label}">
    <af:outputText value="#{bindings.storeId.inputValue}"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.type.hints.label}">
    <af:outputText value="#{bindings.type.inputValue}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.type.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:form>
    I guess what I'm asking is how does data get passed to the detail page using a data control? Also if anyone has an online book about data controls and how they work I'd appreciate that too. Too much magic going on.
    Thanks in advance.
    Edited by: user2936931 on May 3, 2009 5:15 PM

    I went to the bindings tab for my search.jspx page and found in the 'executables' table queryProdGroupFindByIDIterator. I looked in the properties for that and 'CacheResults' is set to '<default>true'. Next page still looks blank. I changed it to straight up 'true' and that didn't work either.
    If I'm in the right place I guess it must be something else?

  • Change web page using iweb

    How can I change my web page using iweb?

    Then you would need to publish to one of the 3 options that iWeb provides. Now, MobileMe ceases to exist come June, 30th. If you do not allready have a 3rd party host you will need to get one.
    I use ix webhosting. Their plans start as low as $3.95 USD a month & they have excellant customer service.

  • Browsing short cut between pages using the digital clock at top of screen?

    Hi,
    Has anyone seen this new tip that's come out. Apparantly, if you want to look at a previous page during browsing in Safari, you can just touch the clock at the top of the screen and it moves to the previous page.
    I've tried this and it doesn't seem to work,
    Any ideas anyone?
    Thanks
    adam

    I have never heard of that tip or read about it.
    The only thing about the top of the screen (status bar) is that you can tap it to scroll back to the TOP of the page. Works in many apps (but not all 3rd party ones).

  • Capturing data changes in alv using classes

    Hello All,
    Currently am working on alv report using classes..,In this report am displaying 3 grids in the output in 3 different containers(cl_gui_custom_container)...,Am able to handle the data changes done in the grid  at the run time using event  data_changed ...,
    Now the requirement + problem is ...if i do the changes in all the grids ,,,,,and if i click(hotspot event) on any of the rows/records in any of the grids ...,, I need to be able to capture all the data changes done in all the other grids....,,
    for example:-
    if i modify some records in all the 3 grids ,,, and if I click any of the row in any of the grid at a time,,, all the changes done in all the grids should be captured.....( in simple words one click all changes )
    I tried using data_changed event....., am only able to capture the changes of the grid on which i clicked ( ie.hotspot event) but not the changes which i have done on other grids.....Pls. help me out with the possibilities
    Hope am clear..
    Thanks
    John

    Hi friend,
    METHOD handle_user_command.
      CASE e_ucomm.
    WHEN 'UPDATE'.
                 CALL METHOD r_grid->get_selected_rows
              IMPORTING
                 ET_INDEX_ROWS =
                 et_row_no     = it_rows.
    LOOP AT it_rows INTO wa_rows.
    *****modify the first container data***********
    endloop.
    CALL METHOD r_grid1->get_selected_rows
              IMPORTING
                 ET_INDEX_ROWS =
                 et_row_no     = it_rows1.
    LOOP AT it_rows1 INTO wa_rows1.
    *****modify the second container data***********
    endloop.
    CALL METHOD r_grid1->get_selected_rows
              IMPORTING
                 ET_INDEX_ROWS =
                 et_row_no     = it_rows2.
    LOOP AT it_rows2 INTO wa_rows2.
    *****modify the third container data***********
    endloop.
    endcase.
    Now we can create three container and three different grid class object but we are using same method.
    UPDATE buttton is common to all three containers.
    But one important point when u change the records in container we must select the rows then only selected rows r come to the internal table otherwise it is not come.
    CREATE OBJECT r_container
        EXPORTING
          container_name              = 'CONTAINER_1'
    CREATE OBJECT r_container2
        EXPORTING
          container_name              = 'CONTAINER_2'
    CREATE OBJECT r_container3
        EXPORTING
          container_name              = 'CONTAINER_3'
    CREATE OBJECT r_grid
        EXPORTING
          i_parent          = r_container
    CREATE OBJECT r_grid1
        EXPORTING
          i_parent          = r_container2
    CREATE OBJECT r_grid2
        EXPORTING
          i_parent          = r_container3
    NOW WE CAN CALL THE METHOD.
    CREATE OBJECT event_receiver1.
      SET HANDLER event_receiver1->handle_before_user_command FOR r_grid.
    CREATE OBJECT event_receiver1.
      SET HANDLER event_receiver1->handle_before_user_command FOR r_grid2.
    CREATE OBJECT event_receiver1.
      SET HANDLER event_receiver1->handle_before_user_command FOR r_grid3
    I thing it should be possible.But u must remeber u must select the records when u modifie in three containersBUT UPDATE button is common to all three containers.
    Regards,
    MURALII

  • Swipe between pages with three-fingers MacBook Pro

    Hello,
    After updating FF to 29.0.1 I no longer can swipe between pages using three fingers or do a quick scroll to the top of the page using three fingers.
    Best regards,
    Anton

    Try this. Start in safe mode. See if there is a problem and report back.

  • How to pass values between pages?

    Hi
    Anybody know how you pass values like ids between pages using buttons?
    Cheers
    dan
    Message was edited by:
    user551484

    Hi
    Why do you want to do this? You can access values from other pages so if you are on page 2 and there is an item on page 1 called P1_ID you can simply assign it to an item on page 2 by typing in P1_ID in the source value for your page 2 item.
    Or you could reference it direct in your pl/sql process by typing &P1_ID. (note the fullstop)
    If you did want to pass a value using a button you can do so by clicking on the button name in then scroll down to the section called optional URL redirect.
    set target is a - to page in this application
    then select the page you want the button to send you to
    then click the flashlight icon next to set these items
    you can then select the page item you want to send the value to and the page item you are getting the value from.
    Danny
    Message was edited by:
    Danny Roach

  • IPC Between Two ADF Portlets on Same Page using Events Failure

    Considering that a full page submit is required for the passing of parameters to work properly, I am trying to use IPC Events to pass a parameter from one ADF Portlet to another. There are no good examples out there, but I am trying to use what is out there in many different generic forms to make this happen with no success.
    One portlet contains an ADF Table with a select column, I have a BackingBean to process the choosing of a row and that value is being retrieved and I am calling the set event.
    public void selectPatient(ActionEvent e) {
    FacesCtrlHierNodeBinding node = (FacesCtrlHierNodeBinding) tblPatients.getSelectedRowData();
    String username = node.getAttribute(0).toString();
    System.out.println("Selected Patient: " + username);
    ActionResponse response = (ActionResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
    response.setEvent("selectPatientResult", username);
    I then have a second portlet that is supposed to retrieve the value being passed from within the portlet class and then the second ADF portlet is supposed to display. I will eventually do more work with the value, but I am just trying to get the events to work properly first. Here is the code within the receiving portlet class:
    public class drugallergies extends ADFBridgePortlet {
    @ProcessEvent(name="selectPatientResult")
    public void processSelectPatientEvent(EventRequest request, EventResponse eventresponse) throws PortletException, IOException {
    Event event = request.getEvent();
    String username = (String)event.getValue();
    System.out.println("Selected Patient: " + username);
    eventresponse.setRenderParameter("patient", username);
    I have also made sure that I have put the following within my web.xml file for the application so that the events are being passed as portlet events and not faces events. I am still fairly new to ADF, but not to portals or portlets, which is why I am going this route.
    <context-param>
    <description>Allows for fired events to go to the portlet and not to the faces layer</description>
    <param-name>javax.portlet.faces.autoDispatchEvents</param-name>
    <param-value>false</param-value>
    </context-param>
    I am never seeing the receiving event get processed, meaning that I never see the println get processed with the receiving value. Please help because there are no examples out in the world for going this route. There are examples, but they require you to create an ADF application first and then convert the application to a portlet. I am using the Portlet Creation wizard within JDeveloper but creating ADF based pages for the Views modes.

    Wait... You have to make a distinct difference between portlet events and contextual events in ADF.
    Contextual events in ADF can be converted to portlet events.
    If the full refresh of a portlet is an issue for you then even contextual events will not solve your problem.
    Regardless the use of parameters or events, portlets do not support partial page rendering or ajax. In order for a parameter to pass or an event to be triggered, it need to have a reference to the ActionResponse or RequestResponse. If they don't have the proper reference they will not be able to trigger the event.
    In the case you are talking about, the selection of a record, this won't be able to trigger an event because the selectionModel will be triggered by a partial submit.
    The only work around for this problem is by adding a "select" button that will do a full submit.
    This is not a limitation of ADF, it is a limitation of the portlet standar because the standard itself does not have anything that supports partial page rendering or ajax...

  • How to remove extract space between pages in smartform without changing output

    Hello Experts,
    I've been given a requirement where I need to remove extra space between pages of a smartform (refer to the attachment). If you look at the following screen shot then you will notice that that there is a command provided to display details on these pages which has a checkbox 'Go to New Page'.
    When I removed the above New Page comment then still I don't see the expected output (Refer to the attached screen shot 'Expected' to see what I need).
    Also there is another there is another New Page command (as shown below).
    When I tried to removed the above New Page Command then output was totally changed which user don't want (as shown below. Table should have been break on BCVI on red line, which happens today but with so much extra space).
    To view the correct output how user want please have a look at 'Expected' screen shot.
    Now the question is what change I should make in my smartform to accomplish the expected output.
    Many thanks in advance.

    Hello,
    I think that it should work, this construction of an loop node including all relevant items and at the event TAB event sort field only these items are copied in the OUTPUT_TAB which should be printed in a separate table on the form. After having printed the table, the content of the internal table is cleared.
    I suppose that you first should check if this TAB "event sort field" includes the correct criteria for the necessary group change. If this event is really defined correctly, then I only have one hint for you.
    I know that the only possibility to define a page break in a table in the Window MAIN is to use the following technique:
    Define an outside loop node and in this loop node a table node, but this table does not have a internal table to be looped through. It includes only the fields to be printed, maybe you have to re-design your table node.
    By the way only then you can define a command node including a page break during the processing of an internal table.
    Regards
    Juergen

  • Firefox crashes every time I open it and try to go between pages, I can not use firefox, help

    I converted my new computer from an old one about a week ago.
    Every time I open Firefox, it either crashes immediately or once I try to go between pages it crashes. I get a window that says Firefox quite Unexpectedly. Apple Care worked on this with me.
    We opened Firefox in Test Mode, the crashes did not happen.
    I would like to use Firefox, it is much better than Safari, but not being able to get help for Firefox; I have no choice.
    I don't know how to submit information to Mozilla, therefore I have no crash ID.

    With Test mode, do you mean starting Firefox in [[Safe mode]] ?
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Can I change the dashed line between pages in 2up Display mode?

    Did anyone ever figure out an answer to this query: Remove dashed page lines in two up mode?
    Or did it get fixed or modifiable in a later version?
    I'm viewing a pdf in two-up mode and I hate the dashed line Acrobat uses to indicate the gutter line between pages.
    I don't want to export as spreads from the indd doc because it ruins pagination.
    I wouldn't mind changing it to a solid hairline. the dashes are really distracting.
    I don't like Showing Gaps between pages either.
    Anyone have a way to modify that dividing line in regular two-up mode?
    Thanks.

    Is there a way to change this?
    No.

Maybe you are looking for

  • Lightroom 5.5 and Photoshop CC 14 won't run after installing

    I tried installing the Lightroom and PS upgrades through the Creative Cloud installers - they install but won't run.  Lightroom won't start at all now and PS starts, gets to the main window and immediately shuts down.   I've restored, reinstalled, un

  • IPhone call / sms meter

    Is there an application similar to andriod app call meter 3g. How can i count sms and calls for iphone. I have a contract and have several hours and sms free and i need to monitor these.. plss anyonee ...

  • Change item statistics group in item category details

    Hi Friends, I want to change the item category statistics group for an item category in item category details. Can anyone tell me how can i achieve the same. Regards, Wasim.

  • EP Role assignment to User.

    Hi, I have recently installed EP. When i assigned a New role Created (role i created) to a new User, The Contents assigned to that role is not getting displayed. But, when i also assign a super admin role to the user, the content of new role is getti

  • Showing Picture At Selection screen.

    Hi, I want to show Picture from my PC hard drive at selection screen of abap program ( SAP repo. mime type i know but i want specially from my hard drive on pc ). how it can be possible ? if possible give code. Thanks,