O'Reilly logo

Visualforce Developer's Guide by W.A.Chamil Madusanka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using component facets

The <apex:facet> component is used to specify content in an area of a Visualforce page and it provides information about the data in the parent component. For example, we can use a facet component in the header or footer of a <apex:dataTable>. We can override the default facet of a Visualforce component by using the <apex:facet> component. The advantages and disadvantages of the facet component are as follows with an example:

  • The <apex:facet> component cannot be used directly in Apex; it must be a child component of another Visualforce component. We can use that in a dynamic component.
  • Facets only allow a single child within the start and close tags.
  • The following is an example of the <apex:facet> component that is used with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required