on 03-20-2013 2:37 PM
Hello,
I am developing ajavaapplicationinWebDynproNW7.3.Inthis applicationI am trying tocreate apopupwindow(modal) withthe close iconinthe upper right(as standard). But I'm getting the following error:
java.lang.ClassCastException: class
com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TransparentContainer:service:tc~wd~webdynpro@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@798429d2@alive
incompatible with interface
com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDWindowViewElement:service:tc~wd~webdynpro@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@798429d2@alive
at
com.indura.wd_popup.wd.comp.new1comp.PopupView.wdDoModifyView(PopupView.java:147)
if (firstTime){
IWDWindowViewElement window = (IWDWindowViewElement) view.getRootElement();
IWDAction okAction = wdThis.wdGetAPI().getAction("OK");
window.setOnClose(okAction);
The following link is for version 7.1EhP1, but not useful
Best regards,
Sergio
You can also check these threads:
http://scn.sap.com/docs/DOC-2580
http://scn.sap.com/thread/931040
Any points appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sergio,
You cannot cast root element in a view to window. The class of the view.getRootElement() is IWDTransperantContainer. To close the window you need to store it in the context in an attribute of type Window and when you click the close button to get the window from the context and call its hide method.
Best Regards,
Teodor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
where you put those code?
read the doc carefully.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.