Controller in Shell module

Topics: Web Client Software Factory, User Forum
Mar 20, 2008 at 8:37 PM
Edited Mar 20, 2008 at 8:38 PM
I have a WCSF application where I have a login-page that I have attached to the Shell module. The problem is that the Shell does not have any controller. Why is that? And how do I do it when I have general pages at the root-level that is not using any spesific modules?

My loginPage.aspx is, as the name implies, the page that the user comes to first when accessing my application. Right now I have a presenter for that page, DefaultViewPresenter of the Shell module, but I dont have any Controller. How would you guys solve this problem?
Mar 21, 2008 at 5:59 AM
We intentionally left a controller out of the shell module. Basically, the shell is a Foundational Module with a few extras. The idea is to push as much as possible into modules, which can be deployed separately/semi-independently. This keeps the web site boot strapper/shell module as simple as possible.

However, if you decide you really need a controller in the Shell module, add one. A controller is just another class, really. Use any other controller as a "template".

You might also look at how we did login pages in the quickstarts and reference implementations.

Michael Puleio - patterns & practices