Re: Detaching and ModalWindow causes race condition

2009-07-08 Thread Johan Compagner
Dont share models between pages if possible. This is also a problem if 1 or both of them is serialized and then read back in, then you suddenly have 2 instances because pages are not serialized as one thing. On 03/07/2009, Martijn Dashorst wrote: > In our apps we (wrongfully IMO) make heavily

Re: Detaching and ModalWindow causes race condition

2009-07-08 Thread Juan Carlos Garcia M.
;>>> > (i.e. let resource requests through the barrier, but not both >>>> requests >>>> > to the calling page and the modalwindow page) >>>> >  - would it work to set a client side flag when the ModalWindow is >>>> > requested, that disab

Re: Detaching and ModalWindow causes race condition

2009-07-08 Thread Juan Carlos Garcia M.
; requested, that disables wicket-ajax for the current window to happen >>> > (preventing the onblur to trigger Ajax), and is reset when the >>> > ModalWindow is rendering in the client? >>> >  - render the modalwindow page in the current pagemap instead of a new >>> > one (would make refresh behavior pretty weird I think) >>

Re: Detaching and ModalWindow causes race condition

2009-07-04 Thread Per Lundholm
Oh, that is a good one. You could make it a modal window. After a while that window (I assume) would get to contain more and more settings. Then all of a sudden, the last setting you added will really make statistics take a very long time. Since the user probably can't foresee that, you wish to co

Re: Detaching and ModalWindow causes race condition

2009-07-04 Thread Eyal Golan
Per, I see what you're saying and I have a question. How would you implement (UI concern) a setting page? What I mean is, suppose I have a page that shows some statistics. The statistics can be set by the user. We implemented a link / button that opens up a modal window to select the statistics. Ho

Re: Detaching and ModalWindow causes race condition

2009-07-04 Thread Per Lundholm
Sorry Martijn but you are so ahead of me that I can't even follow the suggestion you make. However, I just can support you on not using modal windows. We have a back office application written in Swing that use modal windows a lot and it is just getting worse by each feature added. Modal windows

Detaching and ModalWindow causes race condition

2009-07-03 Thread Martijn Dashorst
In our apps we (wrongfully IMO) make heavily use of ModalWindow (our users seem to like them). We ran into an issue/race condition where we have shared a model between the calling page and the ModalWindow. We have an autocomplete textfield with an onblur handler attached. This onblur handler is tri