/** * @param a * @return HtmlTag : LI tag containing the text separator (3 small points). */ @SuppressWarnings("unchecked") private HtmlTag makeLiText(final Application a) { HtmlTag liText = (HtmlTag) a.createComponent(HtmlTag.COMPONENT_TYPE); liText.setValue(HTML.LI_ELEM); liText.setStyle("border:none;background-color:transparent;"); HtmlOutputText text = (HtmlOutputText) a.createComponent(HtmlOutputText.COMPONENT_TYPE); text.setValueBinding( JSFAttr.VALUE_ATTR, a.createValueBinding( TagUtils.makeELExpression(getStringsVar() + "['" + TEXT_SEPARATOR_I18N_KEY + "']"))); text.setParent(liText); text.setStyleClass(TagsConfigurator.getInstance().getTextStyleClass()); liText.getChildren().add(text); return liText; }
/** * @see * org.apache.myfaces.taglib.html.ext.HtmlMessagesTag#setProperties(javax.faces.component.UIComponent) */ @Override protected void setProperties(final UIComponent component) { TagsConfigurator tagsConfigurator = TagsConfigurator.getInstance(); String styleClass = tagsConfigurator.getMessagesInfoClass(); if (styleClass != null) { setStringProperty(component, JSFAttr.INFO_CLASS_ATTR, styleClass); } styleClass = tagsConfigurator.getMessagesWarnClass(); if (styleClass != null) { setStringProperty(component, JSFAttr.WARN_CLASS_ATTR, styleClass); } styleClass = tagsConfigurator.getMessagesErrorClass(); if (styleClass != null) { setStringProperty(component, JSFAttr.ERROR_CLASS_ATTR, styleClass); } styleClass = tagsConfigurator.getMessagesFatalClass(); if (styleClass != null) { setStringProperty(component, JSFAttr.FATAL_CLASS_ATTR, styleClass); } super.setProperties(component); }