getUtils().encodeAttributesFromArray(context, component, new String[]{"style"});
}
@Override
protected void doEncodeChildren(final ResponseWriter writer, FacesContext context, UIComponent component) throws IOException {
final AbstractCarousel repeater = (AbstractCarousel) component;
if (repeater.getValue() != null) {
try {
DataVisitor visitor = new DataVisitor() {
public DataVisitResult process(FacesContext context, Object rowKey, Object argument) {
repeater.setRowKey(context, rowKey);
if (repeater.isRowAvailable()) {
if (repeater.getChildCount() > 0) {
try {
writer.startElement(HtmlConstants.DIV_ELEM, null);
writer.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE, "rf-crl-sl", "class");
for (UIComponent child : repeater.getChildren()) {
child.encodeAll(context);
}
writer.endElement(HtmlConstants.DIV_ELEM);
} catch (IOException e) {
e.printStackTrace();
}
}
}
return DataVisitResult.CONTINUE;
}
};
repeater.walk(context, visitor, null);
} finally {
repeater.setRowKey(context, null);
}
} else {
for (UIComponent child : component.getChildren()) {
writer.startElement(HtmlConstants.DIV_ELEM, null);
writer.writeAttribute(HtmlConstants.CLASS_ATTRIBUTE, "rf-crl-sl", "class");