Originally posted by Prashanth Joisha: Can someone comment on usefulness of <f:facet> tag. Is this responsible for inserting the <thead> HTML tags when used with <h anelGrid>?
Also, why do we need to surround most of our jsp/html code with f:view tags
A facet is a special subordinate component, sort of like a child component. The idea is that any givne component, like HtmlPanelGrid, might utilize facets for specific things, like headers or footers. Currently, HtmlDataTable and UIColumn, which represents child columns, also use facets for headers and footers. The actual rendering, which for HtmlPanelGrid and HtmlDataTable, are <thead> and <tfoot> elements, but that could change depending on the component and the specific facet name.
Does that help?
As far a <f:view> goes, this tag basically begins creation of the Faces component tree (UIViewRoot). If you didn't use it, there would be no root componet for the view. It's only required if you're using JSF components in the page.