I've started using Cairngorm for a project and I'm trying to stick closely with the design philosophy but I'm running into problems.
Here's the situation... My application has to instansiate one of a number of view classes based on an xml config file. But within the context of Cairngorm I don't see a good way to dynamically create views. Right now I'm using the ViewLocator class to refer to a generic container and having a command create a new view instance as a child of the container but this seems kludgey and not really in the spirit of the framework. The only other thing I can think of is to make my generic container a little smarter and have it bind to a config data model, creating a child view once the config data model is populated. But that doesn't seem quite right to me either. I guess the main problem is that under Cairngorm, it seems pretty logical that the Controller/Commands can create and manipulate models, but what should create views? Jamie

