Carousel and LightBox |
PrimeFaces offers a component called a Light Box (<p:lightBox />) which supports <iframe /> elements directly. You can see an example from the PrimeFaces showcase for how to use it.
I thought I would share a more interesting approach using a <p:caraousel /> object to display multiple <iframe /> elements in a more "sexy" approach.
The cool thing is that the code is really easy to implement!
The code was developed using NetBeans 7.2 and Apache Maven. The code can be downloaded here: iframe-example.zip
0 comments :
Post a Comment