Details
Description
This code works in ICEFaces 1.6, but fails in 1.7-DR2
FacesContext facesContext = FacesContext.getCurrentInstance();
Map s = facesContext.getExternalContext().getSessionMap();
if (s != null)
{
m_lastLocale = (Locale) s.get( "org.apache.struts.action.LOCALE");
System.out.println("LOCALE:"+m_lastLocale);
}
I use this code to determine the current language setting in Liferay using the
Language Portlet to add the locale object to the session.
It returns null in DR2.
FacesContext facesContext = FacesContext.getCurrentInstance();
Map s = facesContext.getExternalContext().getSessionMap();
if (s != null)
{
m_lastLocale = (Locale) s.get( "org.apache.struts.action.LOCALE");
System.out.println("LOCALE:"+m_lastLocale);
}
I use this code to determine the current language setting in Liferay using the
Language Portlet to add the locale object to the session.
It returns null in DR2.
Activity
Mike Lawrence
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Deryk Sinotte
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Fix Version/s | 1.7Beta 1 [ 10112 ] | |
Resolution | Won't Fix [ 2 ] |
Ken Fyten
made changes -
Fix Version/s | 1.7 [ 10080 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Deryk Sinotte [ deryk.sinotte ] |
This also fails on 1.6.2