Bonjour a tous

Je voudrai récupérer les messages du properties selon la langue choisie. Pour cela j'utilise ce bout de code


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
<f:view locale="#{facesContext.externalContext.request.locale}">
	<f:loadBundle basename="com.gi.resources.Resources" var="msgs"/>
	<h:outputText value="#{msgs.type_d_incident}" />
</f:view>
j'ai aussitôt cette erreur :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
16:32:52,796 INFO  [STDOUT] 16:32:52,796 ERROR [[jsp]:119] Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException: com.liferay.portlet.RenderRequestImpl
	at org.apache.myfaces.taglib.core.ViewTag.setProperties(ViewTag.java:230)
	at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:361)
	at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:219)
	at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
	at org.apache.jsp.jsp.nouveau_jsp._jspx_meth_f_view_0(nouveau_jsp.java:256)
	at org.apache.jsp.jsp.nouveau_jsp._jspService(nouveau_jsp.java:214)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
16:32:52,796 ERROR [PortletRequestDispatcherImpl] org.apache.jasper.JasperException: Exception in JSP: /jsp/nouveau.jsp:96
 
93: }
94: </script>
95: 
96: <f:view locale="#{facesContext.externalContext.request.locale}">
97: 
98: 	
99: 	<f:loadBundle basename="com.gi.resources.Resources" var="msgs"/>
 
 
Stacktrace:
	at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
	at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:242)
	at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:83)
	at org.apache.myfaces.context.portlet.PortletExternalContextImpl.dispatch(PortletExternalContextImpl.java:164)
et meme si j'utilise le au lieu du
Code : Sélectionner tout - Visualiser dans une fenêtre à part
<f:view locale="#{facesContext.externalContext.request.locale}">
j'ai tjrs la même erreur.

si j'enlève le locale du view le code me récupère le message sans problème
si quelqu un a une idée.