代码之家  ›  专栏  ›  技术社区  ›  razenha

MyFaces面临Mojarra移民问题

  •  0
  • razenha  · 技术社区  · 16 年前

    我正在从MyFaces 1.2.6迁移到Mojarra 1.2。 我的应用程序还使用Facelets、Tomahawk和Richfaces。

    使用MyFaces 1.2.6,它可以毫无问题地工作。 使用Mojarra 1.2,我遇到了一些问题。

    它一直在打印这个错误:

    This page contains the following errors:
    
    error on line 141 at column 36: xmlParseEntityRef: no name
    Below is a rendering of the page up to the first error.
    

    第141行的内容:

    <f:facet name="footer"> 
    

    有人知道我能做什么吗?

    1 回复  |  直到 12 年前
        1
  •  2
  •   McDowell rahul gupta    16 年前

    考虑到错误 xmlParseEntityRef ,我会检查是否有迷路 XML entities (寻找符号)- & ).

    还要检查任何EL表达式(例如${baz.mystring})发出的值。如果MyFaces将字符串“foo&bar”编码为 福安;amp;酒吧 ,但国际扶轮直接发射了它 福安;酒吧 ,那么这可能会导致问题。