我有以下代码:
<div id="links" class="links">
<ui:repeat var="storageAttachment"
value="#{gallerySlideshowController.selectedStorageAttachmentList}"
varStatus="status">
<a
href="https://farm9.static.flickr.com/8839/27742500683_1da5eca775_b.jpg"
title="Banana"> <p:graphicImage
title="#{storageAttachment.name}" cache="true"
value="#{galleryPictureThumbnailRequestController.pictureThumbnail}"
rendered="#{galleryPictureThumbnailRequestController.pictureThumbnail != null}">
<f:param name="id" value="#{storageAttachment.uniqueId}" />
</p:graphicImage>
</a>
</ui:repeat>
如何替换<a
href="https://farm9.static.flickr.com/8839/27742500683_1da5eca775_b.jpg"
图片路径中的链接?我已将每个 storageAttachment 项目的路径存储在本地 PC 上。例如:Object1: storageAttachment.path = C:/mypicture.png
所以我需要类似: href="#{storageAttachment.path}" -> 但这也不正确,因为我得到了http://C:/mypicture.png
我怎样才能做到这一点?谢谢你的每一个帮助。