Hello,
is it possible to use the widgetvar (or javascript, or jquery) to get the name of the image currently displayed in an imageswitch
<p:imageSwitch effect="wipe" widgetVar="switcher" slideshowAuto="false">
<ui:repeat value="#{galleriaBean.images}" var="image">
<p:graphicImage value="/img/background/#{image}" />
</ui:repeat>
</p:imageSwitch>
<p:commandButton type="button" onclick="switcher.previous();
updatebackgroundimage();"
icon="ui-icon-circle-triangle-w"/>
<p:commandButton type="button" onclick="switcher.next();
updatebackgroundimage();"
icon="ui-icon-circle-triangle-e"/>
or how can I use the binding attribute to make this work
Thanks
how to get the current value in imageswitch
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 90 guests