on 07-19-2005 9:24 AM
Hi,
I want to have a method in an interface controller which may be called with one or two parameters. How can I do this in WD, the designer won't let me define another method which already exists...
regards,
Markus
Hello,
AFAIK, it is impossible. Method name should be unique. Use different method names.
Regards, Maxim R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It seems not possible in web dynpro programming model.
As whenvever we create a method, Code generator first see if any method exists with the same name and that's why asks unique name.
Even if we choose a different name (with diffrent parameters) and later we try to Rename it after an existing method (with diffrerent parameters) using Refactor Menu, it works untill we "save".
Upon saving the source, method gets renamed to its original name. This is because Code generator invode wdInvokeEventHandler(String handlerName, IWDCustomEvent event) which throws NoSuchMethodException
that's why it ignore the change. (See this while renaming a method, and click preview).
Rgds,
Vilish
Well, I found out that it IS NOT possible! The reason for that is that Web Dynpro's metamodel is designed to be independent from any programming language. So WD should also be possible to use ABAB which doesn't support overloading. So WD can't use overloading either...
See "Inside Web Dynpro for Java" by Chris Whealy, page 264...
But that section has been defined to be an area not visible by other controller/views
Regards
Pran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure but try it in the area "begin others" that you would find at the bottom.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.