DisplayTag

extend ColumnDecorator interface for localization/internationalization

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1
  • Component/s: None
  • Labels:
    None

Description

For example, the org.displaytag.sample.LongDateWrapper only takes the "MM/dd/yyyy HH:mm:ss" format and I don't see how to localized that because it is not possible to access the locale.

One option is to extend the decorate(Object columnValue) method signature by HttpServletRequest request, thus being able to retrieve the Locale from the request or the session (by request.getSession()).

Doing that as per the DISPL-172 via PageContext is a related option.

Activity

Hide
Ralf Hauser added a comment -
otherwise, just FYI, I consider this decorator approach way more powerful than e.g. the struts "format" or "formatKey" approach, therefore I made an RFE for struts to implement the concept there as well http://issues.apache.org/bugzilla/show_bug.cgi?id=34550
Show
Ralf Hauser added a comment - otherwise, just FYI, I consider this decorator approach way more powerful than e.g. the struts "format" or "formatKey" approach, therefore I made an RFE for struts to implement the concept there as well http://issues.apache.org/bugzilla/show_bug.cgi?id=34550
Hide
fabrizio giustina added a comment -
new DisplaytagColumnDecorator interface in 1.1, with additional pageContext and Media parameters
Show
fabrizio giustina added a comment - new DisplaytagColumnDecorator interface in 1.1, with additional pageContext and Media parameters

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
2h
Original Estimate - 2 hours
Remaining:
2h
Remaining Estimate - 2 hours
Logged:
Not Specified
Time Spent - Not Specified