Errai
  1. Errai
  2. ERRAI-464

data-field does not get filled when nested @Template class has data-field with the same name

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Cannot Reproduce Bug
    • Affects Version/s: 2.2.0.CR2
    • Fix Version/s: 2.2.0.Final
    • Component/s: ErraiUI
    • Labels:
      None
    • Environment:
      Mac OSX Mountain Lion, Java 7, GWT 2.4
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Rename the data-field to a unique name and the error goes away

      Show
      Rename the data-field to a unique name and the error goes away
    • Similar Issues:
      Show 10 results 

      Description

      I have a @Templated Class A which is a snippet from a template html file. This Class has a data-field called address and a another data-field which is a @Templated Class B. This class B also contains a data-field called address.
      As soon as I render the page, the value for the data-field in class B is set correctly, but the data-field in Class A is untouched and no error occurs in the console.

      In other words: Class A has a HTML table, which is specified as a data-field. This data-field contains a List(table-row) of @Templated class B. Both contain a data-field with the same name which leads to the weired result. As soon a I rename one of the data-fields, the error is gone.

      As I said, the consoles do not show any errors.

        Activity

        Hide
        Jonathan Fuerth
        added a comment -

        Hi Daniel,

        We've tried to exactly reproduce this situation in an ErraiUI test, but the test is passing. See what we did in this changeset: https://github.com/errai/errai/commit/d23fb57383db152ba9138007bd0d7e329c95d381

        Would you be able to modify this test (A.java/A.html, B.java/B.html) so that it's failing in the same way as your app? If so, please send us a pull request with your changes and we'll try to fix the problem! Time is of the essence: we hope to release 2.2.0.Final in the middle of next week.

        Show
        Jonathan Fuerth
        added a comment - Hi Daniel, We've tried to exactly reproduce this situation in an ErraiUI test, but the test is passing. See what we did in this changeset: https://github.com/errai/errai/commit/d23fb57383db152ba9138007bd0d7e329c95d381 Would you be able to modify this test (A.java/A.html, B.java/B.html) so that it's failing in the same way as your app? If so, please send us a pull request with your changes and we'll try to fix the problem! Time is of the essence: we hope to release 2.2.0.Final in the middle of next week.

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel Sachse
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: