/** * Get the markup Id on attach */ protected void onBeforeRender() { super.onBeforeRender(); javaScriptId = getMarkupId(); String js = "\n<script type=\"text/javascript\">" + getJavaScriptComponentInitializationScript() + "\n</script>\n"; add(new StringHeaderContributor(js)); } }
/** * Get the markup Id on attach */ protected void onBeforeRender() { super.onBeforeRender(); javaScriptId = getMarkupId(); String js = "\n<script type=\"text/javascript\">" + getJavaScriptComponentInitializationScript() + "\n</script>\n"; add(new StringHeaderContributor(js)); }