Created
August 12, 2013 13:15
-
-
Save activey/6210695 to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
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