Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-3974

Use the shortes unique selector path instead of the full selector path

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Optional Optional
    • LATER
    • 3.0.0.CR2
    • smooks
    • None

      Currently the graph editor uses the full selector path. Always using the full selector path may seem the safest path but it can have serious performance implications for Smooks. A binding with a short selector is resolved faster then one with a long selector. It would be better if the graph editor would use the shortest unique selector path.

      Example:

      <order>
      <customer>
      <id>432</id>
      </customer>
      <order-items>
      <order-item>
      <id>111</id>
      <quantity>2</quantity>
      <price>8.90</price>
      </order-item>
      </order-items>
      </order>

      If you would bind the 'id' element of order-item to some bean then currently the following path would be generated by the graph editor: order order-items order-item id
      If the graph editor would generate the shortest unique path, then it would be: order-item id

            Unassigned Unassigned
            mzeijen_jira Maurice Zeijen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: