I have the following code:JSF 사용 <a href="myPicture.png" .../>
<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>
How can I replace the link in <a href="https://farm9.static.flickr.com/8839/27742500683_1da5eca775_b.jpg"
to my picture path? I have stored the path on my local PC for every storageAttachment item. For example: Object1: storageAttachment.path = C:/mypicture.png
So I need something like: href="#{storageAttachment.path}" -> But this is also not correct because I got http://C:/mypicture.png
어떻게하면됩니까? 도움을 주셔서 감사합니다.
'storageAttachment.path'는 잘못된 값을 반환합니다. 간단합니다. 전체 경로 이름을 반환해서는 안되며 'href'로 사용할 부분 만 반환하면됩니다. – EJP
응용 프로그램이 로컬에서만 사용되는 경우'file' 프로토콜을 사용할 수 있습니다. –
아니요, 로컬뿐 아니라 .... 갤러리 PixPlayer를 어떻게 변경할 수 있습니까 (형식 : Public StreamedContent getPictureThumbnail()에서 링크로) – internet