Bas*_*sit 4 jsf clickable primefaces graphicimage
我使用<p:graphicImage>如下:
<div id="mapp">
<h3>Country Map</h3>
<p:graphicImage id="city"
value="#{countryPages_Setup.countryMap}"
width="250"
height="190">
</p:graphicImage>
</div>
Run Code Online (Sandbox Code Playgroud)
但这不是可点击的图像.如何使这个图像可以点击,以便当用户点击它时,我可以调用我想要的托管bean动作.
Mat*_*ndy 14
将图像包裹在h:commandLink/中h:link:
<h:commandLink action="...">
<p:graphicImage id="city"
value="#{countryPages_Setup.countryMap}"
width="250"
height="190">
</p:graphicImage>
</h:commandLink>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
23454 次 |
| 最近记录: |