2
我使用h:graphicImage來使用name
屬性顯示圖像。現在,爲了成功實現PrettyPhoto (JQuery implementation),我需要得到的圖像路徑(/javax.faces.resource/pictures/file.png.xhtml
)也與我的<a href />
一樣。h:graphicImage的路徑圖像JSF
正如你可以從PrettyPhoto文檔的摘要中看到的,我需要的路徑,我的形象,我<a href />
路徑(實際上有區別,由於使用縮略圖的事實):
<a href="images/fullscreen/2.jpg" rel="prettyPhoto" title="This is the description">
<img src="images/thumbnails/t_2.jpg" width="60" height="60" alt="This is the title" />
</a>
有什麼辦法可以爲我的h:outputLink
提取resourceName(因爲它的名字是h:graphicImage
)?
太棒了,正是我在找的東西。再一次感謝你! – Aquillo
不客氣。 – BalusC
你能告訴我如何從中的遠程位置訪問圖像嗎? –