File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes f:facet  & f:view tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "f:facet  & f:view tag" Watch "f:facet  & f:view tag" New topic
Author

f:facet & f:view tag

pjoisha
Ranch Hand

Joined: Mar 06, 2001
Posts: 123
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

Thanks,
PJ
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 103
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

Thanks,
PJ


Prashanth,

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.


Kito D. Mann
Author of JSF in Actionwww.JSFCentral.com - JSF FAQ, news, and info
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: f:facet & f:view tag
 
Similar Threads
Richfaces Scrollable Datatable with filtermethod not working
JSF Chrome
Jsf tiles problem
how to remember the value in h:commandLink inside a h:datatable
how to access values in session from javascript