ui:repeat with p:imageSwitch dont work

UI Components for JSF
Post Reply
User avatar
townray
Posts: 37
Joined: 10 Dec 2009, 20:41

22 Sep 2010, 22:00

I tested <ui:repeat> with <p:lightBox> and worked like a charm. Example:

Code: Select all

<p:lightBox transition="fade" width="300">
        <ui:repeat value="#{mb.list}" var="p">
              <p:graphicImage value="#{p.path_to_image"/>
        </ui:repeat>
</p:lightbox>
But it does not work with <p:imageSwitch>, the component is not rendered when I do:

Code: Select all

<p:imageSwitch id="imgSwitch" effect="FadeIn" widgetVar="scrollout" slideshowAuto="false">
        <ui:repeat value="#{mb.list}" var="p">
              <p:graphicImage value="#{p.path_to_image"/>
        </ui:repeat>
</p:imageSwitch>
Can anyone help me?

PS: I used <c:forEach> and ran, but must be with <ui:repeat>. Thx.
Danilo G. Magrini - Brazil
http://twitter.com/daniloMagrini
Mojarra 2.0.3 / Glassfish v3 / Primefaces 2.2RC1 / Netbeans 6.9

User avatar
neijunior
Posts: 74
Joined: 15 Jul 2010, 04:46
Location: São Paulo - Brasil

23 Sep 2010, 14:21

I also tested and had the same problem.
Mojarra 2.2.x, Facelets, Glassfish V4.1, Primefaces 5.1, Eclipse Mars 1, JPA 2, EJB 3

Nei Alcantara Jr.
http://twitter.com/NeiAlcantaraJr

User avatar
townray
Posts: 37
Joined: 10 Dec 2009, 20:41

23 Sep 2010, 23:08

up
Danilo G. Magrini - Brazil
http://twitter.com/daniloMagrini
Mojarra 2.0.3 / Glassfish v3 / Primefaces 2.2RC1 / Netbeans 6.9

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

24 Sep 2010, 00:09

Try c:forEach. It might help. ui:repeat will not work as expected due to it's nature.

User avatar
townray
Posts: 37
Joined: 10 Dec 2009, 20:41

24 Sep 2010, 03:57

I want to avoid using c:forEach http://wiki.java.net/bin/view/Projects/ ... _between_c

but, thx for answer..
Danilo G. Magrini - Brazil
http://twitter.com/daniloMagrini
Mojarra 2.0.3 / Glassfish v3 / Primefaces 2.2RC1 / Netbeans 6.9

User avatar
townray
Posts: 37
Joined: 10 Dec 2009, 20:41

27 Sep 2010, 16:46

Danilo G. Magrini - Brazil
http://twitter.com/daniloMagrini
Mojarra 2.0.3 / Glassfish v3 / Primefaces 2.2RC1 / Netbeans 6.9

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

27 Sep 2010, 18:02

Yes, p:imageSwitch supports ui:repeat now along with new 25+ effects.

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

27 Sep 2010, 23:26

Demo of new p:imageSwitch is now available, notice the usage of ui:repeat and the new fx.

http://www.primefaces.org/showcase/ui/imageSwitch.jsf

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 40 guests