Linked Questions
11 questions linked to/from JSF backing bean structure (best practices)
60 votes
4 answers
61k views
Understanding JSF as a MVC framework
I am reading on JSF and I feel rather confused why JSF is a MVC framework (or atleast which parts belongs to which "letter"). I looked at this question: What components are MVC in JSF MVC framework? ...
46 votes
1 answer
15k views
Making Distinctions Between Different Kinds of JSF Managed-Beans
I recently read this article from Neil Griffin Making Distinctions Between Different Kinds of JSF Managed-Beans and it got me thinking about the distinction between different beans in my own ...
10 votes
1 answer
7k views
What is difference between JavaBean and ManagedBean
I am reading What components are MVC in JSF MVC framework? 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 ...
5 votes
3 answers
3k views
How to (or should you) avoid long methods/classes in jsf
I'm mostly working with legacy code in a JSF based project and there are lots of quite long classes and methods in backing beans. This is constantly bugging me but when I look for what can be done, ...
4 votes
1 answer
2k views
Backing bean organization in JSF
I have been thinking about this for a while now and have yet to come up with a best practice for how to organize my beans/classes in a JSF project for the presentation tier. Obviously there are many ...
2 votes
1 answer
1k views
How to organize backing bean and entity classes in a Java EE Spring JSF Application
I am trying to create a Java EE Web Application with JSF 2, Spring and Hibernate. I'm fairly new to this stack, so I need some help on best practices in organizing an application. My initial ...
3 votes
0 answers
2k views
JSF Controller Bean - Scoping
WI have a question about the "Best Practice" Design for controller beans. I was reading this very good question and the linking article: Question "JSF backing bean structure (best practices)" ...
0 votes
1 answer
609 views
How many views should a backing bean belong to?
I just read through this question: JSF backing bean structure (best practices) and I am trying to understand when I should make a new backing bean in my application. If I have a view with registering ...
2 votes
1 answer
585 views
Oracle Java EE 7 JSF example not working with Tomcat
I'm trying to get the simplest possible JSF example I could find working with Tomcat: The javaee-tutorial/examples/web/jsf/hello1 example from the JavaEE 7 SDK download. This is the example that the ...
0 votes
0 answers
338 views
Why @Model is @RequestScope not @SessionScope or @ViewScope?
I read this answer on JSF backing bean structure (best practices) and this article about the same subject and I'm really confused. In the answer and the article, model-beans are session scoped but ...
0 votes
0 answers
112 views
SessionScoped bean implementation and naming convention
I've just read this and this post to get an idea of how to organize my application. Regarding to the Entity part, there is something unclear to me. The first post says, to have a session bean entity, ...