Saurabh Deshpande.
SCJP, SCWCD, SCEA Part 1
Doing Part 2 now....
Krzysztof Grajek wrote:Hello Saurabh
1. I'm planning to put controller and jsp's on the class diagram (same as the Cade's book example)
Regards
Kris
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
1. I am using JSF for my assigment but not including any JSF, ManagedBean in Class Diagram or Sequence Diagram. I just showed a Controller (stated use of MVC in the notes) in the Class / Sequence diagram and have shown JSF in the Component Diagram in Presentation layer and Managed Beans in Business Layer. Let me know this is the correct approach.
2. In sequence diagram, lets say a Search jsp show (prepopulates) on load list of Movie Theatres from Controller (Managed Beans). The user selects a Movie Theatre and System display list of Movies playing at the theatre. Can I use the same Search jsp to display results or is it better to show list of theares as separate jsp and then again on selection of movie display time on another jsp?
My main question is since I am using JSF (Combo box) Component values are updated via interaction with Managed Beans (I wont show this in sequence diagram as per question#1), so this gives a clean design. But I am trying to over do things here?
3. I am very tempted to use the Composite Pattern in my Class Diagram as it suits very well. However refering to Chapter 9 class diagram. HS has shown Wood, Steel, Concrete (all materials) as separate entities. This was done as the Business Domain Diagram had each material separate and charactersistics separate for each material. My doubt is can I represent all my components as the Component (as per Design Pattern) as an Entity? I am having doubts since one of the component can be both a leaf and composite. I was just planning to just list in the notes what components are leaf and what components are composite.
Ashutosh Sharma
SCJP 1.2, SCEA 5, Brainbench certified J2EE Developer, Documentum Certified Professional
Blog : http://scea5-passingpart2and3.blogspot.com/
Krzysztof Koziol wrote:
Hi Krzysztof,
I'm not sure why do we have put controller on the class diagram. In case of JSF it's clear that the FacesServlet is the master controller and then we have ManagedBeans (Model) and Pages (View). I would rather put ManagedBeans together with views they are supporting.
Regards,
Krzysztof
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
Krzysztof Koziol wrote:I have put everything - JSPs, Managed Beans and Controllers in my class diagram and Sequence Diagram. Though it made the diagram bigger but i don't want to take any chances. Moreover it's for my own good also as i was having some gaps while my preparation-so this way it was easy for me to recall.
Did you have more than one controller when using JSF?
Sorry but it's not clear for me since JSF itself isn't action/controller-based framework and doesn't require to implement extra controllers.
Krzysztof Grajek wrote:
Krzysztof Koziol wrote:I have put everything - JSPs, Managed Beans and Controllers in my class diagram and Sequence Diagram. Though it made the diagram bigger but i don't want to take any chances. Moreover it's for my own good also as i was having some gaps while my preparation-so this way it was easy for me to recall.
Did you have more than one controller when using JSF?
Sorry but it's not clear for me since JSF itself isn't action/controller-based framework and doesn't require to implement extra controllers.
Well, it's not clear for me either, normally I wouldn't include any framework specific stuff on the class diagram (like jsp's, beans and controller) but I have found many posts where people actually do and they pass . I guess both approaches are ok, but I think that when talking about JSF we just have to include it in component diagram for sure. I guess if you put it in your class diagram then you would have to add it in your sequence diagrams too, I haven't started my sequence diagrams yet so I haven't made final decision about the JSF on the class diagram either .
Anyone passed/not passed and have an opinion?
Regards
Kris
Saurabh Deshpande.
SCJP, SCWCD, SCEA Part 1
Doing Part 2 now....
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|