When using dojox.mvc, I’ve frequently needed to replace my model at runtime. Here’s a quick snippet on how to do this.
If you’ve done anything complex with dojox.mvc in 1.7, you’ll find a fairly intricate use case with nesting dojox.mvc.Repeats – without extra config, this will likely not work as you expect.
I recently solved this problem with assistance from Ed Chatelain (dojox.mvc author). Here is a working snippet.