private static final String FORM_ID = "form1";
private static final List<String> EVENT_CALLBACKS = Arrays.asList(new String[]{ "ajaxsubmit", "ajaxbegin", "ajaxbeforedomupdate", "ajaxcomplete" });
@Deployment(testable = false)
public static WebArchive deployment() {
CoreDeployment deployment = new CoreDeployment(ITAjaxSubmissionCallbacks.class);
deployment.withA4jComponents();
deployment.archive().addAsWebResource(buildPage(true, true), "documentAndFormScoped.xhtml");
deployment.archive().addAsWebResource(buildPage(true, false), "formScoped.xhtml");
deployment.archive().addAsWebResource(buildPage(false, true), "documentScoped.xhtml");
return deployment.getFinalArchive();
}