views:

175

answers:

0

Related/similar question: 2795890

Our team is working on a portlet that has a rather comprehensive configuration view. Currently we are using the maximized view of the portlet to display the configuration page -- but really we should be taking advantage of the Edit view and put the configuration there. The problem is that when our portal (Vignette Application Portal) triggers the edit view of a portlet it makes a render request and not an action request, so the portlet is displayed at normal size.

We're also using Spring portlet MVC so we're not dealing directly with the portlet API (doEdit, etc).

I believe this could be done by setting the window state in the doSomething method, but since we're using Spring MVC (subclassing AbstractController) we don't have direct access to override those methods.

// this is doEdit(enderRequest, renderResponse)
PortletURL portletURL = renderResponse.createActionURL(); 
portletURL.setWindowState(WindowState.MAXIMIZED); 

What can we do in a situation like this?