on 08-20-2008 5:23 PM
hey folks
I'm trying to make use of constants, but I'm not sure what the preferred way is.
is it possible to utilize includes in web dynpro (couldn't find a way to define include) or is the better approach to use an assistance class with static fields?
or any other way?
cheers
stefan
Web Dynpro or not, you really shouldn't use an include for such things anymore. You should always use a class or interface for reusable constants. In WD as you have seen, it is even more enforced since you shouldn't use any kind of include. If you constants are pretty well only used in this component, then I would use the assistanace class. If you need them to be reusable in more than this one place, you might consider an interface of their own.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can store them in the assistance class and I believe this is the preferred method as it is more efficient than using a controller (component controller, custom) to reference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.