Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Binding Composite Date Fields

  1. #11
    Join Date
    Mar 2006
    Location
    Bangalore, India
    Posts
    242

    Default

    Hi All,
    binder.registerCustomEditor(Date.class, "rpDate", specEditor);
    wouldn't it be a good thing if the registerCustomEditor takes an array of fields and let the CustomEditor prepare a Date.class of the given fields .

    Thanks
    Sami
    Sami

  2. #12
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    You can leave out the property path parameter ("rpDate" in your sample), i.e. passing null, and the property editor will be applied to all of your Date fields. This is not exactly what you describe, but might be sufficient for your use case.

    Jörg

  3. #13
    Join Date
    Jan 2008
    Posts
    1

    Default

    Have the same thing in setting up a date property for birthday. Also have a problem in binding new Date() to <form:hidden path="formDate" id="formDate" /> . Any solutions? I tried js, but still have a problem with it.

Posting Permissions

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