- Revision
- 655
- Author
- mauro
- Date
- 2008-04-28 09:14:11 -0500 (Mon, 28 Apr 2008)
Log Message
Use custom date formats in freemarker-example.
Modified Paths
- trunk/examples/freemarker-example/src/main/resources/ApplicationResources.properties
- trunk/examples/freemarker-example/src/main/webapp/people/edit.ftl
Diff
Modified: trunk/examples/freemarker-example/src/main/resources/ApplicationResources.properties (654 => 655)
--- trunk/examples/freemarker-example/src/main/resources/ApplicationResources.properties 2008-04-28 14:01:31 UTC (rev 654) +++ trunk/examples/freemarker-example/src/main/resources/ApplicationResources.properties 2008-04-28 14:14:11 UTC (rev 655) @@ -8,4 +8,8 @@ # Field Descriptions dateOfBirth=Date of Birth -# Other properties \ No newline at end of file +# Other properties +date.format=dd-MM-yyyy +date.format.day=dd +date.format.time=HH:mm:ss +
Modified: trunk/examples/freemarker-example/src/main/webapp/people/edit.ftl (654 => 655)
--- trunk/examples/freemarker-example/src/main/webapp/people/edit.ftl 2008-04-28 14:01:31 UTC (rev 654) +++ trunk/examples/freemarker-example/src/main/webapp/people/edit.ftl 2008-04-28 14:14:11 UTC (rev 655) @@ -25,7 +25,7 @@ <p class="fieldRow"> <label for="" Of Birth:</label> <#if person.dateOfBirth??> - <@w.text "person.dateOfBirth" "${person.dateOfBirth?string('dd/MM/yyyy')}"/> + <@w.text "person.dateOfBirth" "${person.dateOfBirth?string('dd-MM-yyyy')}"/> <#else> <@w.text "person.dateOfBirth" ""/> </#if> @@ -33,7 +33,7 @@ <p class="fieldRow"> <label for="" Day:</label> <#if person.birthDay??> - <@w.text "person.birthDay" "${person.birthDay?string('dd/MM/yyyy')}"/> + <@w.text "person.birthDay" "${person.birthDay?string('dd')}"/> <#else> <@w.text "person.birthDay" ""/> </#if> @@ -41,7 +41,7 @@ <p class="fieldRow"> <label for="" Time:</label> <#if person.birthTime??> - <@w.text "person.birthTime" "${person.birthTime?string('dd/MM/yyyy HH:mm:ss')}"/> + <@w.text "person.birthTime" "${person.birthTime?string('HH:mm:ss')}"/> <#else> <@w.text "person.birthTime" ""/> </#if>
To unsubscribe from this list please visit:
