[ 
https://issues.apache.org/jira/browse/WW-5810?focusedWorklogId=1049909&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1049909
 ]

ASF GitHub Bot logged work on WW-5810:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Oct/26 14:02
            Start Date: 24/Oct/26 14:02
    Worklog Time Spent: 10m 
      Work Description: sonarqubecloud[bot] commented on PR #2056:
URL: https://github.com/apache/struts/pull/2056#issuecomment-6385131696

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=2056) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=2056&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=2056&issueStatuses=ACCEPTED)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=2056&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [97.6% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=2056&metric=new_coverage&view=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=2056&metric=new_duplicated_lines_density&view=list)
  
     
   <!

Issue Time Tracking
-------------------

    Worklog Id:     (was: 1049909)
    Time Spent: 40m  (was: 0.5h)

> Support java.time types in the datetextfield tag
> ------------------------------------------------
>
>                 Key: WW-5810
>                 URL: https://issues.apache.org/jira/browse/WW-5810
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Tags
>            Reporter: Lukasz Lenart
>            Assignee: Lukasz Lenart
>            Priority: Major
>             Fix For: 7.5.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> h2. Problem
> {{datetextfield}} only works with {{java.util.Date}} properties:
> * The JavaTemplates {{DateTextFieldHandler}} casts the value straight to 
> {{java.util.Date}}, so a {{LocalDate}} property fails with a 
> {{ClassCastException}}
> * {{DateTextFieldInterceptor}} reassembles the split fields with 
> {{SimpleDateFormat}} and always sets a {{java.util.Date}}
> * The html5 template added in WW-5778 renders the ISO {{yyyy-MM-dd}} value 
> from {{java.util.Date}} only
> {{input type="date"}} maps naturally to {{java.time.LocalDate}}, which is the 
> type most applications now use for a date without a time.
> h2. Proposal
> Support {{java.time}} property types (at least {{LocalDate}}) in 
> {{datetextfield}}:
> * html5 theme: render the ISO {{yyyy-MM-dd}} value for {{LocalDate}} (and 
> define the behaviour for {{LocalDateTime}} / {{ZonedDateTime}} etc. — 
> truncate to the date, or reject)
> * JavaTemplates theme: format the split fields from {{java.time}} values and 
> have {{DateTextFieldInterceptor}} set the property's declared type
> * Tests for each supported type, and the tag reference updated to list them
> Related: WW-5778 (datetextfield in the html5 theme)



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to