Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Makundi
> TabbedPanel? I was talking purely about browser tabs, so let's avoid > confusion and keep TabbedPanel out of this thread. ;) > Sorry, that's our own use case we are having trouble with =) > What you are suggesting with AjaxNewWindowModifyingBehavior is more or > less what I had in mind for a

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Urbani, Edmund
TabbedPanel? I was talking purely about browser tabs, so let's avoid confusion and keep TabbedPanel out of this thread. ;) What you are suggesting with AjaxNewWindowModifyingBehavior is more or less what I had in mind for a single-page application. However in a multi-page multi-tab scenario

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Makundi
> > > > > > Both your problems are easily solveable by using the page instance as > > > "context". > > > The TabbedPanel is an instance of a Java object that is somewhere > inside > > of > > > an instance of a Page. > > > Wicket provides org.apache.wicket.ajax.AjaxNewWindowNotifyingBehavior > >

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Grigorov
On Wed, Dec 7, 2016 at 2:40 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > > What I am missing (and what my original question was referring to) is a > > per-tab context to put things. Think eg. of a page with a data table and > > some filters. The user applies filters, clicks

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Makundi
> What I am missing (and what my original question was referring to) is a > per-tab context to put things. Think eg. of a page with a data table and > some filters. The user applies filters, clicks on one of the found items > (navigating to a different page), edits, saves (sends the user back to

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Grigorov
Both your problems are easily solveable by using the page instance as "context". The TabbedPanel is an instance of a Java object that is somewhere inside of an instance of a Page. Wicket provides org.apache.wicket.ajax.AjaxNewWindowNotifyingBehavior that can be used to notify the page that it is

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Urbani, Edmund
What I am missing (and what my original question was referring to) is a per-tab context to put things. Think eg. of a page with a data table and some filters. The user applies filters, clicks on one of the found items (navigating to a different page), edits, saves (sends the user back to the

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Makundi
> Could you please expand on > "and you do not want to make custom logic to allow multi > window/tab (in browser)" ? > > How exactly Wicket prevents the "multi browser tabs/windows" ? > If all browser windows have same session then a single page application will always show same wicket

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Grigorov
Could you please expand on "and you do not want to make custom logic to allow multi window/tab (in browser)" ? How exactly Wicket prevents the "multi browser tabs/windows" ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Dec 7, 2016 at 1:37 PM, Martin

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Makundi
If one makes a single-page application that has multiple tabs (within one browser window), and you do not want to make custom logic to allow multi window/tab (in browser) management into session, it would work best if there was separate "session" for each browser tab/window inside wicket.

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Grigorov
Hi, What kind of problem exactly you try to solve there ? What kind of issues do you face ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Dec 7, 2016 at 12:07 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > This should be built into

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Makundi
This should be built into wicket core, automatic session management. Login once and enable multiple tabs and a new sub-session for each tab. If user logs out from any of the sessions, all would be invalidated. Not sure if this exists yet, but would be needed. ** Martin 2016-12-07 12:59

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Urbani, Edmund
Ok, but how do you create a session per tab? Also, I would at least need to login the authenticated user in the new session. On 12/07/2016 11:43 AM, Martin Makundi wrote: We have noticed that most robust if you can get different session for each tab because the session shares models and will

Re: Multi-tab / window support in Wicket 7.5

2016-12-07 Thread Martin Makundi
We have noticed that most robust if you can get different session for each tab because the session shares models and will easily conflict if session is not distinct for each tab. 2016-12-07 12:42 GMT+02:00 Urbani, Edmund : > Hi all, > > I have a some questions about