The test page is rather simple, I will paste it here:
TestPage.java:
package com.pmease.quickbuild.test;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.behavior.HeaderContributor;
import org.apache.wicket.markup.html.IHeaderContributor;
import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.AbstractReadOnlyModel;
public class TestPage extends WebPage {
private int count;
public TestPage() {
final WebMarkupContainer container = new
WebMarkupContainer("container");
container.setOutputMarkupId(true);
add(container);
Label label = new Label("count", new AbstractReadOnlyModel() {
public Object getObject() {
return count;
}
});
container.add(label);
container.add(new AjaxLink("link") {
public void onClick(AjaxRequestTarget target) {
count ++;
target.addComponent(container);
}
});
add(new HeaderContributor(new IHeaderContributor() {
public void renderHead(IHeaderResponse response) {
response.renderOnLoadJavascript("Wicket.Ajax.registerPostCallHandler(function(){alert('ajax');});");
}
}));
}
}
TestPage.html:
<html>
<head>
<title>Test</title>
</head>
<body>
<div wicket:id="container">
<div wicket:id="count"></div>
<a wicket:id="link">link</a>
</div>
</body>
</html>
Thanks for your time.
Robin
Matej Knopp <[EMAIL PROTECTED]> wrote: Apache mailing list doesn't support
attachments. You need to create
JIRA issue and attachethe quickstart there.
-Matej
On Sun, Apr 13, 2008 at 4:12 AM, Matthew Young wrote:
> Where is the attachment?
>
--
Resizable and reorderable grid components.
http://www.inmethod.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]