public class SelectedRowsCommandButtonRenderer extends AbstractButtonRenderer {
@Override
public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
super.encodeBegin(context, component);
SelectedRowsCommandButtonComponent selectedRowsCommandButton = (SelectedRowsCommandButtonComponent) component;
ResponseWriter writer = context.getResponseWriter();
Integer minimum = selectedRowsCommandButton.getMinimum();
writer.writeAttribute("minimum", minimum, "minimum");
Integer maximum = selectedRowsCommandButton.getMaximum();
if (maximum != null) {
writer.writeAttribute("maximum", maximum, "maximum");
}
UIData data = getTargetUIData(selectedRowsCommandButton);