2011-07-18 52 views
0

嗨,我想知道如何使用特立尼達皮膚。我用JSF 1.2(apache myfaces),JSTL,Apache Trinidad 1.2.14創建了一個eclipse項目。在項目中,我還創建了特立尼達-config.xml中與皮膚阿帕奇特立尼達

<?xml version="1.0"?> 
    <trinidad-config xmlns="http://myfaces.apache.org/trinidad/config"> 
    <skin-family>casablanca</skin-family> 
</trinidad-config> 

我覺得卡薩布蘭卡是特立尼達1.2默認的皮膚,但我還是把它確保。 (我使用特立尼達1.2的唯一原因是因爲我不知道是否有特立尼達2.0的任何內建現代皮膚)。

不管怎麼說,現在我創造我的index.jsp與身體標記

<f:view> 
<tr:form> 
    <tr:panelTabbed> 
     <tr:showDetailItem text="Apache Trinidad Components" > 
     </tr:showDetailItem> 
     <tr:showDetailItem text="Architecture"> 
     </tr:showDetailItem> 
     <tr:showDetailItem text="Release"> 
     </tr:showDetailItem> 
    </tr:panelTabbed> 
</tr:form> 
</f:view> 

而結果我期待裏面以下是一樣的東西http://example.irian.at/trinidad-components-showcase/component-demo/panelTabbed-Default

,但我得到的是一個醜陋的頁面(http://imagebin.org/163630 )與鏈接而不是3個選項卡。任何幫助表示讚賞。

感謝

回答