@Override
public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {
super.encodeBegin(facesContext, uiComponent);
AUIRow auiRow = (AUIRow) uiComponent;
ResponseWriter responseWriter = facesContext.getResponseWriter();
responseWriter.startElement(StringPool.DIV, uiComponent);
String id = uiComponent.getClientId(facesContext);
responseWriter.writeAttribute(StringPool.ID, id, null);
StringBuilder classNames = new StringBuilder();
classNames.append("row");
if (auiRow.isFluid()) {
classNames.append("-fluid");
}
String cssClass = auiRow.getCssClass();
if ((cssClass != null) && (cssClass.length() > 0)) {
classNames.append(StringPool.SPACE);
classNames.append(cssClass);
}
String styleClass = auiRow.getStyleClass();
if ((styleClass != null) && (styleClass.length() > 0)) {
classNames.append(StringPool.SPACE);
classNames.append(styleClass);
}