Skip to Content

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.

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Armin Reichert
    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

    (0) 
    1. Eddy De Clercq 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

      (0) 
      1. Armin Reichert
        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

        (0) 
        1. Eddy De Clercq 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

          (0) 

Leave a Reply