on 09-12-2008 9:59 AM
hai ,
i developed confirmation window but under one button action.
but
while click on button iam getting Null piont exception.
the exception is as follow.
java.lang.NullPointerException
at com.sap.tc.webdynpro.clientserver.window.ConfirmationDialogDelegate.<init>(ConfirmationDialogDelegate.java:79)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createConfirmationWindow(ClientComponent.java:995)
at com.lnt.taskmanagercomp.AddView.onActionBack(AddView.java:391)
at com.lnt.taskmanagercomp.wdp.InternalAddView.wdInvokeEventHandler(InternalAddView.java:320)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Hi Eswar,
1.) Did u Create Eventhandlers for Confirmation Window Buttons ?
2.) If yes Check whether you have given the Exact names for Eventhandlers Declaration and Eventhandlers calls in the Code ?
The following is the Code to Open Confirmation Dialogue box with Two Buttons Ok & Cancel. This Code Calls two Eventhandlers named Yes & No.
In the Eventhandler's Call in the code Check whether you are using Exact Eventhandler Names or not ?
IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
String dialogText = "Confirm Deletion";
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(
dialogText,
controllerInfo.findInEventHandlers("Yes"),
"Ok");
dialog.addChoice(
controllerInfo.findInEventHandlers("No"), "Cancel");
dialog.open();
With Regards,
Roop Kumar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
according to me you not defined the eventHandler using in the confirmation dialog box.
follow the below example.
IWDControllerInfo controllerInfo =
wdControllerAPI.getViewInfo().getViewController();
String dialogText = "Confirm Deletion";
IWDConfirmationDialog dialog =
wdComponentAPI.getWindowManager().createConfirmationWindow(
dialogText,
controllerInfo.findInEventHandlers("Yes"),
"Yes");
dialog.addChoice(
controllerInfo.findInEventHandlers("No"), "No");
dialog.open();
and create two eventhandlers Yes and No.
observe this statement in the above code controllerInfo.findInEventHandlers("Yes")
findInEventHandlers() method takes the name of the event handler it has to call.
in this case yes and no are the event handlers.
Regards,
ramesh
Edited by: Ramesh Babu V on Sep 12, 2008 5:02 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check the event handler for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.