Spring Roo
  1. Spring Roo
  2. ROO-2184

Use of generalization causes chaos in JSP fields

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.2.RELEASE
    • Fix Version/s: 1.1.3.RELEASE
    • Component/s: WEB MVC
    • Labels:
      None
    • Environment:
      Roo 1.1.2. RELEASE, Win7

      Description

      Create/update/view JSPs generated using Roo 1.1.1.RELEASE show attributes in same order as defined in class *.java file (in Roo shell input order). In Roo 1.1.2.RELEASE when generalization is used it makes chaos in fields order.
      Normal 1.1.1. order is parrent class fields (in correct order) and then child class fields (in correct order). In 1.1.2. fields are mixed and it makes no sense.
      Simple example script and screens of JSP generated by both Roo versions are attached.

      1. script.roo
        0.7 kB
        Martin Muller
      1. 1.1.1.png
        54 kB
      2. 1.1.2.png
        53 kB
      3. create_1.1.1.png
        8 kB
      4. create_1.1.2.png
        8 kB

        Activity

        Hide
        Martin Muller added a comment -

        I have tried to generate my application again and I realized all pages has this problem, not only when generalization is used.

        Show
        Martin Muller added a comment - I have tried to generate my application again and I realized all pages has this problem, not only when generalization is used.
        Hide
        Martin Muller added a comment -

        Attached screent of application generated with absolutely same script using Roo 1.1.1 and 1.1.2.

        As you can see it's not generalization problem - all fields and menu items are switched.

        Show
        Martin Muller added a comment - Attached screent of application generated with absolutely same script using Roo 1.1.1 and 1.1.2. As you can see it's not generalization problem - all fields and menu items are switched.
        Hide
        Stefan Schmidt added a comment -

        This should be fixed with commit 764c34f0d14cd2b47b10b7a5791056feadea95cd. Please try out one of the nightly CI builds.

        Show
        Stefan Schmidt added a comment - This should be fixed with commit 764c34f0d14cd2b47b10b7a5791056feadea95cd. Please try out one of the nightly CI builds.
        Hide
        Martin Muller added a comment -

        I have tried two latest builds and it's not fixed yet. Fields are still switched.

        Show
        Martin Muller added a comment - I have tried two latest builds and it's not fixed yet. Fields are still switched.
        Hide
        Stefan Schmidt added a comment -

        Martin, it appears the CI build for this change is not published yet, so there is a good chance you have tried with a CI version that did not contain the fix yet. As an alternative you could build Roo from sources (see the readme.txt in Roo master).

        Show
        Stefan Schmidt added a comment - Martin, it appears the CI build for this change is not published yet, so there is a good chance you have tried with a CI version that did not contain the fix yet. As an alternative you could build Roo from sources (see the readme.txt in Roo master).
        Hide
        Martin Muller added a comment -

        Thank you Stefan, latest build works.

        Show
        Martin Muller added a comment - Thank you Stefan, latest build works.

          People

          • Assignee:
            Stefan Schmidt
            Reporter:
            Martin Muller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: