Mike McNally wrote: > What common techniques are used to make it possible for decorators > (column decorators mostly, but I guess the same question applies to > table decorators) to access Locale information from the HTTP request > and produce localized column strings? The API only passes through the > table data, not the servlet context or the request or anything else. > Is it common to do something like cache a reference to something like > that on the current Thread object? > In a TableDecorator you do have access to the PageContext so you can use these:
this.getPageContext().getServletContext() this.getPageContext().getRequest() this.getPageContext().getResponse() this.getPageContext().getSession() to get hold of the servlet context, request, response and session from within a TableDecorator. If you're using the 1.1 version then the DisplaytagColumnDecorator decorate() method has the PageContext passed to it along with the cell's data and the media type. Ed! ------------------------------------------------------------------------------ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user