You should check your Wicket version. It looks like you compiled your
code against a different version of Wicket then what you include in
your webapp. Also check for double classpath entries.

Eelco

On 2/18/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> What may be wrong with these code
>
> public class MyAjaxPage extends WebPage {
> private int count = 0;
> public MyAjaxPage(){
>  add(counter = new Label("counter", String.valueOf(count)));
>
>  add(new AjaxLink("ajlink") {
>             public void onClick(AjaxRequestTarget target) {
>                 // Increment count
>                 count++;
>                 RequestCycle rc = getRequestCycle();
>                 rc.setRequestTarget(new
> ComponentRequestTarget(counter));
>                 target.respond(rc);
>
>             }
>
>         });
> }
>
> Anyway, it did not even initialize cuz, tomcat returned
>
> java.lang.NoSuchMethodError:
> wicket.ajax.markup.html.AjaxLink.add(Lwicket/behavior/IBehavior;)Lwicket/Component;
> wicket.ajax.markup.html.AjaxLink.<init>(AjaxLink.java:52)
> wicket.ajax.markup.html.AjaxLink .<init>(AjaxLink.java:39)
> net.cowblock.developer.models.NewDeveloper$5.<init>(NewDeveloper.java:147)
> net.cowblock.developer.models.NewDeveloper.<init>(NewDeveloper.java:147)
> ...
>
> any light?
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to