Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Children

Composite components are represented by tags. Sometimes it makes sense to allow content in the body of those tags. By default, if you put something in the body of a composite component’s tag, JSF will just ignore that content, but you can use the <composite:insertChildren/> tag in your composite component’s implementation to render the components in the body of your composite component’s tag.

For example, with our login component, it might be convenient to let page authors add anything they want to the bottom of the component. A common use case would be to add a registration link to the login component, as depicted in Figure 9–9.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint