why would an inline XMLNS change the entire tag structure? JSF

后端 未结 1 2003
野趣味
野趣味 2021-01-23 18:11

My apologies in advance, i don\'t do a lot of front end development. But in short xmlns attributes are removing tags and moving them around in the rendered document. This is pro

相关标签:
1条回答
  • 2021-01-23 18:58

    I debugged a bit and found this must be happening in JSF SAXCompiler routines. While the com.sun.faces.facelets.compiler.SAXCompiler.CompilationHandler gets its' startElement and endElement methods invoked in correct order as per the XHTML source code, the result of

    FaceletHandler h = this.compiler.compile(url, alias);
    

    at line 475 of com.sun.faces.facelets.impl.DefaultFaceletFactory Mojarra 2.3.8, is a FaceletHandler representing the observed wrong element tree structure.

    This has been reported as bug #4555.

    There has also been a very similar question before which was then reported as a bug to Mojarra. As that bug is resolved, I'd consider this to be a new one. So I'd suggest you to report that bug using a minified reproducable example. For your application you should consider to emebed SVGs using <ui:include src="/resources/svg/one.svg" /> as BalusC suggest in response to the other question.

    0 讨论(0)
提交回复
热议问题