On my wicket page I have a link that opens a second page in another tab/new window.
<a href="/MySecondPage" target="_blank">Click here for second window</a>
These windows are meant to be used in parallel (e.g. in a two-monitor-environment). But I don't want to spread out different menu entries over both screens, so I want all menu entries to stay on MyFirstPage
, even if they should influence MySecondPage
only.
My ultimate goal is to click a menu entry on MyFirstPage
that results in displaying a new Component
on MySecondPage
. Is this even possible? How can I obtain a java-reference of MySecondPage
inside MyFirstPage
or establish some other sort of communication?
Everything I found while researching only applied to modal windows or Wicket 1.4, but MySecondPage
is not modal.
Maybe wicket's event bus is an option, see: http://code.google.com/p/wicket-guide/downloads/list - Chapter 15.3 Wicket events infrastructure
You could send the event in
MyFirstPage
, receive it in yourSession
orApplication
and there send it toMySecondPage
.Session
andApplication
implementIEventSink
: http://ci.apache.org/projects/wicket/apidocs/6.x/org/apache/wicket/event/IEventSink.html