form.add(new AjaxSubmitLink("test") {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
((FormComponent)form.get("servicesUrl")).processInput();
String servicesUrl = (String)((FormComponent)form.get("servicesUrl")).getConvertedInput();
RuleReaderService ruleReader = getRuleReaderService(servicesUrl);
try {
List<ShortRule> rules = ruleReader.getMatchingRules(new RuleFilter());
info(new StringResourceModel(GeofencePage.class.getSimpleName() +
".connectionSuccessful", null).getObject());
} catch(Exception e) {
error(e);