on 09-04-2008 10:50 AM
Hi everyone,
I'm trying to run example project Flight Booking.
It shoulf open a pop-up dialog window.
i enter following code to onActionBookFligth:
<.....>
if(wdContext.currentReturn_AvailibilityElement().getType().equals("S"))
{
IWDConfirmationDialog dialog;
String dialogText = "This flight is available!";
dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(
dialogText,
wdControllerAPI.getControllerInfo().findInEventHandlers("Reserve"),
"Reserve flight");
dialog.addChoice(wdControllerAPI.getControllerInfo().findInEventHandlers("Book"),
"Book Flight");
dialog.addChoice(wdControllerAPI.getControllerInfo().findInEventHandlers("Cancel"),
"Cancel");
dialog.open();
I'm getting a warning with dialog.open
and java.lang.NullPointerException.
Does anybody know what the problem could be?
Thank you!
MaryM
hi,
you have declared the following eventhandlers or not ?
1.Reserve
2.Book
3.Cancel
if not maintain these with the above names...
Regards,
ramesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mary,
Create Event handler name "Reserve" as you mentioned,
Go to Methods tab, click New button, Select the Event Handler then click Next, type "Reserve" and click finish.
similiar to You need to create Book,Cancel Event handler.
That's it
Regards,
P.Manivannan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mary,
Did you taken Exactly the Event Handler Names as "Reserve","Book" & "Cancel" ? Check it once.
Did u taken all the 3 Windows in the same Component Controller that you are using for the example project Flight Booking?
With Regards,
Roop Kumar.
Edited by: Roop kumar Annavarapu on Sep 4, 2008 3:30 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.