Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: spring
    • Labels:
      None

      Description

      The id attribute of the xbean tag should be optional and when not explicitly specified should default to the name of the xbean tag itself. Such as

      <j:transactionManager id="transactionManager"/>

      can just be:

      <j:transactionManager/>

      The schema can also express the default value of the id attribute of the <j:transactionManager complex type.

        Activity

        Hide
        james strachan added a comment -

        Spring allows you to specify a 'name' instead of an 'id' - so maybe we should default 'name' to the name of the element?

        Show
        james strachan added a comment - Spring allows you to specify a 'name' instead of an 'id' - so maybe we should default 'name' to the name of the element?
        Hide
        james strachan added a comment -

        note that I don't think this would work in a validating XSD as spring 2 uses ID/IDREFs to validate IDs match up etc

        Show
        james strachan added a comment - note that I don't think this would work in a validating XSD as spring 2 uses ID/IDREFs to validate IDs match up etc

          People

          • Assignee:
            Unassigned
            Reporter:
            David Blevins
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development