How to define custom event and how to trigger the defined event

hi,guys
hurry issue....................hope get help.
I am using oracle weblogic 10gr3 portal.and we choiced java portlet.as of now,we got some question about custom Event.hope you can give some idea....
thank you so much.
question detail:
1.for java portlet ,how to define custom event.
2.how to trigger this event.
3 about the data,may be sometime need to transit Biz data.
auctully,I just want to implements between two portlets communicate.
for example:
existing portletA,portletB.
portletA is a list,like:
A AA <button>
after I click this buttom,then portletB will be effect,it means they are interact with each other.
does anybody hit this issue before,if you solved pls share me .
thank you for you help....

Hello,
Please note that everything below applies to JSR168 portlets ONLY- JSR286 portlets and other portlet types handle events a little differently.
From inside your JSR168 portlet you can send an event during processAction or when receiving another event by using the PortletBackingContext object, such as:
import javax.portlet.ActionResponse;
import javax.portlet.ActionRequest;
import javax.servlet.http.HttpServletRequest;
import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
HttpServletRequest httpRequest = (HttpServletRequest) actionRequest.getAttribute("javax.servlet.request");
PortletBackingContext portletBackingContext = PortletBackingContext.getPortletBackingContext(httpRequest);
portletBackingContext.fireCustomEvent("customEvent", "This is a custom event");
To receive an event, in your .portlet file you just need to put in a "handleCustomEvent" tag specifying which method to call when the event is received, such as:
<?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 title="Listening Portlet" definitionLabel="yourPortletName">
<netuix:handleCustomEvent event="customEvent" eventLabel="customEvent" filterable="true" description="custom event handler">
<netuix:invokeJavaPortletMethod method="processCustomEvent"/>
</netuix:handleCustomEvent>
</netuix:javaPortlet>
</portal:root>
Then, in your receiving portlet the method "processCustomEvent" would receive the event, such as:
public void processCustomEvent(ActionRequest actionRequest, ActionResponse actionResponse, Event event)
The event payload can be any Serializable object you want, but for forward-compatibility with JSR286 it would be ideal if it had a valid JAXB binding.
Kevin

Similar Messages

  • How we create custom infotype and how to configure with its subtypes.

    hai abap-hr gurus,
    how to create custom infotype and how to configure with its subtypes. when i am creating infotypes i am not getting how to configure subtypes.
    plz help me for this with an example code.
    thanks..
    kiran kumar

    Hi Kiran,
        Please fallow the below steps to create the custom infotype. If you have any quires let me know.
    For Creation of Infotype first Go to Transaction PM01, Enter the custom Infotype number which you want to create, it should be a 4 digit number and have to start with 9xxx.
    then select the `Employee Infotype' radio button
    after that select the `PS Structure Infotype'
    then click on Create… A separate table maintenance window appears
    then Create a PS structure with all the fields you want on the infotype
    Save and Activate the PS structure
    now Go back to the initial screen of PM01
    Click on `All' push button. It takes a few moments
    Click on `Technical Characteristics’. Infotype list screen appears
    Click on `Change'(pencil) button
    Now select your Infotype and click on `Detail' (magnifying glass) button
    Give `T591A' as subtype table & also Give `T591S' as subtype txt tab
    Give your subtype field as subtype field & Save and come back to PM01 initial screen
    Click on `Infotype Characteristics' … Infotype list screen appears
    Click on `Change' (pencil) button & on New Entries
    and then Enter your Infotype number and short text Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference
    to fill yours). Now save ur entries
    Now the Infotype is created and ready to use.
    If you want to change the layout of the Infotype as per your
    requirement…
    In the PM01 initial screen…Select `Screen' radio button and give
    2000 as the screen name, then click on edit.
    In the next screen.. Select `Layout Editor' and click `Change'.
    Screen default layout appears…here you can design/modify the
    screen..change the attributes of the fields..etc.
    Save and activate. (Don't forget to `Activate at every level)
    Regards,
    Ramakrishna kotha.

  • Material on how to create custom idoc and how to distribute it

    hi friends,
    can anyone suggest me some good material on custom idoc and how to trigger them.
    please let me know.
    regards,
    roberts.k

    Please check this link.
    http://help.sap.com/saphelp_46c/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    Cheers,
    Ramki.

  • How do I get videos and pictures taken in the same event to show in a slideshow in the order they were taken?

    How do I get videos and pictures taken in Photos and the same Event to show in the order they were taken? Pictures and videos are seperated with videos at the end of both Photos and the Event.

    You're welcome.
    What's likely happened is that when you transferred the video to the new machine they lost their dates.
    Photos use the Exif metadata to record the date and time of the shot. This is quite different from the date and time of the file, which can change as the file is copied from place to place. Video doesn't have Exif, and so iPhoto uses the file date, and that's changed.
    Simply, there's no absoultely reliable way to date video.
    Try assign dates with the Batch Change command under the Photos menu.

  • Upon syncing my iPhone and mac all of my ical and iPhone calendar events have duplicated. how can i fix this and avoid it in the future?

    upon syncing my iPhone and mac all of my ical and iPhone calendar events have duplicated. how can i fix this and avoid it in the future?

    Greetings,
    Questions:
    1. What version of the Mac OS are you running (Apple > About this Mac)?
    2. What version of the iOS are you running (Settings > About)?
    3. Do you backup your computer (http://support.apple.com/kb/HT1427)? 
    --- If you don't regularly backup your computer, now is the time to start.
    4. Do you backup your iPhone (http://support.apple.com/kb/ht1766)?
    Check the calendar list on the left hand side of iCal.  Is it that the individual events are duplicated or is it just that you have the same calendar listed more than once?  If its that you have more than 1 copy of each calendar, you can delete one of the duplicate calendars to eliminate the duplicates.
    If you find that it is the individual events that are duplicated then there are 2 options:
    1. Restore your computer iCal database or iPhone from a backup made before the duplication occurred.
    2. Use a duplication removal program (or do it by hand) to remove the duplicates: http://www.nhoj.co.uk/icaldupedeleter/
    If you have a backup made before the duplication occurred, reply back with what kind of backup you have and I'll suggest how to recover the calendars.
    To avoid this issue in the future:
    Keep regular backups.  They are your best defense against data anomalies which are a fact of life in computers (although hopefully rare).
    Keep your computer and iPhone software fully up to date (Apple > Software Update / Settings > General > Software Update).
    Make sure the date and time on your computer and iPhone are correct before you sync the two devices.
    Make sure the cable connections between the two is solid and that the cable shows no signs of physical damage.
    Hope that information helps.

  • How to create a Custom UIView and How to instantiate that ?

    How to create a Custom UIView and How to instantiate that ?
    In Flash, all we need to do is create a MovieClip and assign it a class name in the library.
    Instantiation is a simple matter of:
    var newclass:CustomClass = new CustomClass({initialization_data:1652});
    addChild(newclass);
    At this current point in time, my understanding of creating custom UIView in xcode is limited to the understanding that you have to:
    1: Forward declare the class in the header.
    2:
    ]newclass *CustomClass in @interface's {}
    and THEN
    @property (nonatomic, retain) newclass *CustomClass;
    in the header file also.
    3: Nib initialization in the implementation file in viewDidLoad and do "addSubview".
    ==============================
    Based on my limited understanding at this point, I find the need to
    @property (nonatomic, retain) newclass *CustomClass;
    at the header somewhat limiting...as it denotes you must know how many instance you will create in the application before hand.
    I believe I am wrong here, hence, my question is, how do I add custom UIViews with initialization codes in real time ?

    hi,
    one workaround i could think of is using the CM views to search for content that belongs to a category and display it in a custom way.
    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc904/wwsbr_api_view.html
    this only allows you to search for the meta-data available in the CM views but not the content of an item that is available when doing a search.
    in the next major portal release we will have a publich search API that can be used for these type of requirements. you can execute your search and format the results in the way you want.
    regards,
    christian

  • My IPAD (original version) is deleting everything over 30 days from my calendar.  How can I prevent this and how can I get the deleted events back?

    My IPAD (original version) is deleting everything over 30 days from my calendar.  How can I prevent this and how can I get back the deleted events? 

    You are most welcome

  • How to lock a customer master and how to make a parameter checkbox as defau

    how to lock a customer master and how to make a parameter checkbox as default checked?

    The Account Groups is the one which maintains the field status for the customer master. In case you want to change the field status (i.e. changage the mandatory field to optional field) you need to maintain the same (i.e. changage the mandatory field to optional field) by navigating to the field status screen and then to the general data tab. Here you can change the status of the your field by selecting the 'OPTIONAL' radio button for the respective field and then save the transaction.
    Reward Points if useful.

  • Is it possible to trigger FIPP event (and how?) when parking an FI document

    Hello
    I wander is it possible to trigger FIPP event (and how?) when parking an FI document with transaction fbv1(and not fv60)
    Thx in advance

    Hi,
    In Financial Accounting --> Accounts Receivable and Accounts payable >  Business Transaction> Incoming Invoices/Credit Memos  --> Make and check settings for Document Parking -->  Create Workflow Variant for Parking Documents (Click  this)
    There you have to assign your workflow.
    Regards,
    Surjith

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • I recently rebuilt my iphoto 09 library and now all the pics are in one folder instead of events.  How do I get 20,000 pics back into the correct events?

    I recently rebuilt my iphoto 09 library and now all the pics are in one folder instead of events.  How do I get 20,000 pics back into the correct events?
    I have a macbook pro Version 8.1.2 and I am using Iphoto 09
    I rebuilt library because many pics were black and now they are in one folder labeled "Recovered"

    Do you have the original iPhoto Library (before you rebuilt it)?
    If so, I suggest you rebuild it using iPhoto Library Manager, a program you can download. It does a better job of rebuilding. It also leaves your original intact and makes the rebuilt Library a new file (package).
    If you don't have the original (say, from a backup), then you should probably first back up the library that you have before trying anything.
    After making a backup of it, look along the left side, you will see Events and Photos. Is there anything in either of those areas?
    If not, it sounds like all your photos were recovered and put in Recovered during the rebuild. iPhoto Library Manager might do a better job with this. In any case, if there are no photos in Events or in Photos, try selecting ~ 5 photos in Recovered and drag them to Photos. Do they then show up there with the correct dates? Do they also show up in Events after doing that? I am suggesting just a few photos before you try it with 20,000.
    If the photos inside your "recovered" area are also in Photos, then don't do the above steps. I'm not sure I can help you if your 20,000 photos are in Photos but not Events. I'd try iPhoto Library Manager instead with its better rebuild.
    If the 5 photos experiment works, then I would try it with ~ 200 photos at a time, going through your entire collection. You'll need to do this about 10 times if you really have 20,000 photos. Remember, don't do this if the "recovered" photos are already in "Photos."

  • ALV: how to display only subtotals and total rows in the output

    ALV: how to display only subtotals and total rows in the output
    i am getting output
    i am getting subtotals for respective fields
    but i want to display only subtotals and totals rows in the output
    i have tried the
    totals_only   parameter in slis_layout_alv
    but it is not working.

    hi,
    For TOTAL
    For the amount field / quantity field in the field catalog give DO_SUM = 'X'    for WHOLE total
    For SUBTOTAL
    For subtotal you will have to create an internal table sort..Let's say you want to do subtotal for each customer..
    DATA: lt_sort type SLIS_T_SORTINFO_ALV,
    ls_sort type slis_sortinfo_alv.
    CLEAR ls_sort.
    ls_sort-spos = 1.
    ls_sort-fieldname = 'Give the field name that you do the sum'.
    ls_sort-up = 'X'.
    ls_sort-subtot = 'X'.
    APPEND ls_sort TO lt_sort.
    fieldcatalog-do_dum = 'X'.
    for subtotals
    WA_SORT-FIELDNAME = 'ERSDA'.
    WA_SORT-SPOS = '2'.
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOTAL = 'X'.
    APPEND WA_SORT TO IT_SORT.
    Refer
    http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e056d52611d2b468006094192fe3/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/doesnt-function-event-subtotal_text-in-alv-713787
    regards,
    Prabhu
    reward if it is helpful

  • How to export an album and keep images in the same order in elements 11 mac

    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos

    Thanks for the tip, Michel
    It worked like a charm…
    cheers Jos
    Op 28 okt. 2013, om 18:49 heeft MichelBParis <[email protected]> het volgende geschreven:
    Re: How to export an album and keep images in the same order in elements 11 mac
    created by MichelBParis in Photoshop Elements - View the full discussion
    JosU a écrit:
    I made an album of my trip to Australia (lots of pictures) and changed the order of the images (not the same as shooting order) and when I export the images in the album to a folder or memorystick, the images are copied to that place but I lost the album order of the images.
    How can I prevent that, without having to renumber al 500 images separatly?
    Gr Jos
    The order in album is only kept in the organizer database, so the only way not to lose that order is to rename files.
    If you are using the 'export' function, select your album in custom order, select all photos and in the dialog, choose to rename with a common base name.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5794538#5794538
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5794538#5794538
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5794538#5794538. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How run app for customers and how to send dunning notice to vendors

    Hi experts.
    Can any one help on following issue with example scenarios.
    how run app for customers and how to send dunning notice to vendors

    Hi,dear
    you should enter customer account numbers in f110 for payment receiving from customer, and assign dunning procedure to vendor master record and process the dunning to vendor by using f150.
    regards,
    nagesh.

  • How process app for customers, and how to send dunning notice to vendors

    Hi experts,
    can any one help on this
    how process app for customers, and how to send dunning notice to vendors
    Thanks & regards,
    vinod
    Moderator: Please, read and respect SDN rules

    Hi,dear
    you should enter customer account numbers in f110 for payment receiving from customer, and assign dunning procedure to vendor master record and process the dunning to vendor by using f150.
    regards,
    nagesh.

  • Can any 1 tell me how to create budget journal and how to enter journal ?

    hi all+
    Can any one tell me how to create budget journal and how to enter journal against that budget ?+
    Regards+
    Yasir+

    http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/gl/budjrnl.htm#index-Budget-journals-Entering--0
    Enter budget journals to maintain an audit trail for your budget balances. You can use budget rules to calculate budget journal amounts automatically.
    When you post budget journals, the journal amounts update existing budget balances. You can review and change your budget journals before posting them.
    Attention: When you use budget rules in Journal Mode, General Ledger calculates the appropriate debit or credit needed to achieve the balance you enter for the account type.
    Prerequisites
    1. Define a budget
    2.Open one or more years for your budget
    3.Define a budget organization
    4. Assign the "Entered" budget entry type to the accounts for which you want to enter budget journals
    To enter budget journals for a single account:
    1. Navigate to the Enter Budget Journals window.
    2. Specify the Budget Organization for the account to which you want to budget. If the budget organization is password-protected, you must enter the password before you can enter budget journals.
    3. Enter the Budget you want to update. You cannot use a budget that is frozen.
    4. Enter the range of Accounting Periods to which you want to budget.
    5. Enter the Currency of the budget amounts you are entering. The accounts must be assigned to the budget organization for this currency.
    6. Choose Journal Mode from the region poplist to enter budget amounts in a journal format.
    You can also use Single Row Mode or Worksheet Mode to enter budget journal amounts. However, you can only generate budget journals from these entry modes when you use the Enter Budget Journals window.
    Additional Information: When you use Journal Mode, Balance Type is a display-only field. It displays Budget when you are entering budget journals. In the Enter Journals window, this field displays Actual when you are entering actual journals.
    7. Enter or query the Account to which you want to budget. You can also switch to Worksheet Mode to easily query accounts, then return to Journal Mode to enter budget journals.
    8. Enter a Debit or Credit amount for each period. Do not enter journal amounts if you want to use budget rules to calculate and distribute budget amounts.
    9. Choose Create Journals to create a budget journal batch. If you are using budgetary control, you specify a funds action when you create the batch.

Maybe you are looking for

  • Brand new macbook air won't open or save pdf's

    FIles display pdf icon  but it says it won't open "because it is either not a supported file type or because the file has been damaged and may be corrupted" etc. I then installed adobe reader and still get same issue, I've downloaded several pdf's fr

  • K8D Master 3-FA4R

    where can i get this board? there are only 62 matches for it on google :( and i need it to be shipped to ireland/ uk.. any idea on how much they cost? whats the deal with single and dual cpu's? if i want to use it as dual processor do i need to buy 2

  • TS1424 It says "Sorry, an unexpected error occurred. Please try again later. Error code: -1012 (NSURLErrorDomain)"

    It says "Sorry, an unexpected error occurred. Please try again later. Error code: -1012 (NSURLErrorDomain) What do i do?! My ipod ALL OF A SUDDEN ... is connected to the internet but doesnt use anything...yet it works on all my other devices (tablet,

  • Dynamic pl/sql in pro*c/c++

    I have a stored procedure to query and will receive a result by it.... I used the dbms_sql package to give name of the table at run-time then it runs in sql*plus well... but If i called it in pro*c/c++, it would not return result... This is my exampl

  • Live Cycle Designer ES 8.2 email button problem

    I have created an interactive document to collect data for training purposes. I would like the completed forms to be submitted by email so the email recipient will be able to receive the training data. For some reason the email submit button is not w