SCEA 5/OCMJEA
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:In JSF< a controller contains logic. It's not like other (mostly older) frameworks which use the controller to delegate to an action. Since there is logic, it makes sense to have multiple controllers for different parts of the app. The class diagram should be consistent with the sequence diagrams though.
I added this to the list of issues with the example in the book.
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:Yes. The managed beans are sometimes referred to as the controller.
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
Krzysztof Koziol wrote:
Jeanne Boyarsky wrote:Yes. The managed beans are sometimes referred to as the controller.
Did you add Managed Beans in the Component Diagram as separate components?
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:
Yes. I don't think it should be that way in the real world, but it seemed important to Oracle.
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
Krzysztof Koziol wrote:
Jeanne Boyarsky wrote:
Yes. I don't think it should be that way in the real world, but it seemed important to Oracle.
Thanks for this info. Did you somehow show in the Component Diagram that JSPs and Managed Beans are part of JSF framework? Could we use different colors for those components or add <<JSF>> stereotype?
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:Yes. The managed beans are sometimes referred to as the controller.
Nilesh
SCJP SCWCD OCMJEA
Gurukant Desai wrote:
1) Even though FacesServlet is final and we can still redirect/delegate to specific controllers on basis of URL pattern configured in FacesServlet. Say /ABC/* will redirect to ABCController.java and /DEF/* will redirect to DEFController.java.
Nilesh
SCJP SCWCD OCMJEA
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |