バージョニングに対応してなかったので対応させたところ、
CSSリソース内の画像が表示されなくなり困っております。
正しい記述をご存知の方、ご教示をお願いします。
尚、当然ながら対応前はちゃんと表示されておりました。
■バージョニング対応前
resources
+-- css
| +-- common.css
+-- images
+-- icon.png
common.cssでの定義
background: url('../images/icon.png');
test.xhtmlでの定義
<h:outputStylesheet name="css/common.css"/>
■バージョニング対応後
resources
+-- default
+-- 1_0
+-- css
| +-- common.css
+-- images
+-- icon.png
common.cssでの定義
background: url("#{resource['default:images/icon.png']}");
test.xhtmlでの定義
<h:outputStylesheet library="default" name="css/common.css"/>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/06/06 09:06
2016/06/06 09:13
2016/06/06 09:52
2016/06/07 02:42
2016/06/07 02:58
2016/06/07 03:48
2016/06/07 06:10