ExtJS Architecture for Multi Page Application

前端 未结 3 863
误落风尘
误落风尘 2021-01-05 13:07

I have a .NET application in which most of the UI is custom. On some of the pages, I am using ExtJS4 components, such as Grid, to display a table of Users for example. I a

3条回答
  •  佛祖请我去吃肉
    2021-01-05 13:51

    I had to create an application that included several pages that were not ExtJS components. For me it was about 50/50 so a little more ExtJS than yours. Multiple instances of Ext.Application was not workable when I tried because of how the viewport was tied to it.

    I ended up using one Ext.Application with a single viewport (which is nice for resize management), I created a "proxy" Ext.panel.Panel view for the other (non-ExtJS) pages and I dumped the content of the page into this panel's html config when it was rendered using a servlet - I did not want to use IFrames but I suppose that could be another option.

    This worked out nicely for me and I was able to take advantage of the MVC achitecture like this.

提交回复
热议问题