Skip to Content
Author's profile photo Eddy De Clercq

The Wizard of the Code Jungle

In a previous Printing with style I indicated that generated code is sometimes very difficult to read and understand. Not only is it put on one lengthy line, but it’s full of references to other code.Conclusion

As you can see, making a wizard with a minimum of code isn’t difficult at all. One can make it even shorter and make e.g. application methods for this. Anyway, there is no need to make a clutter of code for this kind of stuff.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      To implement this in Web Dynpro for Java, you need exactly one line of manually written code:

      wdContext.currentContextElement().setSelectedStep("step0");

      So if I were an application developer, I would ask why bother with HTML, CSS, Javascript etc.

      Armin

      Author's profile photo Eddy De Clercq
      Eddy De Clercq
      Blog Post Author
      Hi,

      The code mentioned in the web log can easily be put in a library too and called with few lines. But at least you know then that the code generated is minimal, easy adaptable to your needs and not cluttered.

      Eddy

      Author's profile photo Former Member
      Former Member
      Of course it should be in a library, even better in a framework. In any case, a business application developer should better not have to deal with this stuff at all.

      Armin

      Author's profile photo Eddy De Clercq
      Eddy De Clercq
      Blog Post Author
      Hi,

      Sure, this web log is not intended for them, but for people who want to take a peak under the hood and want to discover how things are/can be done.

      Eddy