Skip to main content

JSF Tip #44 - Use a packaged composite component

Posted by mriem on November 21, 2013 at 11:31 AM PST

Note this blog is obsolete, see for the current blog

In the previous blog entry we set the stage on how to package a composite component in a JAR. Now we are going to use it!

Add the dependency to the POM


Use it in the page

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE html>

<html xmlns=""
        <title>Composite component</title>
        <h2>Composite component</h2>

Note the code for this sample is available as part of the Glassfish samples (see the subversion repository at

And that is it.


Related Topics >>