怎么引用(XXX.XCSS)样式文件呢!

怎么把XXX.XCSS样试文件引用到网页中去呢。大虾们帮帮忙。哈哈
[b]问题补充:[/b]
如我做好了一个panel.xcss的样试模板
/a:loadStyle 这样引用。没成功。
[b]问题补充:[/b]
路径问题也帮我讲一下吧。哈哈。谢谢拉。刚学不久。哈哈。
[b]问题补充:[/b]
提示找不到。。。。。。。。
哈哈。。。。先用CSS 先顶着。。模板先放着。。
你的辛苦分都不只这个数了。哈哈。

[b]问题补充:[/b]
哈哈。。天哪。少个符号。。。哈哈。

路径问题其实很简单,支持两种方式,一种直接配置地址:如
[code="java"][/code]
一种可以从classpath中加载,如:
[code="java"][/code]
建议你如果用ajax4jsf的话先看一下文档吧,关于这个的文档地址:
[url]http://www.jboss.org/jbossajax4jsf/docs/devguide/en/html/AjaxComponentsLibrary.html#loadStyle[/url]
顺便提一下:这段很重要
As it was mentioned before this componment returns its value passing it to the getResourceUR() method of the ViewHandler for this application, and passing the result via the encodeResourceURL() method of the ExternalContext.

It means that the Context will be inserts automatically to the link. And calls like resource:// will be properly handled.

Except this - you may be free to put your stylesheet links right from the child page while using facelets templates .

这个问题的分我能接到了吗?(悄悄的问一句,嘿嘿 :oops: )

[code="java"]
[/code]

看看javaeye的吧!

呵呵,原来是seam啊!你可以这样
[code="java"] [/code]

命名空间可以这样:
[code="java"]xmlns:a="http://richfaces.org/a4j"
template="layout/template.xhtml"> [/code]

辛苦分,快给,我接着呢,嘿嘿, :lol: