Re: [Wicket-user] multiple rendering at same time

2007-02-15 Thread Eelco Hillenius
On 2/14/07, Scott Lusebrink [EMAIL PROTECTED] wrote: Would a WebResource not lock the rest of the application? Not if it is defined as a shared resource. If it is component bound - like Images use resources - it is. Ajax is not a possibility due to security requirements. This page is already

Re: [Wicket-user] multiple rendering at same time

2007-02-14 Thread Ryan Holmes
It sounds like Scott just wants to allow the user to cancel the slow-loading page by navigating to another page. If his database request happened in a LoadableDetachableModel rather than a page constructor, would that allow a new page to be rendered while the old one is still trying to

Re: [Wicket-user] multiple rendering at same time

2007-02-14 Thread Eelco Hillenius
On 2/14/07, Ryan Holmes [EMAIL PROTECTED] wrote: It sounds like Scott just wants to allow the user to cancel the slow-loading page by navigating to another page. Or at least don't show a blank page that'll provoke the user to hit refresh ten times in a row. If his database request happened

Re: [Wicket-user] multiple rendering at same time

2007-02-14 Thread Nino Wael
. februar 2007 10:32 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] multiple rendering at same time It sounds like Scott just wants to allow the user to cancel the slow-loading page by navigating to another page. If his database request happened in a LoadableDetachableModel rather

Re: [Wicket-user] multiple rendering at same time

2007-02-14 Thread Eelco Hillenius
EG if page A have long loading time page b,c,d will just have to wait. So if you utilize a worker thread then you will be able to cancel the thread and go to the other page if you want to. Not all requests are synced on the session though. Notably requests to shared resources aren't, while

Re: [Wicket-user] multiple rendering at same time

2007-02-14 Thread Eelco Hillenius
Im not on the dev list, I guess I can look it up on nabble? Yep: http://www.nabble.com/stateless-behaviors-tf3226344.html Or subscribe to it! See http://incubator.apache.org/wicket/incubator.html Eelco - Take Surveys.

Re: [Wicket-user] multiple rendering at same time

2007-02-14 Thread Ryan Holmes
Thanks, that really clears it up. At first glance, synchronizing pages on the session seems a little overly restrictive (Scott's issue being a case in point), but of course *not* synchronizing on the session is an infamous source of frustrating bugs, even in frameworks with much simpler

Re: [Wicket-user] multiple rendering at same time

2007-02-14 Thread Scott Lusebrink
Would a WebResource not lock the rest of the application? Ajax is not a possibility due to security requirements. This page is already inside its own frame, I pretty much need a unsynchronized page. Can you provide an example of how to use a webResource to display a table Scott

[Wicket-user] multiple rendering at same time

2007-02-13 Thread Scott Lusebrink
I've realized that wicket will only render one page at a time, at least it will not run the constructor and onAttach methods of 2 pages at the same time. This is a major bottle neck on applications with large user bases. My app is experiencing problems because database calls are being run in

Re: [Wicket-user] multiple rendering at same time

2007-02-13 Thread Matej Knopp
This is only true for one session. Locking means that only one page of each session will be processed at the same time. This way we ensure that the session state remains consisted. This is not affecting the number of concurrent users. -Matej Scott Lusebrink wrote: I've realized that wicket

Re: [Wicket-user] multiple rendering at same time

2007-02-13 Thread Scott Lusebrink
the situation is that I have a page which takes a LONG time to get data for and until that page has complete the back button or navigating to any other page wont work. is there any way to prevent this On 2/13/07, Scott Lusebrink [EMAIL PROTECTED] wrote: I've realized that wicket will only

Re: [Wicket-user] multiple rendering at same time

2007-02-13 Thread Martijn Dashorst
On 2/14/07, Scott Lusebrink [EMAIL PROTECTED] wrote: the situation is that I have a page which takes a LONG time to get data for and until that page has complete the back button or navigating to any other page wont work. is there any way to prevent this Let the data in the page be aggregated

Re: [Wicket-user] multiple rendering at same time

2007-02-13 Thread Igor Vaynberg
poller: http://papernapkin.org/pastebin/view/4610 example usage http://papernapkin.org/pastebin/view/4611 -igor On 2/13/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 2/14/07, Scott Lusebrink [EMAIL PROTECTED] wrote: the situation is that I have a page which takes a LONG time to get

Re: [Wicket-user] multiple rendering at same time

2007-02-13 Thread Eelco Hillenius
On 2/13/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 2/14/07, Scott Lusebrink [EMAIL PROTECTED] wrote: the situation is that I have a page which takes a LONG time to get data for and until that page has complete the back button or navigating to any other page wont work. is there any

Re: [Wicket-user] multiple rendering at same time

2007-02-13 Thread Eelco Hillenius
public class FooExport extends WebResource { public static class Initializer implements IInitializer { public void init(Application application) { SharedResources res = application.getSharedResources(); res.add(foodata, new FooExport()); } } And the initializer

Re: [Wicket-user] multiple rendering at same time

2007-02-13 Thread Johan Compagner
But what does that lock matter for you page if that page takes a long time? You 'loose' the database connections for all other things anyway. Or does that session have different windows and is displaying more then 1 page at the same time in tabs/frames or browser windows? johan On 2/13/07,