Results 1 to 3 of 3

Thread: Auto-grow binding

  1. #1

    Default Auto-grow binding

    Hello,
    i have a simple bean like this:

    class Test{
    private String field1
    private String field2
    private String field3
    }

    and a Command

    class Command{
    private String username
    private String password
    private Test composite
    }

    Can I auto-bind that object with a composite-path? like this:

    <form:input path="username" />
    <form:input path="password" />
    <form:input path="composite.field1" />
    <form:input path="composite.field2" />
    <form:input path="composite.field3" />

    I tried like before, but I get this error:
    auto-grow nested property path: java.lang.InstantiationException
    Last edited by Tobia; Dec 20th, 2010 at 02:43 AM.

  2. #2

    Default

    Your form code looks ok, but your bean and command class both are called "Test". Is this right? I'm asking because for me the composite property is a command object.

    Otherwise it is difficult to say what is wrong here. Could you post some more details?

  3. #3

    Default

    I found, the Test object was not initiate by the Command constructor... i'm sorry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •