}
getInputEl().addStyleName(invalidStyle);
if ("side".equals(messageTarget)) {
if (errorIcon == null) {
errorIcon = new WidgetComponent(getImages().getInvalid().createImage());
Element p = el().getParent().dom;
errorIcon.render(p);
errorIcon.setHideMode(HideMode.VISIBILITY);
errorIcon.hide();
errorIcon.setStyleAttribute("display", "block");