Hi All,
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 fieldsbinder.registerCustomEditor(Date.class, "rpDate", specEditor);.
Thanks
Sami
Hi All,
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 fieldsbinder.registerCustomEditor(Date.class, "rpDate", specEditor);.
Thanks
Sami
Sami
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
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.