You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/08/06 21:20:00 UTC
[jira] [Commented] (WICKET-6576) Support multiple dateFormats for
LocalDateTextfield
[ https://issues.apache.org/jira/browse/WICKET-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16570796#comment-16570796 ]
ASF subversion and git services commented on WICKET-6576:
---------------------------------------------------------
Commit 778fcef9848057d9a7e9281b26fd8f24a03fe323 in wicket's branch refs/heads/wicket-8.x from [~svenmeier]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=778fcef ]
WICKET-6576 parse pattern
support different from format pattern
> Support multiple dateFormats for LocalDateTextfield
> ---------------------------------------------------
>
> Key: WICKET-6576
> URL: https://issues.apache.org/jira/browse/WICKET-6576
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 8.0.0
> Reporter: Michael Gerhards
> Assignee: Sven Meier
> Priority: Minor
> Original Estimate: 8h
> Remaining Estimate: 8h
>
> When I use the dateFormat of "dd.MM.yyyy" than an input of "1.1.2018" is invalid.
> When I use the dateFormat of "d.M.yyyy" than an input of "01.01.2018" is valid but converted to "1.1.2018" after form submission.
> When I use the dateFormat of "[d.M.yyyy][dd.MM.yyyy]" than an input of "1.1.2018" and "01.01.2017" are both valid, but converted to "1.1.201801.01.2018" after form submission. This is because the dateFormat is used for both: Parse the user input as LocalDate and than transform back the LocalDate to the representation String.
>
> Would it be possible to allow multiple dateFormats for input parsing and one output dateFormat that is applied after form submission?
>
> I could easily write my own LocalDateTextField class but this feature should be provided by wicket itself since I do not want to wrapp all wicket classes.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)