title: Liferay 6: Portlet View in MAXIMIZED State
body: <p>Once the request is made to the MVCPortlet class , i want to show the View in MAXIMIZED State .
  This is my Code in JSP Page </p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;portlet:actionURL  name="addBook" var="addBookURL" /&gt;
  &lt;aui:form action="&lt;%= addBookURL.toString() %&gt;" method="post"&gt;
      &lt;aui:input type="text" name="name"&gt;&lt;/aui:input&gt;
      &lt;aui:input type="password" name="pwd"&gt;&lt;/aui:input&gt;
      &lt;aui:button type="submit"&gt;&lt;/aui:button&gt;
  &lt;/aui:form&gt;
  </code></pre>
  
  <p>This is my MVCPortlet class :</p>
  
  <pre class="lang-java prettyprint-override"><code>if(true)
          {
  
               response.setPortletMode(PortletMode.VIEW);
              response.setWindowState(WindowState.MAXIMIZED);
  
          }
  
          else
          {
  
               response.setPortletMode(PortletMode.VIEW);
              response.setWindowState(WindowState.MAXIMIZED);
  
          }
  </code></pre>
  
  <p>And this is the result (Please see the image below )</p>
  
  <p><img src="https://i.stack.imgur.com/297ox.png" alt="enter image description here"></p>
  
  <p>My question is that , i was expecting that once the Action class is called , so the Portlet will be displayed in MAXIMIZED State .</p>
  
  <p>But still the Portlet remains in NORMAL State , please let me know why ?and how can i Portlet View in MAXIMIZED State after the result from MVCPortlet class .</p>