2009-06-03 79 views
0

我正在從MyFaces 1.2.6遷移到Mojarra 1.2。 我的應用程序還使用Facelets,Tomahawk和Richfaces。MyFaces到Mojarra遷移問題

使用MyFaces 1.2.6,它沒有問題。 使用Mojarra 1.2,我遇到了一些問題。

它使打印此錯誤:行141

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. 

內容:

<f:facet name="footer"> 

有誰知道我能做些什麼呢?

回答

2

由於錯誤xmlParseEntityRef,我會檢查流浪XML entities(尋找&符號 - &)。

同時檢查任何EL表達式(例如$ {baz.mystring})發出的值。如果MyFaces將字符串「foo & bar」編碼爲foo & amp; bar,但RI直接發射它爲foo & bar,那麼這可能會導致問題。