tobago throws an exception after validation form in not English locale
------------------------------------------------------------------------
Key: TOBAGO-218
URL: http://issues.apache.org/jira/browse/TOBAGO-218
Project: MyFaces Tobago
Issue Type: Bug
Affects Versions: 1.0.8
Environment: tobago 1.0.8
facelets 1.1.11
validation the form fields
Reporter: Yuri Ivanov
when Tobago validates the form fields it tries to write "title" attribute in
not English locale and throws an exception.
Facelets calls
renderKit.createResponseWriter(NullWriter.Instance, contentType, encoding);
with null encoding, and then HtmlWriterUtil.writeEncodedValue calls
TobagoResponseWriter.write
I think TobagoRenderKit should validate encoding and set it to UTF-8 if it's
null.
full stack trace.
java.lang.IllegalStateException: Cannot write attribute when start-tag not
open. name = 'style'value = 'null'property = 'style' (InRenderer.java:105)
at
org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeAttribute(TobagoResponseWriter.java:361)
at
org.apache.myfaces.tobago.webapp.TobagoResponseWriter.writeAttribute(TobagoResponseWriter.java:314)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.InRenderer.encodeEndTobago(InRenderer.java:105)
at
org.apache.myfaces.tobago.renderkit.RendererBase.encodeEnd(RendererBase.java:108)
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:90)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:286)
at
org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:72)
at
org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:261)
at
org.apache.myfaces.tobago.component.UIPanel.encodeChildren(UIPanel.java:44)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:82)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:286)
at
org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:72)
at
org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:261)
at
org.apache.myfaces.tobago.component.UIPanel.encodeChildren(UIPanel.java:44)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:82)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.encodeChildrenOfComponent(DefaultLayoutRenderer.java:55)
at
org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:72)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encodeChildren(RenderUtil.java:61)
at
org.apache.myfaces.tobago.renderkit.html.speyside.standard.tag.TabGroupRenderer.encodeContent(TabGroupRenderer.java:68)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.renderTabGroupView(TabGroupRenderer.java:294)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TabGroupRenderer.encodeEndTobago(TabGroupRenderer.java:152)
at
org.apache.myfaces.tobago.renderkit.RendererBase.encodeEnd(RendererBase.java:108)
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
at
org.apache.myfaces.tobago.component.UITabGroup.encodeEnd(UITabGroup.java:90)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:90)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.encodeChildrenOfComponent(DefaultLayoutRenderer.java:55)
at
org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:72)
at
org.apache.myfaces.tobago.component.UIPanel.encodeChildren(UIPanel.java:44)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:82)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:286)
at
org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:72)
at
org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:261)
at
org.apache.myfaces.tobago.component.UIPanel.encodeChildren(UIPanel.java:44)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:82)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:286)
at
org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:72)
at
org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:261)
at
org.apache.myfaces.tobago.component.UIPanel.encodeChildren(UIPanel.java:44)
at
org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:82)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.GridLayoutRenderer.encodeChildrenOfComponent(GridLayoutRenderer.java:286)
at
org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(UILayout.java:72)
at
org.apache.myfaces.tobago.component.UIGridLayout.encodeChildrenOfComponent(UIGridLayout.java:261)
at
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEndTobago(PageRenderer.java:126)
at
org.apache.myfaces.tobago.renderkit.RendererBase.encodeEnd(RendererBase.java:108)
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
at
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
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.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.fortifier.web.controllers.SecurityFilter.doFilter(SecurityFilter.java:33)
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.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira