AppFuseStrutsDates |
|
Your trail: |
Difference between
version 5
and
version 4:
At line 77 changed 3 lines. |
Now, when you convert the form back to a POJO, the DateConverter (utils), will |
convert the string back to a Date object (you need to check the DateConverter is applying the |
correct datePattern in the SimpleDateFormat to map to your datePattern) |
Now, when you convert the form back to a POJO, the Converters will call getDob() which will convert the dob string into a Date and return that (so it is working in the same way that getAddressForm() getAddress() works inside the UserForm... doing a type conversion... (you need to check the DateConverter is applying the correct datePattern in the SimpleDateFormat to map to your datePattern) |
At line 81 removed 3 lines. |
Q) What happens if you have 2 dates in your form, and they have different datePatterns? |
A) I guess you would have to dynamically assign the correct converter (unregister DateConverter?) |
|
Back to AppFuseStrutsDates,
or to the Page History.
|