Hi all,

I want to close the (help) popup with keyboard. Bud it isn't possible.
the "close" link in HelpPage deleted the content of the popup bud tthe popup 
don't be closed.
can you help me please by this problem?

Thanks !


TBEditpage.html:   //
        <td wicket:id="bmot_o" class="berechnungsmotiv"><a href="#" 
tabindex="-1" wicket:id="help">BM</a></td>

TBEditpage.java:


header.add(helpLink("help", "berechnungsmotiv"));

private AjaxLink helpLink(final String id, final String helpKey)
  {
    return HelpPage.link(id, new Model(helpKey), popupPage);
  }


HelpPage.html:
body>
<wicket:extend>
  <div id="page">
    <div class="content" wicket:id="content"></div>
    <a wicket:id = "close" href="#">close</a>
  </div>
</wicket:extend>
</body>

HelpPage.java
-------------------------------------------------------------------------
...
 public HelpPage(final String helpKey)
 {
  //Konstruktor
  String text = ...
  ...
  add(contentLabel("content", text));
  add(new PopupCloseLink("close"));
}
...
  public static AjaxLink link(final String id, final String key, final 
ModalWindow popup)
  {
    return link(id, new Model(key), popup);
  }


Reply via email to