You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Edgar Merino <do...@gmail.com> on 2015/06/04 09:16:37 UTC

Dynamic resources and ajax calls

Hello:

     I'm having a problem with dynamic resources and ajax calls, I have 
a panel that includes some image thumbnails, these thumbnails may take 
between 5 and 30 seconds, if a user attemps to cancel loading of this 
images and loading another panel (e.g. replacing the panel), an 
exception will be thrown and cause a 500 response for each of the 
resources that failed to load. The logged error message is as follows:

ERROR - DefaultExceptionMapper     - Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Component 
'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias' has 
been removed from page.

     I understand the error, but I don't know what to do to avoid it, 
has anyone got a similar problem and found a solution?


Thanks in advance.
Edgar Merino.

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


Re: Dynamic resources and ajax calls

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi,


On Thu, Jun 4, 2015 at 9:43 AM, Edgar Merino <do...@gmail.com> wrote:

> Hello, thanks for the response, what do you mean exactly by delegate to
> the mounted resource? I'm thinking I can mount the images resource, and
> simply reference them using their URI (is this what you mean by delating
> the call to the mounted resource?), so even if users replace the panel,
> image loading won't be cancelled, since it will still be waiting for an
> existing resource (instead of the problem I'm having now, where the
> resource vanishes before being transfered to the user).
>
Yes I mean exactly that. I think it would be a lots faster because your
panel will render immediately and issue several request to generate images
(in many requests threads instead of just one). I bet you ill see a
performance boost.


>
> I believe this should avoid 3. in your response, what do you think?


It is always safe to have 3.... I will prevent all kind of component not
found issues if your users are too quick with their mouses :-)


>
>
> On 04/06/15 02:26, Ernesto Reinaldo Barreiro wrote:
>
>> Hi,
>>
>> I see two options....
>>
>> 1- Block the screen while images are being loaded so user has to wait.
>>
>> or
>>
>> 1- Mount a resource serving images thumbnails.
>> 2- Panel showing those thumbnails just delegates into mounted resource.
>> So,
>> image generation will be faster and panel replacement will be more fluid
>> 3- Also block UI while replacing panel: if your users are too fast you
>> might encounter the same problem again.
>>
>>
>> On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino <do...@gmail.com> wrote:
>>
>>  Hello:
>>>
>>>      I'm having a problem with dynamic resources and ajax calls, I have a
>>> panel that includes some image thumbnails, these thumbnails may take
>>> between 5 and 30 seconds, if a user attemps to cancel loading of this
>>> images and loading another panel (e.g. replacing the panel), an exception
>>> will be thrown and cause a 500 response for each of the resources that
>>> failed to load. The logged error message is as follows:
>>>
>>> ERROR - DefaultExceptionMapper     - Unexpected error occurred
>>> org.apache.wicket.WicketRuntimeException: Component
>>> 'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias' has
>>> been removed from page.
>>>
>>>      I understand the error, but I don't know what to do to avoid it, has
>>> anyone got a similar problem and found a solution?
>>>
>>>
>>> Thanks in advance.
>>> Edgar Merino.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro

Re: Dynamic resources and ajax calls

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi,

On Thu, Jun 4, 2015 at 10:10 AM, Martin Grigorov <mg...@apache.org>
wrote:

> On Thu, Jun 4, 2015 at 11:04 AM, Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
> > @Martin,
> >
> > Yes.... I mean exactly that... And if you are clever enough you can do
> some
> > optimizations like caching generated thumbnails :-)
> >
>
> I am not so clever so I'd let the browser and the CDN (if there is such) do
> that do for me ;-)
> I'll just make sure the path to the image is stable and the respective
> response headers are set.
>
Fair points! Don't believe you about not being so clever  :-)

Cheers


>
> >
> > On Thu, Jun 4, 2015 at 10:00 AM, Martin Grigorov <mg...@apache.org>
> > wrote:
> >
> > > I think Ernesto suggests to use something like the mounted resources
> > > explained at
> > > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> > > This way the browser will be able to make several requests to the
> server
> > > because there is no locking at the server side as with Page instances.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> > > On Thu, Jun 4, 2015 at 10:43 AM, Edgar Merino <do...@gmail.com>
> > wrote:
> > >
> > > > Hello, thanks for the response, what do you mean exactly by delegate
> to
> > > > the mounted resource? I'm thinking I can mount the images resource,
> and
> > > > simply reference them using their URI (is this what you mean by
> > delating
> > > > the call to the mounted resource?), so even if users replace the
> panel,
> > > > image loading won't be cancelled, since it will still be waiting for
> an
> > > > existing resource (instead of the problem I'm having now, where the
> > > > resource vanishes before being transfered to the user).
> > > >
> > > > I believe this should avoid 3. in your response, what do you think?
> > > >
> > > >
> > > > On 04/06/15 02:26, Ernesto Reinaldo Barreiro wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> I see two options....
> > > >>
> > > >> 1- Block the screen while images are being loaded so user has to
> wait.
> > > >>
> > > >> or
> > > >>
> > > >> 1- Mount a resource serving images thumbnails.
> > > >> 2- Panel showing those thumbnails just delegates into mounted
> > resource.
> > > >> So,
> > > >> image generation will be faster and panel replacement will be more
> > fluid
> > > >> 3- Also block UI while replacing panel: if your users are too fast
> you
> > > >> might encounter the same problem again.
> > > >>
> > > >>
> > > >> On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino <do...@gmail.com>
> > > wrote:
> > > >>
> > > >>  Hello:
> > > >>>
> > > >>>      I'm having a problem with dynamic resources and ajax calls, I
> > > have a
> > > >>> panel that includes some image thumbnails, these thumbnails may
> take
> > > >>> between 5 and 30 seconds, if a user attemps to cancel loading of
> this
> > > >>> images and loading another panel (e.g. replacing the panel), an
> > > exception
> > > >>> will be thrown and cause a 500 response for each of the resources
> > that
> > > >>> failed to load. The logged error message is as follows:
> > > >>>
> > > >>> ERROR - DefaultExceptionMapper     - Unexpected error occurred
> > > >>> org.apache.wicket.WicketRuntimeException: Component
> > > >>> 'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias'
> > has
> > > >>> been removed from page.
> > > >>>
> > > >>>      I understand the error, but I don't know what to do to avoid
> it,
> > > has
> > > >>> anyone got a similar problem and found a solution?
> > > >>>
> > > >>>
> > > >>> Thanks in advance.
> > > >>> Edgar Merino.
> > > >>>
> > > >>>
> ---------------------------------------------------------------------
> > > >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > >>> For additional commands, e-mail: users-help@wicket.apache.org
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro

Re: Dynamic resources and ajax calls

Posted by Edgar Merino <do...@gmail.com>.
Thank you both, I'll work on this per your suggestions.


On 04/06/15 03:10, Martin Grigorov wrote:
> On Thu, Jun 4, 2015 at 11:04 AM, Ernesto Reinaldo Barreiro <
> reiern70@gmail.com> wrote:
>
>> @Martin,
>>
>> Yes.... I mean exactly that... And if you are clever enough you can do some
>> optimizations like caching generated thumbnails :-)
>>
> I am not so clever so I'd let the browser and the CDN (if there is such) do
> that do for me ;-)
> I'll just make sure the path to the image is stable and the respective
> response headers are set.
>
>
>> On Thu, Jun 4, 2015 at 10:00 AM, Martin Grigorov <mg...@apache.org>
>> wrote:
>>
>>> I think Ernesto suggests to use something like the mounted resources
>>> explained at
>>> http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
>>> This way the browser will be able to make several requests to the server
>>> because there is no locking at the server side as with Page instances.
>>>
>>> Martin Grigorov
>>> Wicket Training and Consulting
>>> https://twitter.com/mtgrigorov
>>>
>>> On Thu, Jun 4, 2015 at 10:43 AM, Edgar Merino <do...@gmail.com>
>> wrote:
>>>> Hello, thanks for the response, what do you mean exactly by delegate to
>>>> the mounted resource? I'm thinking I can mount the images resource, and
>>>> simply reference them using their URI (is this what you mean by
>> delating
>>>> the call to the mounted resource?), so even if users replace the panel,
>>>> image loading won't be cancelled, since it will still be waiting for an
>>>> existing resource (instead of the problem I'm having now, where the
>>>> resource vanishes before being transfered to the user).
>>>>
>>>> I believe this should avoid 3. in your response, what do you think?
>>>>
>>>>
>>>> On 04/06/15 02:26, Ernesto Reinaldo Barreiro wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I see two options....
>>>>>
>>>>> 1- Block the screen while images are being loaded so user has to wait.
>>>>>
>>>>> or
>>>>>
>>>>> 1- Mount a resource serving images thumbnails.
>>>>> 2- Panel showing those thumbnails just delegates into mounted
>> resource.
>>>>> So,
>>>>> image generation will be faster and panel replacement will be more
>> fluid
>>>>> 3- Also block UI while replacing panel: if your users are too fast you
>>>>> might encounter the same problem again.
>>>>>
>>>>>
>>>>> On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino <do...@gmail.com>
>>> wrote:
>>>>>   Hello:
>>>>>>       I'm having a problem with dynamic resources and ajax calls, I
>>> have a
>>>>>> panel that includes some image thumbnails, these thumbnails may take
>>>>>> between 5 and 30 seconds, if a user attemps to cancel loading of this
>>>>>> images and loading another panel (e.g. replacing the panel), an
>>> exception
>>>>>> will be thrown and cause a 500 response for each of the resources
>> that
>>>>>> failed to load. The logged error message is as follows:
>>>>>>
>>>>>> ERROR - DefaultExceptionMapper     - Unexpected error occurred
>>>>>> org.apache.wicket.WicketRuntimeException: Component
>>>>>> 'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias'
>> has
>>>>>> been removed from page.
>>>>>>
>>>>>>       I understand the error, but I don't know what to do to avoid it,
>>> has
>>>>>> anyone got a similar problem and found a solution?
>>>>>>
>>>>>>
>>>>>> Thanks in advance.
>>>>>> Edgar Merino.
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>
>>
>> --
>> Regards - Ernesto Reinaldo Barreiro
>>


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


Re: Dynamic resources and ajax calls

Posted by Martin Grigorov <mg...@apache.org>.
On Thu, Jun 4, 2015 at 11:04 AM, Ernesto Reinaldo Barreiro <
reiern70@gmail.com> wrote:

> @Martin,
>
> Yes.... I mean exactly that... And if you are clever enough you can do some
> optimizations like caching generated thumbnails :-)
>

I am not so clever so I'd let the browser and the CDN (if there is such) do
that do for me ;-)
I'll just make sure the path to the image is stable and the respective
response headers are set.


>
> On Thu, Jun 4, 2015 at 10:00 AM, Martin Grigorov <mg...@apache.org>
> wrote:
>
> > I think Ernesto suggests to use something like the mounted resources
> > explained at
> > http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> > This way the browser will be able to make several requests to the server
> > because there is no locking at the server side as with Page instances.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Thu, Jun 4, 2015 at 10:43 AM, Edgar Merino <do...@gmail.com>
> wrote:
> >
> > > Hello, thanks for the response, what do you mean exactly by delegate to
> > > the mounted resource? I'm thinking I can mount the images resource, and
> > > simply reference them using their URI (is this what you mean by
> delating
> > > the call to the mounted resource?), so even if users replace the panel,
> > > image loading won't be cancelled, since it will still be waiting for an
> > > existing resource (instead of the problem I'm having now, where the
> > > resource vanishes before being transfered to the user).
> > >
> > > I believe this should avoid 3. in your response, what do you think?
> > >
> > >
> > > On 04/06/15 02:26, Ernesto Reinaldo Barreiro wrote:
> > >
> > >> Hi,
> > >>
> > >> I see two options....
> > >>
> > >> 1- Block the screen while images are being loaded so user has to wait.
> > >>
> > >> or
> > >>
> > >> 1- Mount a resource serving images thumbnails.
> > >> 2- Panel showing those thumbnails just delegates into mounted
> resource.
> > >> So,
> > >> image generation will be faster and panel replacement will be more
> fluid
> > >> 3- Also block UI while replacing panel: if your users are too fast you
> > >> might encounter the same problem again.
> > >>
> > >>
> > >> On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino <do...@gmail.com>
> > wrote:
> > >>
> > >>  Hello:
> > >>>
> > >>>      I'm having a problem with dynamic resources and ajax calls, I
> > have a
> > >>> panel that includes some image thumbnails, these thumbnails may take
> > >>> between 5 and 30 seconds, if a user attemps to cancel loading of this
> > >>> images and loading another panel (e.g. replacing the panel), an
> > exception
> > >>> will be thrown and cause a 500 response for each of the resources
> that
> > >>> failed to load. The logged error message is as follows:
> > >>>
> > >>> ERROR - DefaultExceptionMapper     - Unexpected error occurred
> > >>> org.apache.wicket.WicketRuntimeException: Component
> > >>> 'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias'
> has
> > >>> been removed from page.
> > >>>
> > >>>      I understand the error, but I don't know what to do to avoid it,
> > has
> > >>> anyone got a similar problem and found a solution?
> > >>>
> > >>>
> > >>> Thanks in advance.
> > >>> Edgar Merino.
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >>> For additional commands, e-mail: users-help@wicket.apache.org
> > >>>
> > >>>
> > >>>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>

Re: Dynamic resources and ajax calls

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
@Martin,

Yes.... I mean exactly that... And if you are clever enough you can do some
optimizations like caching generated thumbnails :-)

On Thu, Jun 4, 2015 at 10:00 AM, Martin Grigorov <mg...@apache.org>
wrote:

> I think Ernesto suggests to use something like the mounted resources
> explained at
> http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
> This way the browser will be able to make several requests to the server
> because there is no locking at the server side as with Page instances.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Jun 4, 2015 at 10:43 AM, Edgar Merino <do...@gmail.com> wrote:
>
> > Hello, thanks for the response, what do you mean exactly by delegate to
> > the mounted resource? I'm thinking I can mount the images resource, and
> > simply reference them using their URI (is this what you mean by delating
> > the call to the mounted resource?), so even if users replace the panel,
> > image loading won't be cancelled, since it will still be waiting for an
> > existing resource (instead of the problem I'm having now, where the
> > resource vanishes before being transfered to the user).
> >
> > I believe this should avoid 3. in your response, what do you think?
> >
> >
> > On 04/06/15 02:26, Ernesto Reinaldo Barreiro wrote:
> >
> >> Hi,
> >>
> >> I see two options....
> >>
> >> 1- Block the screen while images are being loaded so user has to wait.
> >>
> >> or
> >>
> >> 1- Mount a resource serving images thumbnails.
> >> 2- Panel showing those thumbnails just delegates into mounted resource.
> >> So,
> >> image generation will be faster and panel replacement will be more fluid
> >> 3- Also block UI while replacing panel: if your users are too fast you
> >> might encounter the same problem again.
> >>
> >>
> >> On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino <do...@gmail.com>
> wrote:
> >>
> >>  Hello:
> >>>
> >>>      I'm having a problem with dynamic resources and ajax calls, I
> have a
> >>> panel that includes some image thumbnails, these thumbnails may take
> >>> between 5 and 30 seconds, if a user attemps to cancel loading of this
> >>> images and loading another panel (e.g. replacing the panel), an
> exception
> >>> will be thrown and cause a 500 response for each of the resources that
> >>> failed to load. The logged error message is as follows:
> >>>
> >>> ERROR - DefaultExceptionMapper     - Unexpected error occurred
> >>> org.apache.wicket.WicketRuntimeException: Component
> >>> 'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias' has
> >>> been removed from page.
> >>>
> >>>      I understand the error, but I don't know what to do to avoid it,
> has
> >>> anyone got a similar problem and found a solution?
> >>>
> >>>
> >>> Thanks in advance.
> >>> Edgar Merino.
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>



-- 
Regards - Ernesto Reinaldo Barreiro

Re: Dynamic resources and ajax calls

Posted by Martin Grigorov <mg...@apache.org>.
I think Ernesto suggests to use something like the mounted resources
explained at
http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
This way the browser will be able to make several requests to the server
because there is no locking at the server side as with Page instances.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Jun 4, 2015 at 10:43 AM, Edgar Merino <do...@gmail.com> wrote:

> Hello, thanks for the response, what do you mean exactly by delegate to
> the mounted resource? I'm thinking I can mount the images resource, and
> simply reference them using their URI (is this what you mean by delating
> the call to the mounted resource?), so even if users replace the panel,
> image loading won't be cancelled, since it will still be waiting for an
> existing resource (instead of the problem I'm having now, where the
> resource vanishes before being transfered to the user).
>
> I believe this should avoid 3. in your response, what do you think?
>
>
> On 04/06/15 02:26, Ernesto Reinaldo Barreiro wrote:
>
>> Hi,
>>
>> I see two options....
>>
>> 1- Block the screen while images are being loaded so user has to wait.
>>
>> or
>>
>> 1- Mount a resource serving images thumbnails.
>> 2- Panel showing those thumbnails just delegates into mounted resource.
>> So,
>> image generation will be faster and panel replacement will be more fluid
>> 3- Also block UI while replacing panel: if your users are too fast you
>> might encounter the same problem again.
>>
>>
>> On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino <do...@gmail.com> wrote:
>>
>>  Hello:
>>>
>>>      I'm having a problem with dynamic resources and ajax calls, I have a
>>> panel that includes some image thumbnails, these thumbnails may take
>>> between 5 and 30 seconds, if a user attemps to cancel loading of this
>>> images and loading another panel (e.g. replacing the panel), an exception
>>> will be thrown and cause a 500 response for each of the resources that
>>> failed to load. The logged error message is as follows:
>>>
>>> ERROR - DefaultExceptionMapper     - Unexpected error occurred
>>> org.apache.wicket.WicketRuntimeException: Component
>>> 'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias' has
>>> been removed from page.
>>>
>>>      I understand the error, but I don't know what to do to avoid it, has
>>> anyone got a similar problem and found a solution?
>>>
>>>
>>> Thanks in advance.
>>> Edgar Merino.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Dynamic resources and ajax calls

Posted by Edgar Merino <do...@gmail.com>.
Hello, thanks for the response, what do you mean exactly by delegate to 
the mounted resource? I'm thinking I can mount the images resource, and 
simply reference them using their URI (is this what you mean by delating 
the call to the mounted resource?), so even if users replace the panel, 
image loading won't be cancelled, since it will still be waiting for an 
existing resource (instead of the problem I'm having now, where the 
resource vanishes before being transfered to the user).

I believe this should avoid 3. in your response, what do you think?

On 04/06/15 02:26, Ernesto Reinaldo Barreiro wrote:
> Hi,
>
> I see two options....
>
> 1- Block the screen while images are being loaded so user has to wait.
>
> or
>
> 1- Mount a resource serving images thumbnails.
> 2- Panel showing those thumbnails just delegates into mounted resource. So,
> image generation will be faster and panel replacement will be more fluid
> 3- Also block UI while replacing panel: if your users are too fast you
> might encounter the same problem again.
>
>
> On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino <do...@gmail.com> wrote:
>
>> Hello:
>>
>>      I'm having a problem with dynamic resources and ajax calls, I have a
>> panel that includes some image thumbnails, these thumbnails may take
>> between 5 and 30 seconds, if a user attemps to cancel loading of this
>> images and loading another panel (e.g. replacing the panel), an exception
>> will be thrown and cause a 500 response for each of the resources that
>> failed to load. The logged error message is as follows:
>>
>> ERROR - DefaultExceptionMapper     - Unexpected error occurred
>> org.apache.wicket.WicketRuntimeException: Component
>> 'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias' has
>> been removed from page.
>>
>>      I understand the error, but I don't know what to do to avoid it, has
>> anyone got a similar problem and found a solution?
>>
>>
>> Thanks in advance.
>> Edgar Merino.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>


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


Re: Dynamic resources and ajax calls

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi,

I see two options....

1- Block the screen while images are being loaded so user has to wait.

or

1- Mount a resource serving images thumbnails.
2- Panel showing those thumbnails just delegates into mounted resource. So,
image generation will be faster and panel replacement will be more fluid
3- Also block UI while replacing panel: if your users are too fast you
might encounter the same problem again.


On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino <do...@gmail.com> wrote:

> Hello:
>
>     I'm having a problem with dynamic resources and ajax calls, I have a
> panel that includes some image thumbnails, these thumbnails may take
> between 5 and 30 seconds, if a user attemps to cancel loading of this
> images and loading another panel (e.g. replacing the panel), an exception
> will be thrown and cause a 500 response for each of the resources that
> failed to load. The logged error message is as follows:
>
> ERROR - DefaultExceptionMapper     - Unexpected error occurred
> org.apache.wicket.WicketRuntimeException: Component
> 'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias' has
> been removed from page.
>
>     I understand the error, but I don't know what to do to avoid it, has
> anyone got a similar problem and found a solution?
>
>
> Thanks in advance.
> Edgar Merino.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro