Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>&lt;!--/*--&gt;&lt;![CDATA[/*&gt;&lt;!--*/\n</code> String that's messing with KnockoutJS is defined in Wicket's <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket/1.4.4/org/apache/wicket/util/string/JavascriptUtils.java#40" rel="nofollow">JavascriptUtils</a>. Take a look at its <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket/1.4.4/org/apache/wicket/util/string/JavascriptUtils.java#142" rel="nofollow">writeJavascript()</a> method. </p> <p>It will be inconditionally appending this prefix/suffix to every header contribution made by means of <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket/1.4.10/org/apache/wicket/markup/html/internal/HeaderResponse.java#226" rel="nofollow">HeaderResponse.renderJavascript()</a> or <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket/1.4.10/org/apache/wicket/markup/html/internal/HeaderResponse.java#306" rel="nofollow">HeaderResponse.renderOnEventJavascript()</a>. </p> <p>I've never had to change this, but this behavior seems quite invariable, Wicket doesn't seem to allow you to specify a custom HeaderResponse class for your application so you can override the use of JavascriptUtils.</p> <p>How are you contributing js? Is it dynamically generated at page construction time? If you contributed your javascript with <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket/1.4.10/org/apache/wicket/markup/html/internal/HeaderResponse.java#203" rel="nofollow">HeaderContributor.renderJavascriptReference()</a> you would probably sort this out, although this might no be suitable to you.</p> <p>Not quite related, but <a href="http://apache-wicket.1842946.n4.nabble.com/Inline-Javascript-comments-td2133928.html" rel="nofollow">this discussion</a> at the Apache Wicket Users List might be indicating that the real issue here is with KnockoutJS.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload