0

I am trying to create a slideshow in an xe:dialog

within the dialog I have repeat populated from a notesdocumentcollection containing one image for each document. and two buttons. Next and Previous

When the user in the dialog click "Next" the next image in my collection should be displayed and when I click previous the previous image in my collection should be displayed.

As these images can be very big I do not want to preload them, the actual image should be retrieved at the time when the user click the "Next" button.

How can I do this?

the problem I have is that I do not know how to navigate to the next image. there is probably a very simple solution. I have tried using different techniques like setRowIndex and setIndex etc.

I first thought I could set the repeats repeat limit to "1" and then navigate to next by incrementing the index but could not get that to work.

So what I thought about then was to set the repeat limit to 1000 and hide all images using css but then all images would be preloaded.

4

1 回答 1

1

Instead of document collection, you can store document id's in a vector and put it into viewscope. You also put a current index in the viewScope. Next/previous will change index variable and since xe:dialog supports partial refresh, it will be easy and convenient.

于 2013-02-22T08:36:27.470 回答