Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1462

<spring:eval> tag is not formatting values according to their annotations

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.2, 2.4.0.M1
    • Component/s: None
    • Labels:
      None

      Description

      Support for formatting values when using <spring:eval> has been added in spring 3.0.3. (#SPR-5397)
      But in Webflow, this is still not working.
      When used like:

      <spring:eval expression="new test.DateBean()" var="dateBean" scope="request" />
      <div>Date format: <spring:eval expression="dateBean.date" />
      

      MVC formats the value correctly, but SWF doesn't.

      DateBean implementation:

      public class DateBean {
      	
      	@DateTimeFormat(style="SS")
      	private Date date=new Date();
      
      	public Date getDate() {
      		return date;
      	}
      
      	public void setDate(Date date) {
      		this.date = date;
      	}
      }
      

        Attachments

          Activity

            People

            Assignee:
            rstoya05-aop Rossen Stoyanchev
            Reporter:
            adros Adrian Rakovsky
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: