Hi I am inserting javascript code like this: StringBuffer config = new StringBuffer();
config.append("<script language=\"JavaScript\">\n"); config.append("function onLoad() { getValue(); setTimeout(\"onRefresh();\","+ns.getAutoRefreshSecs()*1000+"); }\n"); config.append("function onRefresh(){\n"); config.append("document.getElementById('hiddenVar').value = document.getElementById('textString').value;\n"); config.append("window.location.reload(); }\n"); config.append("function getValue() {\n"); config.append("document.getElementById('textString').value = document.getElementById('hiddenVar').value; }\n"); config.append("</script>\n"); /*open to activate JS*/ add(new StringHeaderContributor(config.toString())); and receive an error in log file: http-6789-2 ERROR html.WebPage - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ http-6789-2 ERROR html.WebPage - You probably forgot to add a <body> or <header> tag to your markup since no Header Container was found but components where found which want to write to the <head> section. <script language="JavaScript"> function removeBlur(checked) { if(checked) { document.getElementById('login_button').disabled = false; } else { document.getElementById('login_button').disabled = true; } } </script> although my html file contains a <head> tag, and the javascript code actually appears in the rendered page (when I look at the source of the page). any idea? Thanks,Eyal. -- View this message in context: http://www.nabble.com/inserting-javascript-from-java-to-html-file-tp20212650p20212650.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]