I have an AjaxLink
HTML: <a wicket:id="link"><img....></a>
JAVA: new AjaxLink<MyClass>("link", model){
@Override
public void onClick(AjaxRequestTarget target) {
// open a ModalWindow
}
}
That opens a ModalWindow. The ModalWindow has a Page as it#s content.
When the model window is displayed and I press the enter key, the
AjaxLink's onClick method is calles again. This results in another
ModalWindow to show up and so on.
Of course I could save the ModalWindow#s state (open or not) and do
something like
JAVA: new AjaxLink<MyClass>("link", model){
@Override
public void onClick(AjaxRequestTarget target) {
if (!windowIsOpen)
// open a ModalWindow
}
}
But isn't there a better solution? This happens only in Firefox. Not in
IE or Chrome oder Safari.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]