Uploaded image for project: '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
    • Status: Closed (View Workflow)
    • Priority: 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

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: