Grails
  1. Grails
  2. GRAILS-7310

Insert full classname when render to XML

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.7
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      None

      Description

      the JSON converter outputs the full classname in the field "class", it would be useful to get same behaviour with the XML marshaller, even with a config option.

      Sample:
      class Product

      { String name; float price; }

      current XML render:
      <product id="3" version="1">
      <name>Product Name</name>
      <price>299.0</price>
      </product>

      Instead, I would get:
      <product id="3" version="1" class="my.domain.Product">
      <name>Product Name</name>
      <price>299.0</price>
      </product>

        Activity

        Hide
        cdeszaq added a comment -

        With the planed emphasis on REST support in v2.2 and the importance of non-html responses to REST applications, it would make sense to target this issue at v2.2.

        Show
        cdeszaq added a comment - With the planed emphasis on REST support in v2.2 and the importance of non-html responses to REST applications, it would make sense to target this issue at v2.2.
        Hide
        Jeff Scott Brown added a comment -

        Graeme,

        Do you know if this is still an issue?

        Show
        Jeff Scott Brown added a comment - Graeme, Do you know if this is still an issue?

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Enrico Sasdelli
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Last Reviewed:

              Development