1 Reply Latest reply on Jun 5, 2008 2:14 AM by Ronald van Kuijk

    config-type field confusion

    s b Newbie

      The manual section "18.2.3.1. config-type field" gives an example of list:


      lists, sets and collections. In that case each element of the xml-content is consitered as an element of the collection and is parsed, recursively applying the conversions. If the type of the elements is different from java.lang.String this can be indicated by specifying a type attribute with the fully qualified type name. For example, following snippet will inject an ArrayList of Strings into field 'numbers'

      <numbers>
       <element>one</element>
       <element>two</element>
       <element>three</element>
      </numbers>
      


      The text in the elements can be converted to any object that has a String constructor. To use another type then String, specify the element-type in the field element ('numbers' in this case).


      The English is confusing to me, and no example is given for other than String type I think.

      Can someone clarify with an example of different types?

      Thanks
      SB