This content has been marked as final.
Show 10 replies
-
1. Re: Doco for locale cookie C13 Section 13.5
pmuir Apr 7, 2007 2:52 PM (in response to tony.herstell1)No, this is in components.xml so core maps to Seam's core components.
-
2. Re: Doco for locale cookie C13 Section 13.5
tony.herstell1 Apr 7, 2007 2:55 PM (in response to tony.herstell1)Thanks pete so what is the code I put in my facelets page as
<core:locale-selector cookie-enabled="true"/>
gets rejected. -
4. Re: Doco for locale cookie C13 Section 13.5
tony.herstell1 Apr 7, 2007 4:27 PM (in response to tony.herstell1)Yes thats the section I quoted in the title for the thread...
Thanks -
5. Re: Doco for locale cookie C13 Section 13.5
tony.herstell1 Apr 7, 2007 4:28 PM (in response to tony.herstell1)
An Error Occurred:
Error Parsing /WEB-INF/pages/template.xhtml: Error Traced[line: 178] The prefix "core" for element "core:locale-selector" is not bound. -
6. Re: Doco for locale cookie C13 Section 13.5
tony.herstell1 Apr 7, 2007 4:30 PM (in response to tony.herstell1)SEVERE: Error Rendering View[/pages/mainpage.xhtml] com.sun.facelets.FaceletException: Error Parsing /WEB-INF/pages/template.xhtml: Error Traced[line: 178] The prefix "core" for element "core:locale-selector" is not bound. at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234) at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105) at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197) at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144) at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:293) at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273) at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143) at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113) at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49) at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25) at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95) at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:619)
-
7. Re: Doco for locale cookie C13 Section 13.5
pmuir Apr 7, 2007 6:19 PM (in response to tony.herstell1)Dude, RTFM!
In your facelet<h:selectOneMenu value="#{localeSelector.localeString}"> <f:selectItems value="#{localeSelector.supportedLocales}"/> </h:selectOneMenu> <h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}"/>
and in components.xmlThe locale selector, theme selector and timezone selector all support persistence of locale and theme preference to a cookie. Simply set the cookie-enabled configuration property:
...<core:locale-selector cookie-enabled="true"/>
-
8. Re: Doco for locale cookie C13 Section 13.5
tony.herstell1 Apr 7, 2007 6:25 PM (in response to tony.herstell1)DOH!
SLAP! -
9. Re: Doco for locale cookie C13 Section 13.5
tony.herstell1 Apr 7, 2007 6:28 PM (in response to tony.herstell1)Erm...
cough couch..
Your kung-foo is strong but....
>and in components.xml
It doesn't say in the doco to put this strong kung-foo in components.xml.
Me thinks you think I know what I am doing here !!!
13.5. Persisting locale and theme preferences via cookies
The locale selector, theme selector and timezone selector all support persistence of locale and theme preference
to a cookie. Simply set the cookie-enabled configuration property:
<theme:theme-selector cookie-enabled="true">
<theme:available-themes>
<value>default</value>
<value>accessible</value>
<value>printable</value>
</theme:available-themes>
</theme:theme-selector>
<core:locale-selector cookie-enabled="true"/>
Internationalization and themes
JBoss Seam 1.2.1.GA 142
:) -
10. Re: Doco for locale cookie C13 Section 13.5
pmuir Apr 7, 2007 6:50 PM (in response to tony.herstell1)I updated the docs to make this a bit clearer :)