View Full Version : rendering a spring-mvc-view into a viewport section

2 Jan 2011, 4:26 AM
I am using the Spring Framework with different controllers in the backend together with ExtJS as frontend for a project.

In the main page I am using a Spring controller with a JSP as view where I am building a viewport with a west-section as the main menu with a treepanel and on the right side of it a center-section for the content.

Now my task is to implement the main menu in a way that a click on the menu item will load the view of a defined other Spring Controller into the west-section.

But how can I do this? Is there a good example of such a case or a tutorial somewhere?

20 May 2011, 1:24 AM
me +1.

How to render a view in the viewport panel when clicking on a menu in the dockeditems toolbar

EDIT : saw after post that this is in the 3.x forum. I mean in 4 ....

20 May 2011, 5:16 AM
In ExtJs v3, Ext.Panel (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.Panel) supports a load() method which will allow you to dynamically/asynchronously load the panel with content from any URL of your choosing (including the ability to pass a block of parameters).

ExtJs v4 heavily refactored Ext.panel.Panel (http://docs.sencha.com/ext-js/4-0/#/api/Ext.panel.Panel) and I'm not yet sure how you go about getting similar functionality.


On closer inspection, it appears that ExtJs v4 Ext.panel.Panel supports a loader configuration which provides functionality similar to ExtJs v3's Ext.Panel.load() method.