[
https://jira.jboss.org/browse/GTNPORTAL-1377?page=com.atlassian.jira.plug...
]
Julien Viet commented on GTNPORTAL-1377:
----------------------------------------
we need handle it at the printer level that is used by the template engine.
the GroovyPrinter class should be extended to take as parameter a Locale (the current user
Locale)
the public final void print(Object o) method should be modified to test if the object o is
an instance of Date or whatever.
this way we will have a transparent appropriate formatting of such objects, transparent in
the meaning of API-less for the template developer.
Locale encoding in Groovy templates
-----------------------------------
Key: GTNPORTAL-1377
URL:
https://jira.jboss.org/browse/GTNPORTAL-1377
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: 3.1.0-GA
Reporter: Julien Viet
Assignee: Minh Hoang TO
Fix For: 3.2.0-GA
Original Estimate: 6 hours
Remaining Estimate: 6 hours
Support method for encoding locale related values should be provided by the the
integration of the template engine.
The locale should be used from the current locale.
New methods should be added on the WebuiBindingContext to perform conversion of Date
object like:
public String encode(Date date) { .... }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira