on 02-21-2008 11:37 PM
Hi All,
I am pretty new to WD. I am trying out writing examples and tutorials. I am facing a problem that is pretty annoying.
This is the gist of the problem.
I am writing a custom controller.
I have populated the init method with some code.
I have another custom method in the controller which I populate with some logic.
I am writing code within the begin and end tags (as suggested by the doco)
When I save the metadata, sometimes nwds wipes out my custom code. For example..If I have this in my custom method..
/@@begin javadoc:executeBapi_Flight_Getlist_Input()
/** Declared method. */
//@@end
public void executeBapi_Flight_Getlist_Input( )
{
//@@begin executeBapi_Flight_Getlist_Input()
try
{
wdContext.currentBapi_Flight_Getlist_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch (Exception e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
//@@end
}
After I save the metadata this is what is left!
//@@begin javadoc:executeBapi_Flight_Getlist_Input()
/** Declared method. */
//@@end
public void executeBapi_Flight_Getlist_Input( )
{
//@@begin executeBapi_Flight_Getlist_Input()
//@@end
}
Has anyone encountered this before??
Thanks in advance!
Santy
PS : My Env is JDK 1.5.0_14 + NWDS 7.0.12..
Edited by: Santosh Raghavan on Feb 22, 2008 12:41 AM
Hi,
Try to reload your project by right clicking on the project and select reload.
Once this is done. try to add the code . Some times this works
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Santosh-
Looks like some of the metadata of your controller has gotten corrupted . Since you are new to Web Dynpro and are trying out examples I would suggest just deleting this project/dc and starting afresh with a new one. Do make sure that you do not edit/remove/insert any of the @@ tags.
Good Luck-
Atul
Hi Atul,
I already did that. I also created a completely new project and applied what was in the example. The new project also exhibited signs of the same problem. This problem is across all WD projects that I am working on. This leads me to believe that there might be a problem with the NWDS installation.
If I don't get any more pointers, I might reinstall NWDS and see if the problem goes away.
Thanks
santy
Welcome to SDN Santosh!
You code must be in between //@@begin
and //@@end
check whether if you are missing anything like this for this method or for any other methods.
regards
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Siva,
Thanks for taking time to answer the question. I followed your suggestion and created another method. Problem remains.
I might add here that I am not making any other modifications to the code other than init and the above method. (I am not messing up the tags)
and I am faithfully () following an example from one of the tutorials on sdn.
Thanks
Santy
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.