Hi!

I have 2 classes:
public static class Parent{
        private String name;
        private String description;
        private Child child;

        //getters and setters
    }

   public static class Child{
        private String childName;
        private String childDescr;
        //getters and setters
    }

Everything renders fine, when I have the Parent object with the Child object
nested in it, and I try to render this combination like here:
<t:form>
<t:beaneditor object="parent" add="child">
    <t:parameter name="child">

        <t:beaneditor object="parent.child"/>

    </t:parameter>
</t:beaneditor>
</t:form>

But if I change Parent class to:

 public static class Parent{
        private String name;
        private String description;
        private Object child; //changed to Object instead of Child
//getters and setters
}

my nested child object doesn't renders on the page. There is no any
exception - just child's fields disappear.

Is it normal behaviour, or a bug? And if normal, why can't beaneditor
resolve class type and render child object like in first example above?

Reply via email to