ImageZoom is a widget for zooming an image to a high definition version.
The basic configuration enables zooming in an image. This component can also be used against Galleria. Note that the
xmlns:pt="jakarta.faces.passthrough" namespace is needed for pt:data-zoom-src to work.
<div class="card">
<h5>Basic Zoom</h5>
<p>The basic configuration enables zooming in an image. This component can also be used against Galleria. Note that the
<code>xmlns:pt="jakarta.faces.passthrough"</code> namespace is needed for <code>pt:data-zoom-src</code> to work.</p>
<h:form id="formBasicZoom">
<p:growl id="growl" showDetail="true" sticky="true"/>
<p:graphicImage id="tibet"
alt="Tibet"
height="200"
width="200"
value="/resources/images/imagezoom/tibet-small.jpg"
pt:data-zoom-src="#{request.contextPath}/resources/images/imagezoom/tibet-hd.jpg"/>
<pe:imageZoom for="tibet"/>
</h:form>
</div>