0 Replies Latest reply on Feb 14, 2009 11:03 PM by tomtom

    Initializing complex properties



      is it possible to initialize complex properties of a component outside of code (like, in components.xml)? I tried something like:

      <component name="myComponent" class="foo.bar.MyComponentClass">
           <property name="person.address.street">Foo Street</property>

      which I hoped would call myComponent.getPerson().getAddress().setStreet(Foo Street). However, it failed with an IllegalArgumentException.

      Is there a way I overlooked?