Events on Lightbox

UI Components for JSF
Post Reply
gastaldi
Posts: 11
Joined: 14 Sep 2011, 19:45

17 Nov 2011, 15:11

Hello all,

Is it possible to listen for events on <p:lightBox> component ? Like, execute an actionListener when it´s closed and update a region in my page ?

Regards,

George

ltune
Posts: 125
Joined: 20 Jul 2011, 20:25
Contact:

04 Jan 2012, 15:43

If you find any solution please share.. The current user guide 3.0 does not provide any hint on how to do this. I try to get it to work for monthes.. [1]
Also maybe some one has a hint on how to build a lightbox slideshow without nested small images but with javascirpt paramerters maybe?

Greets,

Adam

[1] = viewtopic.php?f=3&t=14897&hilit=lightbox
Busy applying primefaces patches to my local repo at /dev/null

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

19 Jan 2012, 17:05

3.1's lightbox has onShow and onHide client side callbacks.

venu_dvmr
Posts: 27
Joined: 01 Dec 2011, 19:23

19 Jan 2012, 18:24

Awesome. Currently I have to write my own using remoteCommand.
-----------------------------------------------------------------------
NetBean 7.2, Primefaces 3.3.1 , mobile 0.9.2, Weblogic 10.3.5, JSFMojarra 2.1.10, Maven 3.0.4

ltune
Posts: 125
Joined: 20 Jul 2011, 20:25
Contact:

20 Jan 2012, 11:51

optimus.prime wrote:3.1's lightbox has onShow and onHide client side callbacks.
Good to know. What I hope to make is some kind of <p:imageswitcher /> <p:lightbox /> linker. I know you can put <p:lightbox> inside <p:imageswicher>. The problem is: i loose slide option in big lightbox. So know I would render in the inline my custom slide buttons that close one lightbox and open next;).

I need to learn javascript and jquery in depth, maybe I would come up with a solution of a hidden lightbox with all images, and on each image click in imageswitcher would call the with some corresponding id. (nested outputlink is for imageswitch not a problem).

Code: Select all

$(function() {PrimeFaces.cw('LightBox','widget_j_idt15',{id:'j_idt15',mode:'image'});});
I know this sounds quite confusing. :? If anyone undetstands me, please take some the time for a practical solution.
The image use-case know does not make much sense. The slide option in Lightbox is great (!), but having them all on a preview IM<HO kind of destroys its usabilty.
venu_dvmr wrote:Awesome. Currently I have to write my own using remoteCommand.
Please keep us up to date in this thread.

EDIT: Awesome, there is a concurrent topic. Please follow discussions here [1]

Stay tuned,

Adam

[1] viewtopic.php?f=3&t=7260
Busy applying primefaces patches to my local repo at /dev/null

mpalitang
Posts: 7
Joined: 30 Mar 2012, 00:00

30 Mar 2012, 19:01

I'm trying to use the new onHide feature and experiencing a problem with it. Similar problem as other user. See: viewtopic.php?f=3&t=18272

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests