Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7664193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:14:35+00:00 2026-05-31T14:14:35+00:00

We use composite components inside other components in our project. Everything works just fine

  • 0

We use composite components inside other components in our project. Everything works just fine on JBoss 7.1.0, but on JBoss 7.1.1 we get errors like this:

No handlers found for exception javax.faces.view.facelets.TagException: 
/resources/components/my/bigComponent.xhtml @21,47 <my:nestedComponent> 
Tag Library supports namespace: http://java.sun.com/jsf/composite/components/my, 
but no tag was defined for name: nestedComponent

We tried the solution suggested in this JBoss community thread, but it changed nothing to our problem (seams we’re not the only one in this case, and the solution may not work because we’re also in a ui:define tag from a template file).

Here our two components:

The nesting:

<!DOCTYPE html PUBLIC ...>
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:cc="http://java.sun.com/jsf/composite"
  xmlns:my="http://java.sun.com/jsf/composite/components/my" >

<cc:interface componentType="...">
    <h:panelGroup>
        <cc:attribute name="someAttribute" />
    </h:panelGroup>
</cc:interface>

<cc:implementation>
     <my:nestedComponent content="a text" />
</cc:implementation>
</html>

The nested:

<!DOCTYPE html PUBLIC ...>
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:cc="http://java.sun.com/jsf/composite">

<cc:interface>
    <cc:attribute name="content" />
</cc:interface>

<cc:implementation>
    <h:outputText value="#{cc.attrs.content}" />
</cc:implementation>

</html>

Is it a regression? Are we doing something wrong ? In the 1st link, the suggested solution implies in the nesting component something like this:

<composite:interface>
    <composite:facet name="greet1"/>
    <composite:facet name="greet2"/>
</composite:interface>
<composite:implementation>
    <lib:greet1 name="Stan" />
    <lib:greet2 name="Silvert" />
</composite:implementation>

What are this composite:facet without any composite:renderFacet for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:14:36+00:00Added an answer on May 31, 2026 at 2:14 pm

    Valentinx in this thread found a workaround.

    The idea is to put the faulty namespace declarations on the <composite:implementation> itself, so

    <!DOCTYPE html PUBLIC ...>
    <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:my="http://java.sun.com/jsf/composite/components/my" >
    <cc:interface />
    <cc:implementation>
         <my:nestedComponent content="a text" />
    </cc:implementation>
    </html>
    

    becomes

    <!DOCTYPE html PUBLIC ...>
    <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:cc="http://java.sun.com/jsf/composite" >
    <cc:interface />
    <cc:implementation xmlns:my="http://java.sun.com/jsf/composite/components/my">
         <my:nestedComponent content="a text" />
    </cc:implementation>
    </html>
    

    (notice the <cc:implementation xmlns:my="http://java.sun.com/jsf/composite/components/my"> tag)

    This works like a charm!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I use id of DataTable Component (Primefaces 2.2.1) inside Composite Component in
Is it possible to update child components of a composite component just by specifying
I just dont get it: If I want my composite component to insert children,
I'm just starting to use the composite application libraries for WPF. In my shell
I'm creating composite control, which has two other components that rely on each other.
I'm not sure how to use composite key. My Categories table has CategoryId (PK,FK),
I am learning java. I am trying to use composite design pattern. I am
In a game i'm programming, I use a composite object for all entities within
use this website a lot but first time posting. My program creates a number
Use case: I've just entered insert mode, and typed some text. Now I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.