Igor Grinfeld
Igor Grinfeld

Reputation: 598

Is JSF2 allows Component class and facelet xhtml together?

Is it possible to use both composite component facelet (xhtml, cc.attrs and etc. ) and component class ( extended from UIComponent) in one component?

Upvotes: 0

Views: 414

Answers (1)

BalusC
BalusC

Reputation: 1108712

You cannot use Facelets composite components in JSF UI components, but you can use (custom) JSF UI components in Facelets composite components.

Composite components are a Facelets feature, not a JSF feature. The relation between JSF and Facelets is that Facelets is a view technology which is designed with JSF in mind. It's in essence the successor of JSP and by default included/supported since JSF 2.0.

Upvotes: 1

Related Questions