Issue Details (XML | Word | Printable)

Key: DISPL-562
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Reporter: Stephane Landelle
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DisplayTag

I18nSpringAdapter fails in portlets

Created: 08/Sep/08 08:44 AM   Updated: 27/Dec/08 04:59 AM   Resolved: 27/Dec/08 04:59 AM
Return to search
Component/s: I18N
Affects Version/s: 1.1.1
Fix Version/s: 1.2

Time Tracking:
Original Estimate: 1 minute
Original Estimate - 1 minute
Remaining Estimate: 1 minute
Remaining Estimate - 1 minute
Time Spent: Not Specified
Time Spent - Not Specified

Application server: Weblogic Portal 9.2


 Description  « Hide
I18nSpringAdapter doesn't work with springmvc-portlets because the WebApplicationContext is not an attribute of the ServletRequest.

Please replace line 59 :
MessageSource messageSource = RequestContextUtils.getWebApplicationContext(pageContext.getRequest());

with :
MessageSource messageSource = RequestContextUtils.getWebApplicationContext(pageContext.getRequest(), pageContext.getServletContext());

so it's retrieved in the ServletContext.

fabrizio giustina added a comment - 27/Dec/08 04:59 AM
fixed in 1.2, thanks