Hi,

I'm not sure why it stops but I see another problem in it.
There is synchronization when using the page instance, i.e. the first
Ajax call will acquire the lock on the page and all other requests
will have to wait it to release it. So the ALLPs will load
sequentially.

How to solve this? It depends on the type of data you need to load.
You can use Wicket IResource which is not locked like Page, or
Atmosphere/Native Web Sockets to push the data when ready.

On Fri, Oct 12, 2012 at 10:24 AM, Michael Zhavzharov
<[email protected]> wrote:
> Hi, all!
>
> I have a problem with list of AjaxLazyLoadingPanels. Only the first panel
> loads, but others never. It's looks like this:
> <http://apache-wicket.1842946.n4.nabble.com/file/n4652907/lazyloading.jpg>
>
> I need to load N lazyPanels, and I trying to do next:
>
> *In Java:*
>
> List components = new ArrayList();
> for (int i = 0; i < 6; i++) {
>     components.add(i);
> }
>
> add(new ListView("list", components) {
>             @Override
>             protected void populateItem(ListItem item) {
>                 item.add(new AjaxLazyLoadPanel("ajaxPanel") {
>                     @Override
>                     public Component getLazyLoadComponent(String markupId) {
>                         return new Label(markupId, "Simple Label");
>                     }
>                 });
>             }
> });
>
> *In HTML:*
>         <div wicket:id="list">
>             <div wicket:id="ajaxPanel" id="ajaxPanel" ></div>
>         </div>
>
> But this does not works.
> I tried to set every ALLP's markupId unique, but this led to the fact that
> even the first element-loaded stoped.
>
> Can somebody help me with this problem?
>
> Regards, Michael.
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Multiple-AjaxLazyLoadingPanel-s-never-load-tp4652907.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to