TaggedText msg = new TaggedText(
this.messageSource.getMessage("user.available.username", null, "Available", LocaleContextHolder.getLocale()),
TaggedText.Tag.SPAN);
msg.addAttribute("class", "okMessage");
ReplaceContentAction action = new ReplaceContentAction("username.validation", msg);
response.addAction(action);
} else {
TaggedText msg = new TaggedText(
this.messageSource.getMessage("user.unavailable.username", null, "Not Available", LocaleContextHolder.getLocale()),
TaggedText.Tag.SPAN);
msg.addAttribute("class", "warnMessage");
ReplaceContentAction action = new ReplaceContentAction("username.validation", msg);
response.addAction(action);
}
return response;
}