Skip to Content
0
Former Member
Nov 30, 2006 at 10:47 AM

Impossible to add javadoc comment for the constructor in WD Java

82 Views

Hi, all.

For the generated java code by Web Dynpro, the constructor method

doesn't have //@@begin nor //@@end line so we cannot write javadoc

for the constructor.

For example, we have HelloWorld01View and its generated code is

like the following.

-


private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;

public HelloWorld01View(IPrivateHelloWorld01View wdThis)

{

this.wdThis = wdThis;

this.wdContext = wdThis.wdGetContext();

this.wdControllerAPI = wdThis.wdGetAPI();

this.wdComponentAPI = wdThis.wdGetAPI().getComponent();

}

//@@begin javadoc:wdDoInit()

/** Hook method called to initialize controller. */

//@@end

public void wdDoInit()

{

//@@begin wdDoInit()

//@@end

}

-


In the constructor "public HelloWorld01View(IPrivateHelloWorld01View wdThis)",

there is no //@@begin and //@@end line while method wdDoInit() has.

Is this Web Dynpro bug or any particular reason? Any workaround?

Best Regards.