"connRequestTimeout",
new PropertyModel<String>(connInstanceTO, "connRequestTimeout"));
connectorForm.add(connRequestTimeout);
// form - first tab - onchange()
location.getField().add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
private static final long serialVersionUID = -1107858522700306810L;
@Override
protected void onUpdate(final AjaxRequestTarget target) {
((DropDownChoice) location.getField()).setNullValid(false);
connInstanceTO.setLocation(location.getModelObject());
target.add(location);
connectorName.setChoices(new ArrayList<String>(
mapConnBundleTOs.get(location.getModelObject()).keySet()));
connectorName.setEnabled(true);
connectorName.getField().setModelValue(null);
target.add(connectorName);
version.setChoices(new ArrayList<String>());
version.getField().setModelValue(null);
version.setEnabled(false);
target.add(version);
properties.clear();
target.add(propertiesContainer);
}
});
connectorName.getField().add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
private static final long serialVersionUID = -1107858522700306810L;
@Override
protected void onUpdate(final AjaxRequestTarget target) {
((DropDownChoice) connectorName.getField()).setNullValid(false);
connInstanceTO.setBundleName(connectorName.getModelObject());
target.add(connectorName);
List<String> versions = new ArrayList<String>(
mapConnBundleTOs.get(location.getModelObject()).get(connectorName.getModelObject()).keySet());
version.setChoices(versions);
version.setEnabled(true);
if (versions.size() == 1) {
selectVersion(target, connInstanceTO, version, versions.get(0));
version.getField().setModelObject(versions.get(0));
} else {
version.getField().setModelValue(null);
properties.clear();
target.add(propertiesContainer);
}
target.add(version);
}
});
version.getField().add(new AjaxFormComponentUpdatingBehavior(Constants.ON_CHANGE) {
private static final long serialVersionUID = -1107858522700306810L;
@Override
protected void onUpdate(final AjaxRequestTarget target) {