0

嗨,我想知道如何使用特立尼达的皮肤。我用 JSF 1.2 ( apache myfaces )、JSTL、Apache Trinidad 1.2.14 创建了一个 Eclipse 项目。在我的项目中,我还创建了一个 trinidad-config.xml

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

我认为 casablanca 是 trinidad 1.2 的默认皮肤,但我仍然确定它。(我使用 trinidad 1.2 的唯一原因是因为我不知道 trinidad 2.0 是否有任何内置的现代皮肤)。

无论如何,现在我创建了我的 index.jsp,并在 body 标记内跟随

<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 个标签。任何帮助表示赞赏。

谢谢

4

1 回答 1

0

“记住,您的页面必须在页面上有 tr:document 标记才能启动皮肤框架”来自 http://myfaces.apache.org/trinidad/devguide/skinning.html

于 2011-07-19T05:13:13.300 回答