0

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

1 Answer 1

1

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.

3
  • I know the things you are write above, but I still don't understand how to use it. I think that abbreviations "cc.attrs" and "cc.clientId" assume that there is some java class for component, behind the scene. I want to know, if it is possible to override/extend it in such way that "cc.myFunc" will be available? Nov 23, 2010 at 11:26
  • Thank you. However it are not good news. One of the important features of using facelts together with JSF2 is that the developer do less configuration work. The things that you wrote mean that if I want complicated component I still need to create component class, renderer class and taglib. Ohhh. Nov 24, 2010 at 7:54
  • That's the caveat if you need a (over)complicated component.
    – BalusC
    Nov 24, 2010 at 10:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.