Take a look at file:///home/weber/work/jsf/jsf-1_1/javadocs/javax/faces/component/UIComponent.html and search for "facet"!
UIGridLayout layout = new UIGridLayout();
layout.setRows( "2");
layout.setColumns("1");
This is wrong! you should set rows and columns attribute to the same
values you would use at the jsp page!
in this simple case:
UIGridLayout layout = new UIGridLayout();
layout.setColumns("1*;1*");
rootPanel.getFacets().put("layout", layout);

