p:commandLink and p:carousel

UI Components for JSF
Post Reply
Alessandro34
Posts: 11
Joined: 02 Sep 2010, 16:20

12 Jan 2011, 17:57

Hi, I'm using p:carousel with p:commandLink in this way :

<p:carousel value="#{categoria.articoli}" var="articolo" rows="3">
<p:column>

<p:commandLink
style="font-weight:bold;color:#B58520"
action="#{menuBuilderBckBean.goToDettaglioArticoloDaCategoria}"
ajax="false" rendered="#{articolo.tipo=='ARTICOLO'}">
<p:graphicImage value="/risorse/immagini/#{articolo.previewImageFile}"
width="100">
</p:graphicImage>
<f:setPropertyActionListener value="#{articolo}"
target="#{menuBuilderBckBean.articoloSelected}" />
<f:setPropertyActionListener value="#{categoria}"
target="#{menuBuilderBckBean.categoriaSelected}" />
</p:commandLink>

</p:column>


</p:carousel>

The problem is that commandLink action is invoked correctly if I don't' scroll the carousel, but after the carousel is scrolled commandLink action is not invoked.Thanks in advance.I'm using primefaces 2.2RC2 , JSF 2 MOJARRA 2.0.3,Websphere 7.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

13 Jan 2011, 01:04

Can you double check with working sample;

http://www.primefaces.org/showcase/ui/c ... Select.jsf

Alessandro34
Posts: 11
Joined: 02 Sep 2010, 16:20

13 Jan 2011, 12:58

Thanks for response. Yes the working example is ok, the problem is the action in command link, after the p:coursel is scrolled the action is not invoked. I have to use an action in this way because I have a navigation rule. So I solved my problem using a jquery carousel.Thanks.

f2pro
Posts: 51
Joined: 07 Jan 2011, 18:22
Location: Brazil
Contact:

13 Jan 2011, 13:18

Hey... look your version..
i was using the 2.2RC2 version, but now I'm using the 2.1 because it's developed fully

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: WileyTup and 47 guests