*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes JSF Managed Bean in class diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "JSF Managed Bean in class diagram" Watch "JSF Managed Bean in class diagram" New topic
Author

JSF Managed Bean in class diagram

Neeraj Singhal
Ranch Hand

Joined: Aug 13, 2000
Posts: 49
Hi

How to show JSF managed bean in the class diagram.

Is the following sequence correct ?

JSP --> Controller --> ManagedBean --> SLSB --> EntityBean

Please suggest.
ntumba lobo
Ranch Hand

Joined: Oct 21, 2008
Posts: 180
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
Neeraj Singhal
Ranch Hand

Joined: Aug 13, 2000
Posts: 49
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.

Any advise?
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

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.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Murali Ranga
Ranch Hand

Joined: Dec 16, 2011
Posts: 38
I used generic controller and generic bean in calss diagram ,but more details in componet and sequence diagram

JSP --> Controller --> SLSB --> Entity

and The controller <<uses>> Backing bean

Controller provides navigation rules and backing bean as a pojo(validation logic etc), advantage is that keep the model independently from the application logic
kumar naresh
Ranch Hand

Joined: Mar 12, 2011
Posts: 118
    
    1
I used the same manner of what you have mentioned.

JSP --> Controller --> ManagedBean --> SLSB --> EntityBean

Controller is a common for all but it makes your class diagram big and kind of duplication (need not worry), For more information go through the Duke Bank example.



OCMJEA 5 |
http://sceacertification.blogspot.in/2011_12_01_archive.html
priam dutta
Greenhorn

Joined: Dec 28, 2011
Posts: 3
Hi,
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.
kumar naresh
Ranch Hand

Joined: Mar 12, 2011
Posts: 118
    
    1
Hi Priam,

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.

Thanks,
Kumar.
priam dutta
Greenhorn

Joined: Dec 28, 2011
Posts: 3
Hi Kumar,
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.

Sample useCase:
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.
kumar naresh
Ranch Hand

Joined: Mar 12, 2011
Posts: 118
    
    1
In your sequence diagram, you can provide for the searches of all offers and then continue with selecting an offer for bidding.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF Managed Bean in class diagram
 
Similar Threads
PropertyNotFound in EL
is there a mayor change on how to use faces-config.xml on JSF 2.0
Intercepting Filter design pattern in class diagram
JSF backingbean value is null always.
FacesServlet in a sequence / class diagrams