Measure height = layoutContainer.getCurrentHeight();
Measure oldWidth = layoutContainer.getWidth();
Measure oldHeight = layoutContainer.getHeight();
layoutContainer.setWidth(width);
layoutContainer.setHeight(height);
new LayoutContext(layoutContainer).layout();
layoutContainer.setWidth(oldWidth);
layoutContainer.setHeight(oldHeight);
}
encodeAll(facesContext, component);
} catch (IOException e) {