-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tempus-Dominus v6 is added #1002
Tempus-Dominus v6 is added #1002
Conversation
Thanks, @solomax ! |
...icket/extensions/markup/html/bootstrap/form/tempusdominus/AbstractTempusDominusWithIcon.java
Outdated
Show resolved
Hide resolved
...strap-samples/src/main/java/de/agilecoders/wicket/samples/pages/TempusDominusPickerPage.java
Outdated
Show resolved
Hide resolved
Will add some hacks :) |
I'm a bit lost :(
unable to parse date produced by TempusDominus (even after specifying While this code works as expected:
@martin-g Shall Wicket internals be changed? or maybe there are better way? :) |
...c/main/java/de/agilecoders/wicket/core/markup/html/references/PopperJavaScriptReference.java
Outdated
Show resolved
Hide resolved
...icket/extensions/markup/html/bootstrap/form/tempusdominus/AbstractTempusDominusWithIcon.java
Outdated
Show resolved
Hide resolved
* @param clazz Class of DateTime object to set restrictions | ||
* @return current instance | ||
*/ | ||
public <T> TempusDominusConfig withClass(Class<T> clazz) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should T
extend Temporal
? Otherwise the user could pass anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this can be Temporal
OR java.util.Date
I'm not sure how bounds can be set here :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a use case in your app for using j.u.Date ? If NOT then I'd recommend to support only the new Datetime APIs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully now everything is better :)
...ders/wicket/extensions/markup/html/bootstrap/form/tempusdominus/TempusDominusIconConfig.java
Outdated
Show resolved
Hide resolved
...e/agilecoders/wicket/extensions/markup/html/bootstrap/references/js/wicket.tempus-dominus.js
Outdated
Show resolved
Hide resolved
...strap-samples/src/main/java/de/agilecoders/wicket/samples/pages/TempusDominusPickerPage.java
Outdated
Show resolved
Hide resolved
I don't have any experience with Arabic locales and I am not sure what/why does not work. |
I am fine! |
will do :) |
done :) |
61dcf3d
to
21ed583
Compare
@@ -0,0 +1,19 @@ | |||
function createTempusDominus(elementId, config, localization, lang) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it would be good to add these functions to Wicket.Bootstrap
object. Currently they pollute the global space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
@martin-g can this version be merged? and (maybe) released? :))) |
* Tempus-Dominus v6 is added * Build should be fixed * Code clean-up * Consumers are added to config; Example page is improved * Dates are being validated onChange * Jar-based localization seems to be loaded * OnChangeAjaxBehavior seems to work * Code comment is added * Validation errors are being displayed * tempus-dominus-v5 is marked as deprecated; code clean-up * Non bundled bootstrap 5.3.2 version is used * Code related to OnChangeBehavior is simplified * Comments are addressed (cherry picked from commit a10a7f7)
Done! |
Thanks! :) |
Important changes are:
@martin-g could you please review this one? especially
TempusDominus*Config
implementation? :)PS I believe this
tempus-dominus-v6
should replace currentdatepicker-v5
, but there are too much changes