5 Replies Latest reply on Jan 16, 2006 4:41 AM by Viet

    Container calls Portlets 2 times

    Alex Gor Newbie

      doView() of my portlets is called twice for some reason.

      I narrowed it down to the JSP file, it looks like. If I use a plain JSP file portlets are only called once:


      <%@ taglib uri="/WEB-INF/theme/portal-layout.tld" prefix="p" %>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">

      <head>
      <title>AddUp Main Layout Test Thingie</title>
      <meta http-equiv="Content-Type" content="text/html;" />
      <p:headerContent />
      <p:theme themeName='addup'/>
      </head>

      <body id="body">
      <table>
      <tr>
      <td>
      <p:region regionName='left'/>
      </td>
      </tr>
      <tr>
      <td>

      </td>
      <tr>
      <td>
      <p:region regionName='center'/>
      </td>
      </tr>
      </table>
      </body>
      </html>


      However, when using them in my other JSP file, each portlet is called TWICE! I checked it out and there is only one "P:REGION regionName" tag for each Portlet. All config files are the same (I'm just replacing index.jsp). Headers are the same. What could it possibly be?