Lecture 5 - Facelets + Data Tables Flashcards
1
Q
What is a Facelet?
A
A view handler for faces, replaces JSP.
2
Q
To use Facelet tags, what namespace declaration is needed?
A
xmlns:ui=”jakarta.faces.facelets”
3
Q
what does ui:include do?
A
Includes contents from other xhtml pages (think of ejs)
Typically used in ui:insert tags
4
Q
What is a facelet template and how do we use it?
A
an xhtml page that uses ui:insert and ui:include tags.
NOTE: ui:composition is used both to define the template and utilize it
ui:composition will load in the template.
ui:define tags adds replacements for template’s ui:insert tags.
5
Q
What are does ui:decorate do?
A
Creates a wrapper around HTML