How does one debug this issue. I can trace the request on the first pass into
the update method shown below - subsequent request do not show up in there.I am
setting setOutputMarkupId(true) on the panel that needs to be updated by
Ajax.ERROR [http-8080-2] (RequestCycle.java:1043) - markupId cannot be
emptyjava.lang.IllegalArgumentException: markupId cannot be empty at
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:217) at
wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:201)The AJAX
debugger shows the following - INFO: INFO: Initiating
Ajax GET request on
/vvaves/vvaves/?wicket:interface=:0:P1:rows:1:cols:2:P2:AJAXLink::IBehaviorListener&wicket:behaviorId=0&random=0.7030357510732387INFO:
Invoking pre-call handler(s)...ERROR: Received Ajax response with code:
500INFO: Invoking post-call handler(s)...INFO: Invoking failure
handler(s)...When I repeat the same request the second and subsequent times -
ERROR [http-8080-2] (RequestCycle.java:1043) - This method can only be called
on a component that has already been added to its
parent.java.lang.IllegalStateException: This method can only be called on a
component that has already been added to its parent. at
wicket.Component.replaceWith(Component.java:1857) at
com.vvaves.web.ContentPanel$1$1.update(P1.java:83) at
com.vvaves.web.FeedPanel$1.onClick(P2.java:28) at
wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:66)INFO: Initiating
Ajax GET request on
/vvaves/vvaves/?wicket:interface=:0:ContentPanel:rows:1:cols:2:FeedPanel:SimulatorLink::IBehaviorListener&wicket:behaviorId=0&random=0.7268855594995411INFO:
Invoking pre-call handler(s)...ERROR: Received Ajax response with code:
500INFO: Invoking post-call handler(s)...INFO: Invoking failure
handler(s)...code in the update method -final P3
origp3(...);origp3.setoutputmarkupid(true);item.add(new P2(...)
{ public void update(AjaxRequestTarget target)
{ P3 p3 = new P3(...);
p3.setOutputMarkupId(true);
origp3.replaceWith(p3); if(target != null){
target.addComponent(origp3);
} } } );p2.javaabstract public class P2(...){
public P2(...){ add(new AjaxLink("AjaxLink") { public
void onClick(AjaxRequestTarget t) {
P2.this.update(target) } }); } protected abstract void
update(AjaxRequestTarget t);}thx
_________________________________________________________________
Don't get caught with egg on your face. Play Chicktionary!
http://club.live.com/chicktionary.aspx?icid=chick_wlmailtextlink
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user