DisplayTag

I18nSpringAdapter fails in portlets

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1.1
  • Fix Version/s: 1.2
  • Component/s: I18N
  • Labels:
    None
  • Application server:
    Weblogic Portal 9.2

Description

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.

Activity

Hide
fabrizio giustina added a comment -
fixed in 1.2, thanks
Show
fabrizio giustina added a comment - fixed in 1.2, thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1m
Original Estimate - 1 minute
Remaining:
1m
Remaining Estimate - 1 minute
Logged:
Not Specified
Time Spent - Not Specified