Shouldn't this work for me?<p:carousel id="carousel" value="#{productMdl.prods}" var="product" circular="true" selectedItem="#{productMdl.selectIndex}" autoPlayInterval="5000" rows="2" effect="true" revealAmount="31" scrollIncrement="1" >
<h:graphicImage id="graphicImage" value="#{product.imageUrl}" style="cursor: pointer;" />
<p:ajax actionListener="#{productCtlr.setCurrentProduct}" event="onclick" update="infoArea"/>
</p:carousel>
<P:ajax /> not behaving as expected
-
- Posts: 49
- Joined: 11 Jan 2010, 02:21
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try;
Also where is infoArea component.
Code: Select all
<p:ajax actionListener="#{productCtlr.setCurrentProduct}" event="click" update="infoArea"/>
-
- Posts: 49
- Joined: 11 Jan 2010, 02:21
Code: Select all
<p:carousel id="carousel" value="#{productMdl.prods}" var="product" circular="true" selectedItem="#{productMdl.selectIndex}" autoPlayInterval="5000" rows="2" effect="true" revealAmount="31" scrollIncrement="1" >
<h:graphicImage id="graphicImage" value="#{product.imageUrl}" style="cursor: pointer;" />
<p:ajax actionListener="#{productCtlr.setCurrentProduct}" event="click" update="infoArea"/>
</p:carousel>
<h:panelGroup id="infoArea" styleClass="productInfArea">
// some stuffs
</h:panelGroup>
Last edited by mota_nginya on 15 Jan 2010, 16:22, edited 2 times in total.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
So?
-
- Posts: 49
- Joined: 11 Jan 2010, 02:21
Not sure what that means but thanks anyway for you have been extremely helpful
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Sorry I only saw the code part when looking at your post, missed the paragraph written below it so I said so?
If you can make sure you've a proper working project, we can discuss further.
If you can make sure you've a proper working project, we can discuss further.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 44 guests