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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:39:11+00:00 2026-05-20T07:39:11+00:00

In JSF MVC framework who is Model, View, and Controller?

  • 0

In JSF MVC framework who is Model, View, and Controller?

  • 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-20T07:39:11+00:00Added an answer on May 20, 2026 at 7:39 am

    This depends on the point of view (pun intented).

    In the big architectural picture, your own JSF code is the V:

    M – Business domain/Service layer (e.g. EJB/JPA/DAO)
    V – Your JSF code
    C – FacesServlet

    In the developer picture, the architectural V is in turn dividable as below:

    M – Entity
    V – Facelets/JSP page
    C – Managed bean

    In the smaller client picture, the developer V is in turn dividable as below:

    M – JSF component tree
    V – Rendered HTML output
    C – Client (webbrowser)

    In the yet smaller JavaScript picture, the client V is in turn dividable as below:

    M – HTML DOM tree
    V – Visual presentation
    C – Event listener functions (enduser interaction and Ajax)

    So it’s basically a M(M(M(MVC)C)C)C 😉

    Note that some starters and even some —very basic— tutorials mingle/copy/flatten the entity’s properties in the managed bean, which would effectively make the controller a model. Needless to say that this is poor design (i.e. not a clean MVC design).

    The code snippets in the following answers illustrate the right MVC approach:

    • JSF Controller, Service and DAO
    • Creating master-detail pages for entities, how to link them and which bean scope to choose
    • Passing a JSF2 managed pojo bean into EJB or putting what is required into a transfer object
    • Filter do not initialize EntityManager
    • javax.persistence.TransactionRequiredException in small facelet application

    In the books The Definitive Guide to JSF in Java EE 8, chapter 8 "Backing beans", page 276, and The Definitive Guide to Jakarta Faces in Jakarta EE 10, chapter 8 "Backing Beans", page 288, the below Venn diagram is used to illustrate the position of the backing bean in the MVC paradigm within the context relevant to the JSF developer. Copyright disclaimer: aforementioned books are written by me and the picture is created by me.

    enter image description here

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

Sidebar

Related Questions

Most web frameworks are still using the traditional action based MVC model. A controller
I have heard that JSF is implementing the component based MVC and Spring MVC
I am in the middle of creating my own custom MVC web framework for
I've worked with JSF, Spring MVC and Struts and I think I got a
Can I use jsf component libraries(primefaces) with spring mvc .I have problem with client
Is it possible to use JSF 2.0 (PrimeFaces for example) as view layer for
Last 8 months I have been working in ASP.NET MVC framework but now I
I'm not a fan of JSF. Spring MVC makes a lot of sense to
I am preparing a registration page using JSF/Spring webflow&mvc application. I have added two
JSF is setting the ID of an input field to search_form:expression . I need

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.