• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SCEA and JSF: just another question

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good morning, this is my first post.

I'm a scea candidate for the part 2, and my prj is the well famous Flight By Night project.

This is the problem. I've declared to use JSF. Now is the moment of the component diagram (from the instruction.html page):

Create a Component diagram that shows all of the J2EE components used in the system and their interaction. For example, what EJBs, Servlets, and/or JSPs might be needed?

Ok. But the model in JSF is formed by managed beans, which aren't real J2EE component, they are only POJO. So the question is:

Must I show the managed bean in this diagram? If I use simply J2EE I show only servlet, if I use struts than actions, but with JSF? And if not, what I may shown as model?
[ July 19, 2008: Message edited by: Gianluca Musella ]
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm actually modeling the Managed Beans as POJOs, but haven't submitted the project yet. So I'm not 100% sure this is the right approach.
Maybe someone who already did part 2 could reply this post..
 
Gianluca Musella
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you, it seems that we are in the same boat!
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, there's certainly a front controller in JSF. You definitely need to show that. That's your main controller.

-Cameron McKenzie
 
Rodrigo Cunha
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
good point Cameron..

yes, you shouldn�t forget to mention FacesServlet as your front controller. Now, I also had the Faces Lifecycle as my application controller, is this a good decision?

I noticed on the following article http://websphere.sys-con.com/read/46516.htm that JSF uses the Page Controller design pattern, any comments on that?

regards,
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But the model in JSF is formed by managed beans



To clarify, the managed beans are not "the" model, they are the representation of the model in regards to the framework. All of the JSF objects are still on the Presentation tier.

If your business logic is in POJO or EJB form, then this is "the" model, which resides on the Business tier.

The JSF managed beans represent "the" model in the Presentation tier, but they are not part of the "business model object code."
[ July 22, 2008: Message edited by: James Clark ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic