2014-09-05 62 views
0

我只是檢查我的應用程序是否可以從3.3.1遷移到4.3.7,同時從JSF 1.2遷移到2.1。Richfaces 4,缺少HtmlCalendar,HtmlColumn,HtmlComboBox,HtmlComponentControl,HtmlSpacer,HtmlToolTip

JSF升級給了我一些麻煩,我可以解決。但現在我很無能。

我已經包括以下Maven的依賴關係:

<dependency> 
    <groupId>org.richfaces.ui</groupId> 
    <artifactId>richfaces-components-ui</artifactId> 
    <version>4.3.7.Final</version> 
</dependency> 
<dependency> 
    <groupId>org.richfaces.core</groupId> 
    <artifactId>richfaces-core-impl</artifactId> 
    <version>4.3.7.Final</version> 
</dependency> 

現在,我班的一個使用HTML組件組裝的頁面。進口顯示:

import org.richfaces.component.html.HtmlCalendar; 
import org.richfaces.component.html.HtmlColumn; 
import org.richfaces.component.html.HtmlComboBox; 
import org.richfaces.component.html.HtmlComponentControl; 
import org.richfaces.component.html.HtmlSpacer; 
import org.richfaces.component.html.HtmlToolTip; 

這些進口不再可以解決。我搜索了罐子。有文件夾「richfaces-components-ui-4.3.7.Final \ org \ richfaces \ component \ html」,但沒有包含任何類。

我知道有一個豐富的日曆,但是相應的組件類在哪裏?

我是否缺少依賴關係?

感謝 霍爾格

回答

0

大部分的這些(如果不是全部)可以通過更換髮現:

org.richfaces.component.html.Html* 

org.richfaces.component.UI* 

即降.html.封裝部件和替換Html前綴與UI。例如

org.richfaces.component.html.HtmlDataTable 

現在

org.richfaces.component.UIDataTable 

中的類不完全兼容,但至少大部分是(仍然)存在。希望這可以幫助。