0

我正在从 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"> 

有谁知道我该怎么办?

4

1 回答 1

2

鉴于错误xmlParseEntityRef,我将检查杂散的XML 实体(查找 & 符号 - &)。

还要检查任何 EL 表达式发出的值(例如 ${baz.mystring})。如果 MyFaces 将字符串“foo & bar”编码为foo & bar,但是 RI 直接将它作为foo & bar发出,那么这可能会导致问题。

于 2009-06-03T14:37:10.013 回答