Examples of prependJavascript()


Examples of org.apache.wicket.ajax.AjaxRequestTarget.prependJavascript()

    CometdJavascriptBehavior behave = new CometdJavascriptBehavior(channel, javascriptMethod, listener);
    component.add(behave);
    final AjaxRequestTarget target = AjaxRequestTarget.get();
    if (target != null)
    {
      target.prependJavascript(behave.getSubscriberScript().toString());
    }
  }

}
View Full Code Here

Examples of org.apache.wicket.ajax.AjaxRequestTarget.prependJavascript()

    getRepeater().add(yuiPanel);

    AjaxRequestTarget target = AjaxRequestTarget.get();
    if (target != null) {
      String createDiv = "(function(){var c=document.createElement('div');c.id='%s';Wicket.$('%s').appendChild(c)})();";
      target.prependJavascript(String.format(createDiv, yuiPanel.getMarkupId(), getMarkupId()));
      target.addComponent(yuiPanel);
      // TODO: find out why javascript of yuiPanel's header contributor
      // fails during the AJAX update in FireFox, works fine in IE.
    }
View Full Code Here

Examples of org.apache.wicket.ajax.AjaxRequestTarget.prependJavaScript()

        // if this component is being repainted by ajax, directly, we
        // must destroy Select2 so it removes
        // its elements from DOM

        target.prependJavaScript(JQuery.execute("$('#%s').select2('destroy');", getJquerySafeMarkupId()));
      }
    }
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.