Announcement Announcement Module
Collapse
No announcement yet.
DataBinder Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment

    Working...
    X