Hi Experts-
I am developing an MVC compliant BSP application.
Can I nest controllers in BSP's implementation of MVC?
Meaning, in the view that is created by my master controller I have an HTMLB tray control. That tray control uses bsp:call to call a different controller. The called controller has two HTMLB tray controls inside of it's view. These trays then further bsp:call two separate controllers also each with their own views.
Can I have a controller that in-turn calls another controller which calls two other controllers and have them all be on the screen at the same time (some within others)?
I have the following controllers (and their views):
I want 1.do to be my application's point of entry. Starting out, in the view 1.htm, I want to bsp:call 2.do. 2.htm should then further call 2a.do and 2b.do. So 1.htm and 2.htm and 2a.htm and 2b.htm should all show up on my screen at the same time (2a.htm and 2b.htm in 2.htm and 2.htm in 1.htm).
Is this possible?
Thanks,
- Vik.
Figured out the answer to this one.
It is a resounding YES.
Moved 'dispatch_input' to the top controller. Made sure that every ".htm" (view) file has bsp extensions reference declared up top [alongwith ABAP and HTMLB].
I get more and more impressed the more I learn about the MVC implementation in BSP. Powerful, simple and effective.
Better than Struts maybe? LOL.
😊
Add a comment