Hi, what is the difference between composite:renderFacet and composite:insertFacet? I am not very clear even though there is an explanation in stackoverflow.
Let me use an example of Chapter 9 from Core JSF book:
I changed the composite:renderFacet into composite:insertFacet
If we use renderFacet for the login composite, the heading is displayed.
If use use insertFacet for the login composite, the heading is not displayed.
What is the difference between renderFacet and insertFacet?
posted 1 year ago
One more example I tried is to add a data table to the composite component from the book:
A composite is basically a custom control, and while I've been unable to do as much as I'd like with them thanks to working with obsolete applications, I think that they're mostly used where you define the custom control in a separate XML file.
And no, forms don't have facets. Facets generally define parameters to a JSF-unique control (such as a dataTable or panelGrid) and commonly are used where an element can have multiple child facets. The "h" namespace for JSF maps legacy HTML controls and HTML controls don't have facet-like behavior.
An IDE is no substitute for an Intelligent Developer.