how to get the current value in imageswitch

UI Components for JSF
Post Reply
ledantecpierre
Posts: 2
Joined: 19 Mar 2013, 18:59

12 Apr 2013, 20:02

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 90 guests