Seems like the issue at
https://issues.apache.org/jira/browse/WICKET-3427lingers. I'm on
Wicket 1.5.4.

To replicate, here's what I'm working with:

public class MyPage extends BasePage {
  private final WebMarkupContainer container = new
WebMarkupContainer("container");
  private Label channelScript = new Label("channelPlaceHolder",
"channelMessages();");

  public MyPage() {
    add(container);
    AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() {
      @Override
      protected void respond(AjaxRequestTarget target) {
        channelScript.setOutputMarkupId(true);
        channelScript.setEscapeModelStrings(false);
        target.add(channelScript);
      }
    };
    add(container.behave);
  }
}

html
------
<body>
  <script wicket:id="channelPlaceHolder" type="text/javascript">
    var wcall = wicketAjaxGet('
http://localhost:8888/channelservice?token=dashboard_cid',
onSuccessHandler, onFailureHandler, null, "5|s");

    function onSuccessHandler() { alert('success'); }
    function onFailurehandler() { alert('channel service request failed'); }
  </script>
</body>

-- 
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde

Reply via email to