阿帕奇特立尼达的皮肤
您好,我想知道如何使用特立尼达皮肤。我使用 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 是否有任何内置现代皮肤)。
不管怎样,现在我在 body 标签内创建了我的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 个选项卡。任何帮助表示赞赏。
谢谢
Hi I would like to know how to use a skin with trinidad. i have created a eclipse project with JSF 1.2 ( apache myfaces ), JSTL, Apache Trinidad 1.2.14. in my project i also created a trinidad-config.xml with
<?xml version="1.0"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
<skin-family>casablanca</skin-family>
</trinidad-config>
i think casablanca is default skin for trinidad 1.2 but i still put it to make sure.
( The only reason i used trinidad 1.2 is because i am not aware if there is any inbuild modern skin for trinidad 2.0 ).
Anyways, now i create my index.jsp with following inside the body tag
<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>
And the result i am expecting is something like http://example.irian.at/trinidad-components-showcase/component-demo/panelTabbed-Default
but all i get is a ugly page ( http://imagebin.org/163630 ) with links instead of 3 tabs. Any help is appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“请记住,您的页面必须在页面上具有 tr:document 标记才能启动皮肤框架”来自
http://myfaces.apache.org/trinidad/devguide/skinning.html
"Remember, your page must have the tr:document tag on the page to kick off the skin framework" from
http://myfaces.apache.org/trinidad/devguide/skinning.html