无法在网格中显示 jpg img (tml)
我有一个带有属性图片的对象资源。
如果在我的网格中我这样做:
<p:pictureCell>
<img src="${context:/css/images/pic.jpg}" width="110" height="80" />
</p:pictureCell>
我可以显示图片。但如果我尝试从对象中获取它,我就无法获取它,
<p:pictureCell>
<img src="${resource.picture}" width="110" height="80" />
</p:pictureCell>
我该怎么办?
I have an object Resource with an attribute picture.
If in my grid I do:
<p:pictureCell>
<img src="${context:/css/images/pic.jpg}" width="110" height="80" />
</p:pictureCell>
I can display the picture. But if I try to get it from the object I can't
<p:pictureCell>
<img src="${resource.picture}" width="110" height="80" />
</p:pictureCell>
How should I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了我的问题的答案:
我必须做:
我希望它可以帮助别人
I've found the response to my problem:
I have to do:
I hope it helps somebody