You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sergio García <sg...@denodo.com> on 2009/02/10 19:22:59 UTC

Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

Well, i will try to explain the situation as good as i can. 

We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query each
one. One of the ALLP is a ListView with an ALLP into each row (each row is a
different query). This enviroment works very well.

The problem comes with a ALLP with a Jfreechart image inside. When wicket
loads the image, i think it changes the state of the page from "domready" to
"load", and this makes that the rest of the ALLP don't load properly. I fix
it making a new implementation of ALLP for that image. The new version
substitutes the call of
response.renderOnDomReadyJavascript(getCallbackScript().toString()); to a
new call of 
response.renderOnLoadJavascript(getCallbackScript().toString());. With the
new call the image loads at the end.

But i still have a problem. The rows do not load because they will load at
end and changing the javascript event from render to load does not fix
anything. 

Any ideas?
-- 
View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21939285.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

Posted by Felix Cachaldora <in...@gmail.com>.
Thanks for making this example. I've tried it and it fails as expected.
Let's see if it serves to find the bug.

-Félix


Sergio García wrote:
> 
> 
> 
> igor.vaynberg wrote:
>> 
>> create a quickstart and attach it to a jira issue so we can take a look.
>> 
>> -igor
>> 
>> 
>> 
> 
> I've created a quickstart with page and panel code.+
>  https://issues.apache.org/jira/browse/WICKET-2100
> https://issues.apache.org/jira/browse/WICKET-2100 
> 
> 
> Thankyou so much
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21993005.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

Posted by Sergio García <sg...@denodo.com>.


igor.vaynberg wrote:
> 
> create a quickstart and attach it to a jira issue so we can take a look.
> 
> -igor
> 
> 
> 

I've created a quickstart with page and panel code.+
https://issues.apache.org/jira/browse/WICKET-2100
https://issues.apache.org/jira/browse/WICKET-2100 


Thankyou so much
-- 
View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21981558.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

Posted by Igor Vaynberg <ig...@gmail.com>.
create a quickstart and attach it to a jira issue so we can take a look.

-igor

On Thu, Feb 12, 2009 at 2:51 AM, Felix Cachaldora <in...@gmail.com> wrote:
>
> Thanks for yout answer but I've tried an it didn't work.
> I've tried another test. Instead of using an ALLP I used a Panel. It's even
> worst it doesn't load any of the ALLP. So I think there may be a problem
> when using ALLP and DynamicImageResource in the same page.
>
> Any clues?
>
>
> igor.vaynberg wrote:
>>
>> try calling image.setversioned(false)
>>
>> -igor
>>
>> On Wed, Feb 11, 2009 at 8:29 AM, Felix Cachaldora <in...@gmail.com>
>> wrote:
>>>
>>> I am also stuck in the same situation. I have a page with several
>>> AjaxLazyLoadPanels(ALLP) with one of them loading a DynamicImageResource.
>>> If
>>> the ALLP contaning the DynamicImageResource gets loaded before some of
>>> the
>>> other ALLP the remaining ones do not load. It's like if that ALLP (the
>>> one
>>> with the DynamicImageResource) changed the state of the page. Examing the
>>> ajax response from the server I can see that those ALLP that fail get
>>> this
>>> response: <ajaxResponse></ajaxResponse>
>>> I don't what's going on.
>>> Has anyone any idea?
>>>
>>>
>>> Sergio García wrote:
>>>>
>>>> Well, i will try to explain the situation as good as i can.
>>>>
>>>> We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query
>>>> each one. One of the ALLP is a ListView with an ALLP into each row (each
>>>> row is a different query). This enviroment works very well.
>>>>
>>>> The problem comes with a ALLP with a Jfreechart image inside. When
>>>> wicket
>>>> loads the image, i think it changes the state of the page from
>>>> "domready"
>>>> to "load", and this makes that the rest of the ALLP don't load properly.
>>>> I
>>>> fix it making a new implementation of ALLP for that image. The new
>>>> version
>>>> substitutes the call of
>>>> response.renderOnDomReadyJavascript(getCallbackScript().toString()); to
>>>> a
>>>> new call of
>>>> response.renderOnLoadJavascript(getCallbackScript().toString());. With
>>>> the
>>>> new call the image loads at the end.
>>>>
>>>> But i still have a problem. The rows do not load because they will load
>>>> at
>>>> end and changing the javascript event from render to load does not fix
>>>> anything.
>>>>
>>>> Any ideas?
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21958242.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21973743.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

Posted by Felix Cachaldora <in...@gmail.com>.
Thanks for yout answer but I've tried an it didn't work. 
I've tried another test. Instead of using an ALLP I used a Panel. It's even
worst it doesn't load any of the ALLP. So I think there may be a problem
when using ALLP and DynamicImageResource in the same page.

Any clues?


igor.vaynberg wrote:
> 
> try calling image.setversioned(false)
> 
> -igor
> 
> On Wed, Feb 11, 2009 at 8:29 AM, Felix Cachaldora <in...@gmail.com>
> wrote:
>>
>> I am also stuck in the same situation. I have a page with several
>> AjaxLazyLoadPanels(ALLP) with one of them loading a DynamicImageResource.
>> If
>> the ALLP contaning the DynamicImageResource gets loaded before some of
>> the
>> other ALLP the remaining ones do not load. It's like if that ALLP (the
>> one
>> with the DynamicImageResource) changed the state of the page. Examing the
>> ajax response from the server I can see that those ALLP that fail get
>> this
>> response: <ajaxResponse></ajaxResponse>
>> I don't what's going on.
>> Has anyone any idea?
>>
>>
>> Sergio García wrote:
>>>
>>> Well, i will try to explain the situation as good as i can.
>>>
>>> We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query
>>> each one. One of the ALLP is a ListView with an ALLP into each row (each
>>> row is a different query). This enviroment works very well.
>>>
>>> The problem comes with a ALLP with a Jfreechart image inside. When
>>> wicket
>>> loads the image, i think it changes the state of the page from
>>> "domready"
>>> to "load", and this makes that the rest of the ALLP don't load properly.
>>> I
>>> fix it making a new implementation of ALLP for that image. The new
>>> version
>>> substitutes the call of
>>> response.renderOnDomReadyJavascript(getCallbackScript().toString()); to
>>> a
>>> new call of
>>> response.renderOnLoadJavascript(getCallbackScript().toString());. With
>>> the
>>> new call the image loads at the end.
>>>
>>> But i still have a problem. The rows do not load because they will load
>>> at
>>> end and changing the javascript event from render to load does not fix
>>> anything.
>>>
>>> Any ideas?
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21958242.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21973743.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

Posted by Sergio García <sg...@denodo.com>.


igor.vaynberg wrote:
> 
> try calling image.setversioned(false)
> 
> -igor
> 
> 

Thanks for you answer but this does not solve my problem. If i have only one
jfreechart image my workaround of reimplementing ALLP solves partially the
problem. But when the grid page has two Jfreechart images, the second does
not load. When my reimplementation of ALLP calls
target.addComponent(getPage()) the second image loads but the ALLP rows that
are inside an ALLP does not load properly (sometimes no one loads and
sometimes  two or three loads). This is a very rude solution, i think, and i
accept any ideas.

I'm stuck with this :( (maybe i want to do a too fashion web page with
wicket ?)

-- 
View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21972743.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

Posted by Igor Vaynberg <ig...@gmail.com>.
try calling image.setversioned(false)

-igor

On Wed, Feb 11, 2009 at 8:29 AM, Felix Cachaldora <in...@gmail.com> wrote:
>
> I am also stuck in the same situation. I have a page with several
> AjaxLazyLoadPanels(ALLP) with one of them loading a DynamicImageResource. If
> the ALLP contaning the DynamicImageResource gets loaded before some of the
> other ALLP the remaining ones do not load. It's like if that ALLP (the one
> with the DynamicImageResource) changed the state of the page. Examing the
> ajax response from the server I can see that those ALLP that fail get this
> response: <ajaxResponse></ajaxResponse>
> I don't what's going on.
> Has anyone any idea?
>
>
> Sergio García wrote:
>>
>> Well, i will try to explain the situation as good as i can.
>>
>> We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query
>> each one. One of the ALLP is a ListView with an ALLP into each row (each
>> row is a different query). This enviroment works very well.
>>
>> The problem comes with a ALLP with a Jfreechart image inside. When wicket
>> loads the image, i think it changes the state of the page from "domready"
>> to "load", and this makes that the rest of the ALLP don't load properly. I
>> fix it making a new implementation of ALLP for that image. The new version
>> substitutes the call of
>> response.renderOnDomReadyJavascript(getCallbackScript().toString()); to a
>> new call of
>> response.renderOnLoadJavascript(getCallbackScript().toString());. With the
>> new call the image loads at the end.
>>
>> But i still have a problem. The rows do not load because they will load at
>> end and changing the javascript event from render to load does not fix
>> anything.
>>
>> Any ideas?
>>
>
> --
> View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21958242.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

Posted by Felix Cachaldora <in...@gmail.com>.
I am also stuck in the same situation. I have a page with several
AjaxLazyLoadPanels(ALLP) with one of them loading a DynamicImageResource. If
the ALLP contaning the DynamicImageResource gets loaded before some of the
other ALLP the remaining ones do not load. It's like if that ALLP (the one
with the DynamicImageResource) changed the state of the page. Examing the
ajax response from the server I can see that those ALLP that fail get this
response: <ajaxResponse></ajaxResponse>
I don't what's going on. 
Has anyone any idea?


Sergio García wrote:
> 
> Well, i will try to explain the situation as good as i can. 
> 
> We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query
> each one. One of the ALLP is a ListView with an ALLP into each row (each
> row is a different query). This enviroment works very well.
> 
> The problem comes with a ALLP with a Jfreechart image inside. When wicket
> loads the image, i think it changes the state of the page from "domready"
> to "load", and this makes that the rest of the ALLP don't load properly. I
> fix it making a new implementation of ALLP for that image. The new version
> substitutes the call of
> response.renderOnDomReadyJavascript(getCallbackScript().toString()); to a
> new call of 
> response.renderOnLoadJavascript(getCallbackScript().toString());. With the
> new call the image loads at the end.
> 
> But i still have a problem. The rows do not load because they will load at
> end and changing the javascript event from render to load does not fix
> anything. 
> 
> Any ideas?
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21958242.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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