Handling new tabs with @WindowScoped beans
<p>I have a CDI application using Deltaspike which uses the incredibly useful <code>@WindowScoped</code> annotation to support multiple tabs.  The scenario of the application is as follows:</p>

<ol>
<li>User selects an item from a list and clicks 'Edit'.</li>
<li>The user authenticates against object. </li>
<li>The id of the object being edited and the username of the authenticated user is stored against the window scope and is available to all the pages within the edit section of the system.</li>
<li>When the user has finished accessing this object they click finish and their session with this object is closed (<code>@WindowScoped</code> bean wiped out).</li>
</ol>

<p>If the user opens a new tab and then selects a new object to edit then everything works perfectly, since the ID and authentication details are stored against a new <code>@WindowScoped</code> object.</p>

<p>However, since there are multiple edit pages the user is also able to right click and open the link in a new tab.  This then fails because the new <code>@WindowScoped</code> bean doesn't know anything about the context in which it was created (basically the object ID and username of the previous session).</p>

<p>Is there a way using <code>@WindowScoped</code> to access the previous window scoped object?  Or is there a common way to share information between window scoped beans?</p>

<p>Thanks for any advice!</p>