Page 1 of 1

<p:carousel> first attribute

Posted: 09 Sep 2010, 20:32
by bardu
Any value other than 0 for carousel first attribute doesn't work.

Code: Select all

<ui:define name="dialogs">
        <p:dialog  header="#{msgs.wildlife_viewing_sidebar_wildlife}" modal="true" widgetVar="dlg1"  width="500" height="475" resizable="false" >
            <p:carousel id="carousel" rows="1" first="#{wildlifeViewingBean.first}" var="wl" itemStyleClass="wildlife-carousel-item" value="#{wildlifeViewingBean.wildlife}" >
                <h:panelGrid columns="1" style="width:100%" cellpadding="5">
                    <h:panelGrid style="text-align: left; font-weight: bold; color: orange;" >
                        <h:outputText value="#{wl.name}" escape="false" style=" " />
                    </h:panelGrid>
                    <h:panelGrid style="width: 100%; height: 260px; text-align: justify;">
                        <img alt="Could not load image!" src="#{wl.imageLink}" class="float-right" />
                        <h:outputText value="#{wl.yukonDesc}" escape="false" />
                    </h:panelGrid>
                </h:panelGrid>
            </p:carousel>
            <h:panelGrid styleClass="ui-corner-all dialog-close" >
                <p:commandButton value="#{msgs.close}" onclick="dlg1.hide()"/>
            </h:panelGrid>
        </p:dialog>
    </ui:define>

Re: <p:carousel> first attribute

Posted: 09 Sep 2010, 23:33
by cagatay.civici
We need an issue ticket to have a look in detail.

Re: <p:carousel> first attribute

Posted: 09 Sep 2010, 23:45
by bardu

Re: <p:carousel> first attribute

Posted: 16 Sep 2010, 20:14
by cagatay.civici
Thanks, will look into this by 2.2.RC1 for sure.

Re: <p:carousel> first attribute

Posted: 29 Dec 2010, 20:54
by janfran
Hello, i got the same problem with 2.2.RC2.
It would be very kind to look at this. I saw other posts on this subject.
I also noticed that the mentionned issue was in "new features"category... perhaps it's why we don't have news?
Thanks in advance to primefaces team.