Image 无法在网格(tml)中显示jpg img
我有一个带有属性图片的对象资源 如果在我的网格中,我会:Image 无法在网格(tml)中显示jpg img,image,jakarta-ee,src,tapestry,Image,Jakarta Ee,Src,Tapestry,我有一个带有属性图片的对象资源 如果在我的网格中,我会: <p:pictureCell> <img src="${context:/css/images/pic.jpg}" width="110" height="80" /> </p:pictureCell> 我可以展示这幅画。但如果我想从物体上得到它,我就做不到 <p:pictureCell> <img src="${resource.picture}" width=
<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>
我该怎么做?我找到了解决问题的方法: 我必须做:
<p:pictureCell>
<img src="${context:}${resource.picture}" width="110" height="80" />
</p:pictureCell>
我希望它能帮助别人我找到了解决我问题的方法: 我必须做:
<p:pictureCell>
<img src="${context:}${resource.picture}" width="110" height="80" />
</p:pictureCell>
我希望它能帮助某些人Hi您能粘贴堆栈跟踪或在代码段中包含网格标记吗?resource.picture是字符串吗?您好,您可以在代码段中粘贴堆栈跟踪或包含网格标记吗?resource.picture是字符串吗?