final CheckBox overrideServiceSRS = new CheckBox("overridingServiceSRS", overrideServiceSRSModel);
add(overrideServiceSRS);
final WebMarkupContainer otherSrsContainer = new WebMarkupContainer("otherSRSContainer");
otherSrsContainer.setOutputMarkupId(true);
add(otherSrsContainer);
final TextArea srsList = new SRSListTextArea("srs", LiveCollectionModel.list(new PropertyModel(model, "resource.responseSRS")));
srsList.setOutputMarkupId(true);
srsList.setVisible(Boolean.TRUE.equals(overrideServiceSRSModel.getObject()));
otherSrsContainer.add(srsList);
overrideServiceSRS.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@Override
protected void onUpdate(AjaxRequestTarget target) {
Boolean visible = overrideServiceSRS.getConvertedInput();
srsList.setVisible(visible);
target.addComponent(otherSrsContainer);
}
});
add(new AjaxLink("skipNumberMatchedHelp") {
@Override