Re: New Window/Tab Scope
Hi, in my Application I need an Window/Tab-Scope to store data which is only relevant for the current window/tab. So I tried what Johan said: I made an override of "createPageMap()" in the SecondLevelCacheSessionStore an wrapped the SecondLevelCachePageMap with my own IPageMap. Now want to put my Wrapper-Pagemap in a ThreadLocal-Variable, so that I can access it like the Session with a static "get()". In the SecondLevelCacheSessionStore I made an override on "onBeginRequest(Request request)" where I got the PageMap-Name from the request end then get the PageMap for this name. But this is not my Wrapper-PageMap, it is the the SecondLevelCachePageMap which put in the Request-Attributes by "dirty()" from the PageMap-Implementation. How can I put my Wrapper-PageMap in a ThreadLocal-Variable, so that I can access in any Page of my Wicket-Application? Thanks for any help, Benjamin On Wed, Jun 4, 2008 at 4:01 PM, Johan Compagner wrote: > it can be done i guess.. > Turn on the multi window support/check in the settings. > > then extend: SecondLevelCacheSessionStore > > override createPageMap() > > now the bad thing is that you need to do super call to create it because > that api is not really open > > But do a super call. And wrap it in your own IPageMap impl where you also > store youre stuff > and redirect all other calls to the pagemap > > i think this should work.. > > johan > > > On Wed, Jun 4, 2008 at 4:33 PM, Igor Vaynberg > wrote: > > > nothing right now because its not implemented yet. in the future you > > will have access to a Window class and be able to subclass it to store > > your own data, just like you do with Session now... > > > > -igor > > > > On Wed, Jun 4, 2008 at 7:29 AM, geke wrote: > > > > > > Hi, > > > > > > I need a scope for every new window/tab, where I can put some data. > > > I read, that is in the wishlist for wicket 1.5, but are there any best > > > practices or suggestions? > > > > > > Kind regards, > > > > > > Georg > > > -- > > > View this message in context: > > http://www.nabble.com/New-Window-Tab-Scope-tp17648112p17648112.html > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >
Re: New Window/Tab Scope
it can be done i guess.. Turn on the multi window support/check in the settings. then extend: SecondLevelCacheSessionStore override createPageMap() now the bad thing is that you need to do super call to create it because that api is not really open But do a super call. And wrap it in your own IPageMap impl where you also store youre stuff and redirect all other calls to the pagemap i think this should work.. johan On Wed, Jun 4, 2008 at 4:33 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > nothing right now because its not implemented yet. in the future you > will have access to a Window class and be able to subclass it to store > your own data, just like you do with Session now... > > -igor > > On Wed, Jun 4, 2008 at 7:29 AM, geke <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I need a scope for every new window/tab, where I can put some data. > > I read, that is in the wishlist for wicket 1.5, but are there any best > > practices or suggestions? > > > > Kind regards, > > > > Georg > > -- > > View this message in context: > http://www.nabble.com/New-Window-Tab-Scope-tp17648112p17648112.html > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: New Window/Tab Scope
nothing right now because its not implemented yet. in the future you will have access to a Window class and be able to subclass it to store your own data, just like you do with Session now... -igor On Wed, Jun 4, 2008 at 7:29 AM, geke <[EMAIL PROTECTED]> wrote: > > Hi, > > I need a scope for every new window/tab, where I can put some data. > I read, that is in the wishlist for wicket 1.5, but are there any best > practices or suggestions? > > Kind regards, > > Georg > -- > View this message in context: > http://www.nabble.com/New-Window-Tab-Scope-tp17648112p17648112.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New Window/Tab Scope
Hi, I need a scope for every new window/tab, where I can put some data. I read, that is in the wishlist for wicket 1.5, but are there any best practices or suggestions? Kind regards, Georg -- View this message in context: http://www.nabble.com/New-Window-Tab-Scope-tp17648112p17648112.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]