Results 1 to 2 of 2

Thread: DataBinder

  1. #1

    Default DataBinder

    Hi there,

    Can I register a data-binder like this:

    dataBinder.registerCustomEditor( null, "parent", new MyBinder() );

    ...which I think should cause "MyBinder" to be called with the value of the "parent" field in the request?

    Only it doesn't seem to.

    I have other data-binders that work fine, but I have never tried to specify a particular input field before.

    Peter

  2. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    with the value of the "parent" field in the request?
    No, with the 'parent' property of the command object in the request.

    Code:
    class Child {
      Parent getParen();
    }
    Code:
    <spring&#58;bind path="parent">
      <!-- here, mybinder will be used
    </spring&#58;bind>
    Alef Arendsen
    SpringSource
    http://www.springsource.com

Similar Threads

  1. Binding composite properties with DataBinder
    By dhewitt in forum Architecture
    Replies: 16
    Last Post: Jun 1st, 2007, 06:22 AM
  2. "required" behavior not adapted well to submit
    By scottnelsonsmith in forum Web
    Replies: 4
    Last Post: Dec 1st, 2004, 01:11 AM

Posting Permissions

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