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 600937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:39:37+00:00 2026-05-13T16:39:37+00:00

I am starting development on a new web application which uses JSF 2 as

  • 0

I am starting development on a new web application which uses JSF 2 as the view technology.
I have no prior experience with JSF and am a bit confused about the concepts.
I read some documentation on JSF and the main idea was that it a component based framework. Applications are built from components.

But now there are two ways of creating a component, as I understood:
1. composition – a collection of components which can be included in a page
2. composite – a new component that encapsulate some components and exposes an interface to users

What is the basic rule in choosing between them?
For example, I want to show a list of products to an user. For this list I should create my own component which I add to the main layout, to separate the view code. So should this list be a composition or composite?

I hope somebody can help me clear up this basic stuff.

Thanks in advance,

  • 1 1 Answer
  • 3 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-13T16:39:38+00:00Added an answer on May 13, 2026 at 4:39 pm

    Go for composition (templating) when you want a reuseable template which you normally include only once in the main view. E.g. header, menu, footer, single table, etc. Go for composite component when you want a reuseable component with a bean-value-binding which you can include as many as you want in the main view. E.g. a group of label, input and message components (although a tag file is often better for this).

    See also:

    • When to use <ui:include>, tag files, composite components and/or custom components?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to mobile development, but have some experience with web app development.
I'm new to web development but have plenty of Scala experience and am trying
I'm starting the development of a new application based on Vaadin. I'm a big
I'm starting the development of a C#/ASP.net web app, within which I use the
At work we are inte process of starting development on a new web-based product.
Hi I'm starting a new web development project with my team using Hibernate and
We're starting new web site development with Umbraco, and having some difficulties with optimal
I'm in the preliminary stages of designing a new web application, and have yet
If you were starting a new web development project would you use ASP.Net MVC
I am very new to web development. In fact, I am just starting to

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.