Spring Roo
  1. Spring Roo
  2. ROO-2467

*.jspx files not being updated when adding a field to the governor

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.3.RELEASE, 1.1.4.RELEASE
    • Fix Version/s: 1.1.5.RELEASE
    • Component/s: @ CORE
    • Labels:
      None

      Description

      After running the following script the .jspx files are not update when adding (and then removing) a field to and from the governor. Upon restarting the Roo shell the files are updated.

      project --topLevelPackage com.foo.empty
      persistence setup --provider HIBERNATE --database H2_IN_MEMORY 
      entity --class ~.domain.Foo
      controller all --package ~.web
      

        Activity

        Hide
        Stefan Schmidt added a comment -

        The main problem here is not with the MVC add-on but rather a problem of metadata notification sequence. The JspMetadata listener is correctly notified of a dependent MD change but this happens before the JavaBeanMetadataProvider is notified so it can provide a accessor. This means the JspMetadataListener does not see the newly added accessor.

        Show
        Stefan Schmidt added a comment - The main problem here is not with the MVC add-on but rather a problem of metadata notification sequence. The JspMetadata listener is correctly notified of a dependent MD change but this happens before the JavaBeanMetadataProvider is notified so it can provide a accessor. This means the JspMetadataListener does not see the newly added accessor.
        Hide
        Oscar Rovira (DiSiD) added a comment -

        Hello Stefan,
        could this issue affect MD notifications between RooEntity and WebScaffoldMetadataProvider also?

        Show
        Oscar Rovira (DiSiD) added a comment - Hello Stefan, could this issue affect MD notifications between RooEntity and WebScaffoldMetadataProvider also?
        Hide
        Alan Stewart added a comment -

        Resolved in Git ID 5eb62d8770fdd1abe7cee16060da41176cb7b675

        Show
        Alan Stewart added a comment - Resolved in Git ID 5eb62d8770fdd1abe7cee16060da41176cb7b675

          People

          • Assignee:
            Ben Alex
            Reporter:
            James Tyrrell
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: