LayoutToken token = tokens.get(i);
if (token instanceof FixedLayoutToken) {
int width = 0;
if (!rendereredColumns.isEmpty()) {
if (i < rendereredColumns.size()) {
UIColumn column = rendereredColumns.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);
}
}