Another test. If we change the code like this:
//...
AjaxLink ajaxLink = new AjaxLink("ajaxLink") {
public void onClick(AjaxRequestTarget request) {
count++;
this.add(label);
request.addComponent(label);
}
};
//...
we still can not get what we want. This is the Ajax message:
*INFO: *
*INFO: *
Initiating Ajax GET request on
/wicket/mytest/?wicket:interface=:0:ajaxLink::IBehaviorListener&wicket:behaviorId=0&random=
0.17603507974667476
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (177 characters)
*INFO: *
<?xml version="1.0
" encoding="UTF-8"?><ajax-response><component id="ajaxLink_label"
<![CDATA[<span wicket:id="label"
id="ajaxLink_label">1</span>]]></component></ajax-response>
*INFO: *Response parsed. Now invoking steps...
*ERROR: *
Component with id [[ajaxLink_label]] a was not found while trying to
perform markup update. Make sure you called
component.setOutputMarkupId
(true) on the component whose markup you are trying to update.
*INFO: *Response processed successfully.
*INFO: *Invoking post-call handler(s)...
-------------------------------------------------------------------------
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