By convention, the namespace for our custom components will always be
xmlns:ezcomp="http://java.sun.com/jsf/composite/ezcomp" . This is why it is
important not to override the default folder where our component will be placed, as
doing so breaks this convention. NetBeans provides code completion for our custom
composite components, just like it does for standard components.
In our application, we created a simple managed bean named addressBean. It is a
simple managed bean with a few properties and corresponding getters and setters,
therefore it is not shown (it is part of this chapter's code download). We use this
bean as the value of the managedBean attribute of our component. We also used an
addressType of "Home", this value will be rendered as a header for our address
After deploying and running our application, we can see our component in action:
As we can see, creating JSF 2.0 composite components with NetBeans is a breeze.