ui:composition template=“<template from jar>”

穿精又带淫゛_ 提交于 2019-12-04 16:45:42
BalusC

The #{resource} expression is initially designed for use inside CSS files only like so

.someclass {
    background-image: url(#{resource['somelibrary:img/some.png']});
}

It's not intented for usage in <h:outputStylesheet>, <h:outputScript> or <h:graphicImage> which should rather be used as follows:

<h:outputStylesheet library="somelibrary" name="css/some.css" />
<h:outputScript library="somelibrary" name="js/some.js" />
<h:graphicImage library="somelibrary" name="img/some.png" />

As to the templates, just specify the full /META-INF/resources relative path in there.

<ui:composition template="/templates/template_pe_layout.xhtml">

See also:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!