I did use JSF in my solution but in the class diagram it did NOT show any JSF specific artifact.
I stayed very generic with Controller classes in my presentation tier.
After I just put a note on the class diagram to explain why I showed the presentation tier this way.
This is basically the Mark Cade's way.
SCJP 5 , SCWCD 5, SCEA 5
Joined: Aug 13, 2000
Even I did exactly the same as you have mentioned.
But in the assignment remarks, examiner have mentioned "No managed beans used in class diagram".
I mentioned in the notes that I am using JSF.
I showed the managed bean like sample.jsf-->MyManagedBean-->MySessionBean etc. Also, I used the <<Managed Bean>> stereotype for the managed bean classes in the class diagram. In the component diagram, I mentioned 'JSF Managed Beans' in the presentation layer.
I have some questions regarding the component/ sequence diagram:
1) In any application from Homepage if we click any search / create/ edit/ update page link then it opens that page from where we start other operations. Now question is in your assignment have you shown any flow to display how any page is getting generated from Homepage.
For example after clicking search link from Homepage how that Serach page will generate for that have you shown any diagram? Because it may possible that in search page you have multiple dropdown with various values and to populate that value it’s require to go through java flow. So do we need to show that value.
Or say if have to open an order creation page from Homepage. Now have you shown the flow how the order creation page is opening after clicking the link from Homepage. Because in your order creation page you may need to display some pre-populated data which needs to come from database. So do we need show any component/ sequence diagram for that or you can start your diagram from order-creation page directly.
Please let me know on this.
Joined: Mar 12, 2011
It depends on your Use Case, your sequence diagram need to follow your Use Case. In the Use Case how point wise it is mentioned.
Let us take editing an existing order, in your Use Case if it is said that logged in user is initially displayed with orders and then user edits an order. All orders are displayed saying OrderNum, OrderItem, Qty if an order is edited you need not go fetch the details of that Order again, using the OrderNum and the new values are to be updated in the database.
How it is mentioned in your Use Case you need to put the same in your sequence diagram flow.
Joined: Dec 28, 2011
I am providing a sample/ dummy useCase. As per this useCase point#1 buyer can search for offers by some desired criterion (like quantity, price, quality etc). That means buyer is submitting this search from some Search page.
Do I have to show how this Search page is getting displayed/ generated 1st time (from HomePage)? Or I can start my flow by assuming that Search page is generated some how and I need to show rest of the use case after submitting the search.
1) A buyer searches for offer by matching some desired criterion (like: quantity, price, quality etc)
2) System responds with all matching offers.
3) Buyer selects a specific offer and place bid for that offer.
Joined: Mar 12, 2011
In your sequence diagram, you can provide for the searches of all offers and then continue with selecting an offer for bidding.