• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

f:facet & f:view tag

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic