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

  • SEARCH
  • Home
  • 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 8592107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:40:39+00:00 2026-06-11T23:40:39+00:00

I created a composite component for a list of customers. I can use this

  • 0

I created a composite component for a list of customers. I can use this component in a view:

<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:p="http://primefaces.org/ui"
  xmlns:customer="http://java.sun.com/jsf/composite/components/customer">

<ui:composition template="/WEB-INF/templates/template.xhtml">

  <ui:define name="caption">
    <h:outputText value="#{msg.customerListHeading}" />
  </ui:define>

  <ui:define name="content">

    <ui:decorate template="/WEB-INF/templates/sidebox.xhtml">
      <ui:param name="title" value="#{msg.customerListHeading}" />

      <p:outputPanel>
        <h:form id="customerList">

          <customer:list list="#{customerControllerBean.list}">
            <f:facet name="headerButton">
              <h:button outcome="customerdetail.jsf"
                value="#{msg.newButtonLabel}" />
            </f:facet>
            <f:facet name="rowButton">
              <h:commandButton value="#{msg.deleteButtonLabel}"
                action="#{customerControllerBean.delete(customer)}" />
              <h:button outcome="customerdetail.jsf?id=#{customer.id}"
                value="#{msg.editButtonLabel}" />
            </f:facet>
          </customer:list>

        </h:form>
      </p:outputPanel>
    </ui:decorate>

  </ui:define>

</ui:composition>

</html>

But when i use the component in a very similar view i get the following error:

<customer:list> Tag Library supports namespace: http://java.sun.com/jsf/composite/components/customer, but no tag was defined for name: list

The problematic view looks as follows:

<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:p="http://primefaces.org/ui"
  xmlns:customer="http://java.sun.com/jsf/composite/components/customer">

<ui:composition template="/WEB-INF/templates/template.xhtml">

  <ui:define name="caption">
    <h:outputText value="#{msg.customerListHeading}" />
  </ui:define>

  <ui:define name="content">

    <ui:decorate template="/WEB-INF/templates/sidebox.xhtml">
      <ui:param name="title" value="#{msg.customerListHeading}" />

      <p:outputPanel>
        <h:form id="customerList">

          <customer:list list="#{customerControllerBean.list}">
            <f:facet name="rowButton">
              <h:commandButton value="#{msg.applyButtonLabel}"
                action="#{orderControllerBean.setCustomer(customer)}" />
            </f:facet>
          </customer:list>

        </h:form>
      </p:outputPanel>
    </ui:decorate>

  </ui:define>

</ui:composition>

</html>

As u can see the two view differs only by the facets i use to add buttons to the customer list table as i use the list in two different contexts. But why does the second view not work?

I found that there is/was an issue with Mojarra, but i use the so called stable revision regarding this problem:

2012-09-16 19:09:41,512 INFO     [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-4) Mojarra 2.1.7-jbossorg-1 (20120227-1401)
  • 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-06-11T23:40:40+00:00Added an answer on June 11, 2026 at 11:40 pm

    i found a workaround for this problem on Mojarra Jira:
    http://java.net/jira/browse/JAVASERVERFACES-2437

    i placed the xmlns:customer="http://java.sun.com/jsf/composite/components/customer" in the ui:composition tag and the view rendered sucessfully:

    <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:customer="http://java.sun.com/jsf/composite/components/customer">
    
    <ui:composition template="/WEB-INF/templates/template.xhtml" xmlns:customer="http://java.sun.com/jsf/composite/components/customer">
    
      <ui:define name="caption">
        <h:outputText value="#{msg.customerListHeading}" />
      </ui:define>
    
      <ui:define name="content">
    

    …

    According to that Jira the problem is fixed in Mojarra 2.1.10, so i hope JBoss updates AS 7.1 soon… 🙂

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

Sidebar

Related Questions

I'm trying create a composite component to use across my projects, so, I've created
i try to use an org.eclipse.jface.viewers.CheckboxTableViewer, as a component of a org.eclipse.jface.wizard.WizardPage. I created
I have a org.eclipse.swt.browser.Browser instance created in a composite. I would like to know
I'm trying to create a composite component for use in my Seam application, and
Let's say I've created a simple composite component in one of my JSF 2.0
how can I tell a composite component that it should update another cc? I
I created a composite component that implements a spinner, i works really fine, but
I created a JSF composite component to extend h:inputBox <p class=label clear> <label for=#{cc.attrs.id}
I have created a composite component in JSF2. I works great. I would like
I have this composite component: <cc:interface> <cc:attribute name=image_1 /> <cc:attribute name=image_2 /> <cc:attribute name=image_3

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.