Hello Stefan, the transient property is for the state saving.
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/component/StateHolder.html#isTransient() You can skip the comments with following context-param <context-param> <param-name>facelets.SKIP_COMMENTS</param-name> <param-value>true</param-value> </context-param> Just added a section about facelets to the Tobago faq. An other note: Your facelets should not contain any <body> or <html> tags or DOCTYPE declaration. Tobago writes these tags to the html page. Regards Bernd Stefan Hedtfeld schrieb: > Hi Bernd, > > as far as I'm concerned this change fixes my original layout problems. > > I'm still not sure if the root of the problem is somewhere else. Why do > you get the comments as children, anyway? And I'm not sure if the > transient property is the correct one to decide if the child component > should be ignored. > > I haven't filed a bug so far, shall I do this and attach the fix to it? > > Regards, > > Stefan. > > Stefan Hedtfeld schrieb: >> Hi Bernd, >> >> I guess I found a problem in LayoutUtil (not sure if the root of the >> problem is another one). When adding the children the lines containing >> comments are considered components. If you skip these (using >> child.isTransient()) the layout seems to be correct (I will have to >> test with a more complex example). >> >> See the attached diff for LayoutUtil. >> >> Regards, >> >> Stefan. >> > >

