Hello, The past few days I've been working with wicket, trying to get to know it more. But, i've stumbled upon a problem when I tried to use an AjaxLink. The page containing the AjaxLink renders, but the javascript files (wicket-ajax.js ect.) cannot be found. Coping the URL to wicket- ajax.js in the browser results in a statuscode 404. The link is: /wicket-testapp1/welcome/resources/wicket.ajax. AbstractDefaultAjaxBehavior/wicket-ajax.js
wicket-testapp1 is indeed the name of my project. /welcome is my servlet Can anyone tell me where i went wrong and how to fix this? I've got the following code: --- package wicket.schooltime.ajax; import wicket.markup.html.WebPage; import wicket.PageParameters; import wicket.markup.html.basic.Label; import wicket.model.PropertyModel; import wicket.ajax.markup.html.AjaxLink; import wicket.ajax.*; public class Ajax extends WebPage { private int counter1 = 0; public Ajax(PageParameters parameters) { final Label c1 = new Label("counter1", new PropertyModel(this, "counter1")); add(c1); add(new AjaxLink("optellen") { public void onClick(AjaxRequestTarget target) { System.out.println("AjAX thAtS thE StUff!!"); counter1++; target.addComponent(c1); } }); } public int getCounter1() { return counter1; } } --- And in the Ajax.html file: --- <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>AJAX</title> </head> <body> <a href="#" wicket:id="optellen">[optellen]</a> <span wicket:id="counter1">label1 goes here</span> </body> </html> --- Thanks in advance, Niels Hardeman ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user