Note that there are some explanatory texts on larger screens.

plurals
  1. POcan't get wiquery to work
    text
    copied!<p>So I can't get wiquery to work, and I'm not sure where to look for what is causing the problem.</p> <p>This is my pom.xml:</p> <pre><code> &lt;repository&gt; &lt;id&gt;wiquery&lt;/id&gt; &lt;name&gt;wiquery wicket components&lt;/name&gt; &lt;url&gt;http://wiquery.googlecode.com/svn/repo/&lt;/url&gt; &lt;/repository&gt; &lt;dependency&gt; &lt;groupId&gt;org.odlabs.wiquery&lt;/groupId&gt; &lt;artifactId&gt;wiquery-core&lt;/artifactId&gt; &lt;version&gt;1.5.2&lt;/version&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;groupId&gt;org.slf4j&lt;/groupId&gt; &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;groupId&gt;org.apache.wicket&lt;/groupId&gt; &lt;artifactId&gt;wicket&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.odlabs.wiquery&lt;/groupId&gt; &lt;artifactId&gt;wiquery-jquery-ui&lt;/artifactId&gt; &lt;version&gt;1.5.2&lt;/version&gt; &lt;exclusions&gt; &lt;exclusion&gt; &lt;groupId&gt;org.slf4j&lt;/groupId&gt; &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;exclusion&gt; &lt;groupId&gt;org.apache.wicket&lt;/groupId&gt; &lt;artifactId&gt;wicket&lt;/artifactId&gt; &lt;/exclusion&gt; &lt;/exclusions&gt; &lt;/dependency&gt; </code></pre> <p>Java:</p> <pre><code> DatePicker&lt;Date&gt; datePicker = new DatePicker&lt;Date&gt;("wiQueryPicker"); add(datePicker); </code></pre> <p>Html:</p> <pre><code> &lt;input type="text" wicket:id="wiQueryPicker" /&gt; </code></pre> <p>The field appears, but no datepicker is shown when the field gets focus. This is the generated html:</p> <pre><code> &lt;input type="text" id="wiQueryPickerf4" name="wiQueryPicker" value="" wicket:id="wiQueryPicker"&gt; </code></pre> <p>EDIT: In the generated markup, this script is included in the head tag:</p> <pre><code> &lt;script type="text/javascript" id="wiquery-gen-1324041797627"&gt; /*&lt;![CDATA[*/ (function($) { $(document).ready(function() { $('#wiQueryPicker20c').datepicker({}); }); })(jQuery); /*]]&gt;*/ &lt;/script&gt; </code></pre> <p>Any suggestions on what's causing the problem?</p> <p>//Olle</p>
 

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