Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
David Proba
Liferayfaces 3.1.0 BETA2 / Internationalization
May 25, 2012 5:31 AM
Answer

David Proba

Rank: Junior Member

Posts: 48

Join Date: June 27, 2011

Recent Posts

Hi guys,

for file uploading reasons I am using Liferayfaces 3.1.0 BETA2.
Since that, I have problems with internationalization.

Internationalization is done by a seperate hook.
That's the error:
  1
  214:15:15,589 ERROR [PortletServlet:97] javax.portlet.PortletException: doBridgeDispatch failed:  error from Bridge in executing the request
  3javax.portlet.PortletException: doBridgeDispatch failed:  error from Bridge in executing the request
  4    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:675)
  5    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:638)
  6    at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:274)
  7    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
  8    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:245)
  9    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
 10    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
 11    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
 12    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
 13    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 14    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 15    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 16    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 17    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 18    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 19    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 20    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 21    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 22    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 23    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:637)
 24    at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:722)
 25    at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:426)
 26    at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1215)
 27    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 28    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 29    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 30    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 31    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 32    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 33    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 34    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 35    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 36    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 37    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 38    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 39    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 40    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 41    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 42    at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:4735)
 43    at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1455)
 44    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:213)
 45    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:148)
 46    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:309)
 47    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:234)
 48    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:106)
 49    at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:512)
 50    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 51    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 52    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 53    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 54    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 55    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 56    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 57    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 58    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 59    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 60    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 61    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 62    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 63    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 64    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 65    at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:412)
 66    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:680)
 67    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244)
 68    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 69    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 70    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
 71    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 72    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 73    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 74    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)
 75    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)
 76    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 77    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 78    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 79    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 80    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
 81    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
 82    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
 83    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
 84    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
 85    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
 86    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
 87    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
 88    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
 89    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
 90    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
 91    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
 92    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 93    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 94    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 95    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 96    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
 97    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
 98    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
 99    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
100    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
101    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
102    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
103    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
104    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
105    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)
106    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
107    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
108    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
109    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
110    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
111    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
112    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
113    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
114    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
115    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
116    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
117    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
118    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
119    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
120    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
121    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
122    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
123    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
124    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
125    at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:401)
126    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
127    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
128    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
129    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
130    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:55)
131    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
132    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
133    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
134    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
135    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
136    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
137    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
138    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
139    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
140    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
141    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
142    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
143    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
144    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
145    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
146    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
147    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
148    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
149    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
150    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:208)
151    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
152    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
153    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
154    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
155    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
156    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
157    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
158    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
159    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
160    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
161    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
162    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
163    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
164    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
165    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
166    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
167    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
168    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
169    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
170    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
171    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
172    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
173    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
174    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
175    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
176    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
177    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
178    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
179    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
180    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
181    at java.lang.Thread.run(Thread.java:662)
182Caused by: javax.portlet.faces.BridgeException: javax.faces.FacesException: /xhtml/userSummary/view.xhtml @21,115 pattern="#{i18n['dem_datepat']}" Can't find bundle for base name i18n, locale de_DE
183    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:89)
184    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:85)
185    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:672)
186    ... 177 more
187Caused by: javax.faces.FacesException: /xhtml/userSummary/view.xhtml @21,115 pattern="#{i18n['dem_datepat']}" Can't find bundle for base name i18n, locale de_DE
188    at com.sun.faces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:141)
189    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
190    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
191    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:251)
192    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:83)
193    ... 179 more
194Caused by: javax.faces.view.facelets.TagAttributeException: /xhtml/userSummary/view.xhtml @21,115 pattern="#{i18n['dem_datepat']}" Can't find bundle for base name i18n, locale de_DE
195    at com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:331)
196    at com.sun.faces.facelets.tag.TagAttributeImpl.getValue(TagAttributeImpl.java:295)
197    at com.sun.faces.facelets.tag.jsf.core.ConvertDateTimeHandler.setAttributes(ConvertDateTimeHandler.java:130)
198    at com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl.applyAttachedObject(ConverterTagHandlerDelegateImpl.java:130)
199    at javax.faces.view.facelets.FaceletsAttachedObjectHandler.applyAttachedObject(FaceletsAttachedObjectHandler.java:98)
200    at com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl.apply(ConverterTagHandlerDelegateImpl.java:77)
201    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
202    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
203    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:188)
204    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
205    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
206    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
207    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:188)
208    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
209    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
210    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
211    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:188)
212    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
213    at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
214    at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:188)
215    at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
216    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
217    at com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:164)
218    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
219    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
220    at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
221    at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
222    at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:769)
223    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
224    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
225    ... 182 more
226Caused by: java.util.MissingResourceException: Can't find bundle for base name i18n, locale de_DE
227    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
228    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
229    at java.util.ResourceBundle.getBundle(ResourceBundle.java:952)
230    at com.sun.faces.application.ApplicationResourceBundle.getResourceBundle(ApplicationResourceBundle.java:124)
231    at com.sun.faces.application.ApplicationAssociate.getResourceBundle(ApplicationAssociate.java:608)
232    at com.sun.faces.application.ApplicationImpl.getResourceBundle(ApplicationImpl.java:698)
233    at javax.faces.application.ApplicationWrapper.getResourceBundle(ApplicationWrapper.java:526)
234    at com.sun.faces.el.FacesResourceBundleELResolver.getValue(FacesResourceBundleELResolver.java:83)
235    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
236    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
237    at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
238    at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
239    at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
240    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
241    at com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
242    ... 211 more
24314:15:15,619 ERROR [render_portlet_jsp:154] java.util.MissingResourceException: Can't find bundle for base name i18n, locale de_DE
244    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
245    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
246    at java.util.ResourceBundle.getBundle(ResourceBundle.java:952)
247    at com.sun.faces.application.ApplicationResourceBundle.getResourceBundle(ApplicationResourceBundle.java:124)
248    at com.sun.faces.application.ApplicationAssociate.getResourceBundle(ApplicationAssociate.java:608)
249    at com.sun.faces.application.ApplicationImpl.getResourceBundle(ApplicationImpl.java:698)
250    at javax.faces.application.ApplicationWrapper.getResourceBundle(ApplicationWrapper.java:526)
251    at com.sun.faces.el.FacesResourceBundleELResolver.getValue(FacesResourceBundleELResolver.java:83)
252    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
253    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
254    at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
255    at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
256    at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
257    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
258    at com.sun.faces.facelets.tag.TagAttributeImpl.getObject(TagAttributeImpl.java:329)
259    at com.sun.faces.facelets.tag.TagAttributeImpl.getValue(TagAttributeImpl.java:295)
260    at com.sun.faces.facelets.tag.jsf.core.ConvertDateTimeHandler.setAttributes(ConvertDateTimeHandler.java:130)
261    at com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl.applyAttachedObject(ConverterTagHandlerDelegateImpl.java:130)
262    at javax.faces.view.facelets.FaceletsAttachedObjectHandler.applyAttachedObject(FaceletsAttachedObjectHandler.java:98)
263    at com.sun.faces.facelets.tag.jsf.ConverterTagHandlerDelegateImpl.apply(ConverterTagHandlerDelegateImpl.java:77)


Thanks for any help...
Neil Griffin
RE: Liferayfaces 3.1.0 BETA2 / Internationalization
May 25, 2012 7:41 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2369

Join Date: July 26, 2005

Recent Posts

Hi David,

Are you using Liferay Faces Portal 3.1.0-BETA2 as well? That has an i18n keyword that hooks into the Liferay internationalization system. Please see my related blog post.

Neil
David Proba
RE: Liferayfaces 3.1.0 BETA2 / Internationalization
May 25, 2012 8:02 AM
Answer

David Proba

Rank: Junior Member

Posts: 48

Join Date: June 27, 2011

Recent Posts

Hi Neil,

thanks and sorry... Liferay Faces Portal 3.1.0-BETA2 wasn't included. Shame on me.

David
Neil Griffin
RE: Liferayfaces 3.1.0 BETA2 / Internationalization
May 25, 2012 8:05 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2369

Join Date: July 26, 2005

Recent Posts

Hi David,

No worries, glad it's working now. emoticon

Neil
Juan Jose Vazquez
RE: Liferayfaces 3.1.0 BETA2 / Internationalization
August 22, 2012 4:07 AM
Answer

Juan Jose Vazquez

Rank: New Member

Posts: 6

Join Date: August 15, 2012

Recent Posts

Thank Neil for your help. Great stuff!.

However, I´m getting into trouble when I try to apply the second approach, i,e, using the built-in i18n keyword provided by the Liferay Faces Portal project. Everything is OK when I use the i18n keyword in a view but I don´t know how to proceed in case I need to retrieve a message programmatically in a controller. IMHO, this might be neccesary for example to feed the faces messages object.

Ultimately, my goal is to be able to have i18n also in a <h:messages /> component.

Any help or workarounds are appreciated.

BR,

Juanjo.
Neil Griffin
RE: Liferayfaces 3.1.0 BETA2 / Internationalization
August 22, 2012 9:19 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2369

Join Date: July 26, 2005

Recent Posts

Thanks for the kind words. :-)

When you get a chance, please try the following and let me know how it works out:

1LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
2String message = liferayFacesContext.getMessage(locale, key, (Object[]) null);


That's basically what the code in I18N.java does.
Juan Jose Vazquez
RE: Liferayfaces 3.1.0 BETA2 / Internationalization
August 22, 2012 9:56 AM
Answer

Juan Jose Vazquez

Rank: New Member

Posts: 6

Join Date: August 15, 2012

Recent Posts

Thank you Neil, it worked like a charm.

Keep up the good work!.

BR,

Juanjo.
Neil Griffin
RE: Liferayfaces 3.1.0 BETA2 / Internationalization
August 22, 2012 10:12 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2369

Join Date: July 26, 2005

Recent Posts

My pleasure Juan. Glad to hear that it worked!