Slideshow

View: New views
9 Messages — Rating Filter:   Alert me  

Slideshow

by Johannes Schneider-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Slideshow

by jthomerson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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<mailings@...> 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: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Slideshow

by francisco treacy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Once you have your images sorted you may want to have a look at:

http://code.google.com/p/wicket-slides/

or perhaps there is a jQuery slideshow plugin that you could use with
the newer Wicket-jQuery integrations.

Francisco



2009/6/27 Johannes Schneider <mailings@...>:

> 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: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Slideshow

by Johannes Schneider-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for that hint.
Do you know how many images wicket-slides/SmoothGallery support? I will
have galleries with thousands of pictures...


Regards,

Johannes

francisco treacy wrote:

> Once you have your images sorted you may want to have a look at:
>
> http://code.google.com/p/wicket-slides/
>
> or perhaps there is a jQuery slideshow plugin that you could use with
> the newer Wicket-jQuery integrations.
>
> Francisco
>
>
>
> 2009/6/27 Johannes Schneider <mailings@...>:
>> 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: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Slideshow

by francisco treacy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think you should ask this at the SmoothGallery forum, as this
concern is on the JavaScript side.

Francisco

2009/6/29 Johannes Schneider <mailings@...>:

> Thanks for that hint.
> Do you know how many images wicket-slides/SmoothGallery support? I will
> have galleries with thousands of pictures...
>
>
> Regards,
>
> Johannes
>
> francisco treacy wrote:
>> Once you have your images sorted you may want to have a look at:
>>
>> http://code.google.com/p/wicket-slides/
>>
>> or perhaps there is a jQuery slideshow plugin that you could use with
>> the newer Wicket-jQuery integrations.
>>
>> Francisco
>>
>>
>>
>> 2009/6/27 Johannes Schneider <mailings@...>:
>>> 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: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Slideshow

by Daniele Dellafiore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 29, 2009 at 2:20 PM, Johannes
Schneider<mailings@...> wrote:
> Thanks for that hint.
> Do you know how many images wicket-slides/SmoothGallery support? I will
> have galleries with thousands of pictures...

I do not know how many images it supports but I remember it was quite
slow to load one hundred images.
Anyway, send all images to the client in one shot doesn't sound
reasonable to me.

I am addressing this issue in the next weeks, if you have some ideas
we should start talking about some possible implementation.

--
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Slideshow

by nino martinez wael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

just make an ajax version and use normal pagination..?

2009/7/2 Daniele Dellafiore <ildella@...>:

> On Mon, Jun 29, 2009 at 2:20 PM, Johannes
> Schneider<mailings@...> wrote:
>> Thanks for that hint.
>> Do you know how many images wicket-slides/SmoothGallery support? I will
>> have galleries with thousands of pictures...
>
> I do not know how many images it supports but I remember it was quite
> slow to load one hundred images.
> Anyway, send all images to the client in one shot doesn't sound
> reasonable to me.
>
> I am addressing this issue in the next weeks, if you have some ideas
> we should start talking about some possible implementation.
>
> --
> Daniele Dellafiore
> http://blog.ildella.net
> http://twitter.com/ildella
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Slideshow

by Daniele Dellafiore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yep, that was my idea too even if this force me to introduce
supplementary navigations link outside the Slideshow. This may result
confusing for the user and they will not be as cool as normal
smoothgallery controls.

Anyway, is a cheap and effective solution so probably I go with this,
and I Will try to have a look in the SG forum for people having this
issue.

On Fri, Jul 3, 2009 at 2:05 PM, nino martinez
wael<nino.martinez.wael@...> wrote:

> just make an ajax version and use normal pagination..?
>
> 2009/7/2 Daniele Dellafiore <ildella@...>:
>> On Mon, Jun 29, 2009 at 2:20 PM, Johannes
>> Schneider<mailings@...> wrote:
>>> Thanks for that hint.
>>> Do you know how many images wicket-slides/SmoothGallery support? I will
>>> have galleries with thousands of pictures...
>>
>> I do not know how many images it supports but I remember it was quite
>> slow to load one hundred images.
>> Anyway, send all images to the client in one shot doesn't sound
>> reasonable to me.
>>
>> I am addressing this issue in the next weeks, if you have some ideas
>> we should start talking about some possible implementation.
>>
>> --
>> Daniele Dellafiore
>> http://blog.ildella.net
>> http://twitter.com/ildella
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>



--
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Slideshow

by nino martinez wael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Replying inline..

2009/7/4 Daniele Dellafiore <ildella@...>:
> yep, that was my idea too even if this force me to introduce
> supplementary navigations link outside the Slideshow. This may result
> confusing for the user and they will not be as cool as normal
> smoothgallery controls.
No this is not what I meant, I meant that you should integrate with
ajax.. So for example if you have a max of 100 img loaded at one time,
when the user scrolls near image number 80 or so, then request some
more images.. so it should be seamless and not visible to the user..
So thats what I meant. You can use normal pagination for this.. It's
just a matter of integrating with ajax, and if SmoothGallery supports
something like this.

>
> Anyway, is a cheap and effective solution so probably I go with this,
> and I Will try to have a look in the SG forum for people having this
> issue.
>
> On Fri, Jul 3, 2009 at 2:05 PM, nino martinez
> wael<nino.martinez.wael@...> wrote:
>> just make an ajax version and use normal pagination..?
>>
>> 2009/7/2 Daniele Dellafiore <ildella@...>:
>>> On Mon, Jun 29, 2009 at 2:20 PM, Johannes
>>> Schneider<mailings@...> wrote:
>>>> Thanks for that hint.
>>>> Do you know how many images wicket-slides/SmoothGallery support? I will
>>>> have galleries with thousands of pictures...
>>>
>>> I do not know how many images it supports but I remember it was quite
>>> slow to load one hundred images.
>>> Anyway, send all images to the client in one shot doesn't sound
>>> reasonable to me.
>>>
>>> I am addressing this issue in the next weeks, if you have some ideas
>>> we should start talking about some possible implementation.
>>>
>>> --
>>> Daniele Dellafiore
>>> http://blog.ildella.net
>>> http://twitter.com/ildella
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>
>
> --
> Daniele Dellafiore
> http://blog.ildella.net
> http://twitter.com/ildella
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...