if (token instanceof FixedLayoutToken) {
int width = 0;
final List<UIColumn> columns = getRendererdColumns();
if (!columns.isEmpty()) {
if (i < columns.size()) {
UIColumn column = columns.get(i);
if (column instanceof UIColumnSelector) {
LayoutInformationProvider renderer
= ComponentUtil.getRenderer(facesContext, column);
if (renderer == null) {
LOG.warn("can't find renderer for " + column.getClass().getName());
renderer = ComponentUtil.getRenderer(facesContext, UIPanel.COMPONENT_FAMILY, RENDERER_TYPE_OUT);
}
width = renderer.getFixedWidth(facesContext, column);
} else {
for (UIComponent component : (List<UIComponent>) column.getChildren()) {
LayoutInformationProvider renderer
= ComponentUtil.getRenderer(facesContext, component);
width += renderer.getFixedWidth(facesContext, component);
}
}