First, you need to create a model that will create an imagelist...
class FileListModel extends AbstractReadOnlyModel<List<File>> {
List<File> getObject() {
// put logic here that creates the list and sorts them
}
}
Then, you need to use an ajaxupdatingtimer that will replace your
image every X seconds with the next image from the list.
--
Jeremy Thomerson
http://www.wickettraining.com
On Sat, Jun 27, 2009 at 3:34 PM, Johannes
Schneider<[email protected]> wrote:
> Hi,
>
> I want to implement a slide show with wicket.
> I have many images on the local hard disk - but they are unordered.
>
> Now I want to create a slide show that shows those images sorted.
>
>
> I started this way:
>
> Created a page with an <img> and added that markup there:
>
> add( new Image( "image", new WebResource() {
> //access the file on the hd
> }
>
> Is this the best way? Or am I missing something?
>
>
> Of course I'd like to change the image(s) using AJAX. Could anyone give
> me a hint/link where I should continue to search...
>
>
>
> Thanks,
>
> Johannes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]