Skip to content

Instantly share code, notes, and snippets.

@activey
Created August 12, 2013 13:15
Show Gist options
  • Save activey/6210695 to your computer and use it in GitHub Desktop.
Save activey/6210695 to your computer and use it in GitHub Desktop.
test
/**
*
*/
package com.olender.webapp.admin.pages.test;
import org.apache.wicket.markup.html.form.TextField;
import pl.doa.entity.IEntity;
import pl.doa.wicket.ui.page.EntityPage;
import pl.doa.wrapper.wicket.service.WrappedCallServiceForm;
import pl.doa.wrapper.wicket.ui.link.AbstractOutputOperator;
import pl.doa.wrapper.wicket.ui.link.WrappedCallServiceLink;
import pl.doa.wrapper.wicket.ui.link.WrappedPossibleOutput;
/**
* @author activey
*/
public class TestPage<T extends IEntity> extends EntityPage<T> {
@Override
protected void initEntityPage() throws Exception {
add(new WrappedCallServiceForm<TestInput2>("form_test", TestService.class, TestInput2.class) {
@Override
protected void initForm() throws Exception {
add(new TextField<String>("ble"));
add(new WrappedCallServiceLink("link_test") {
@Override
protected void onAfterRun(WrappedPossibleOutput possibleOutput) {
possibleOutput.when(TestOutput.class).get(new AbstractOutputOperator<TestOutput>() {
@Override
public void doGet(TestOutput type) {
System.out.println(">>> BIG >>>>> " + type.getBig());
}
});
}
});
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment