Here is what I have: JDK 1.6, Wicket 1.4.7, WiQuery 1.0, Tomcat 6.0.24

I downloaded wiquery and put its jar on the classpath. 

I copied the Hello World sample from 
http://code.google.com/p/wiquery/wiki/QuickStart

Here is my code:

HTML:-----------------------------

<html>
    <head>
        <title>WiQuery Quickstart Archetype Homepage</title>
    </head>
    <body>
        <button wicket:id="open-dialog">Open dialog !</button>

        <p wicket:id="dialog">
                Hello world, yes we can !
        </p>
    </body>
</html>

Java:--------------------------------

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.form.Button;

import org.odlabs.wiquery.core.events.Event;
import org.odlabs.wiquery.core.events.MouseEvent;
import org.odlabs.wiquery.core.events.WiQueryEventBehavior;
import org.odlabs.wiquery.core.javascript.JsScope;
import org.odlabs.wiquery.ui.dialog.Dialog;

public class WiqueryDialog extends WebPage {

    public WiqueryDialog() {

        final Dialog dialog = new Dialog("dialog");
        add(dialog);

        Button button = new Button("open-dialog");
        button.add(new WiQueryEventBehavior(new Event(MouseEvent.DBLCLICK) {

            @Override
            public JsScope callback() {
                return JsScope.quickScope(dialog.open().render());
            }

        }));
        add(button);

    }
}

------------------------------

I did not get any compiler error and I can run the wicket app and see the html 
in the browser. However, I did not get any respone when clicking the button.


What I did is wrong?


Thanks.


-------------- here is generated html ------------------

<html>
    <head>
        <title>WiQuery Quickstart Archetype Homepage</title>
    <script type="text/javascript" 
src="resources/org.odlabs.wiquery.core.commons.CoreJavaScriptResourceReference/jquery/jquery-1.3.2.js"></script>
<script type="text/javascript" 
src="resources/org.odlabs.wiquery.core.commons.WiqueryGeneratedJavaScriptResourceReference/1269950176687wiquery-gen.js"></script>
</head>
    <body>
        <button name="open-dialog" id="open_dialog1">Open dialog !</button>

        <p id="dialog2">
                Hello world, yes we can !
        </p>
    </body>
</html>



      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to