如何创建自己的ADF Faces皮肤? [英] How do you create your own ADF Faces skin?

查看:96
本文介绍了如何创建自己的ADF Faces皮肤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用默认的Oracle ADF Faces 10g默认外观.看起来超级好,但是我们要对其进行调整(更改CSS以及某些组件的呈现方式-例如table组件将在table组件上方和下方放置按钮-我们只希望它们位于底部, -这似乎需要进行程序更改才能更改此行为).

We are using the default Oracle ADF Faces 10g default skin. It looks super nice, but we want to make tweaks to it (changing the CSS and also how certain components are rendered -- for example the table component will place buttons above and below the table component-- we want them only on the bottom-- this appears to require a programmatic change in order to change this behavior).

有人成功创建了自己的ADF Faces皮肤吗?请发布您必须执行的更改组件行为的操作.

Has anyone had success creating their own ADF Faces skin? Please post what you had to do to change component behavior.

推荐答案

我们按照以下文档介绍了Webcenter空间:

we followed this documentation for webcenter spaces:

http://www .oracle.com/technetwork/middleware/webcenter/owcs-r11-extend-spaces-wp-132596.pdf

该文档利用了已经存在的oracle扩展(如何下载源代码在文档中).

The documentation makes use of an already existing oracle extension (how to download the source is in the document).

添加应用程序后,我们只需在META-INF \ trinidad-skins.xml中添加一个新条目:

Once we add the application, we simply added a new entry in the META-INF\trinidad-skins.xml :

<?xml version="1.0" encoding="ISO-8859-1"?>
<skins xmlns="http://myfaces.apache.org/trinidad/skin">
  <!-- Previous skins here ... -->
  <skin>
    <id>myskin.custom.desktop</id>
    <family>My Skin</family>
    <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
    <style-sheet-name>custom/spaces/skins/myskin/myskin.css</style-sheet-name>
    <extends>default.desktop</extends>
  </skin>
</skins>

并在指定路径(例如META-INF/custom/spaces/skins/myskin/myskin.css)内的MET-INF目录内添加了css和img文件.

and added the css and img files inside the MET-INF directory in the specified paths (e.g. META-INF/custom/spaces/skins/myskin/myskin.css).

对于ADF上的自定义应用程序,该过程应该相同.

For custom applications on ADF the procedure should be the same.

这篇关于如何创建自己的ADF Faces皮肤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆