Package org.apache.wicket.markup.head

Examples of org.apache.wicket.markup.head.OnLoadHeaderItem


 
  @Override
  public void renderHead(Component component, IHeaderResponse response) {
    super.renderHead(component, response);
   
    OnLoadHeaderItem headerItem = OnLoadHeaderItem.forScript("Wicket.Event.add('" + component.getMarkupId() + "', '" + event + "', function(event) {\n" +
        "websocket" + component.getMarkupId() + ".send('" + event + "');}\n);");
    response.render(headerItem);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.head.OnLoadHeaderItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.