简体   繁体   English

JSF 2 / primefaces:graphicImage资源隐式EL变量用法

[英]JSF 2 / primefaces : graphicImage resources implicit EL variable usage

I've successfully displayed an image using: 我使用以下方法成功显示了图像:

<h:graphicImage library="icon" name="primefaces/site_logo.gif"/>

But this failed: 但这失败了:

<h:graphicImage value="#{resources['icon:primefaces/site_logo.gif']}"/>

What did I do wrong? 我做错了什么?

它应该是resource['...'] ,而不是resources['...']

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM