• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

impossible to make work a galleria from primefaces

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am trying to build a galleria and it is imposible I have done an important research but nothing found about why with this code my page appears empty and no error is shows in the console.





¿Any knows about it?

Thanks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Dura Hurtado wrote:Hi I am trying to build a galleria and it is imposible I have done an important research but nothing found about why with this code my page appears empty and no error is shows in the console.





¿Any knows about it?

Thanks



PrimeFaces galleria is some sort of a data component. Your markup should look like below:

<p:galleria value="#{yourBean.images}" var="image" frameWidth="64" frameHeight="87"
panelWidth="300" panelHeight="200" transitionInterval="0"
styleClass="ui-widget-content ui-corner-all">

<p:graphicImage valu=#{image.image} />

<p:galleriaContent id="q" > <h:outputText value="#{image.content}" /> </p:galleriaContent>

</p:galleria>

Notice the value of p:galleria. It should come from a backing bean. The value of p:graphicImage is derived from the var value of your p:galleria. You can also use Orbit JQuery plugin in place of PrimeFaces galleria. Here is an article about using Orbit plugin in PrimeFaces.

http://kahimyang.info/kauswagan/HowtoBlogs.xhtml?b=750

It is a straight forward guide.
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic