I had the same issue and got around it by changing my Action classes to "extends GenericMVCAction" from "extends JSPAction"...
Dmitry -----Original Message----- From: Alessandro La Rocca [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 4:31 AM To: [EMAIL PROTECTED] Subject: buildNormalContext called twice? Hi all, I created and configured a simple jsp portlet with the related action class. Since it is a test, both the jsp template and the action class do nothing other than printing a line (to the System.out) as debug for checking the execution. If I simply open the pane where this porlet is included, both the template and the action are executed once. When I submit any other portlet (for instance, the StockQuotes) within the same pane, when this is refreshed, my portlet action runs twice and the template just once. Why? Thank you, Alessandro -- the template --------------------------------------------------------------------- <%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %> <% System.out.println(">> SimpleJsp executed"); %> <P><BR/>Hello</P> -- the action ----------------------------------------------------------------------- public class SimpleJspAction extends JspPortletAction { protected void buildNormalContext(Portlet portlet, RunData rundata) { System.out.println(">> SimpleJspAction.buildNormalContext executed"); } -- the registry entry --------------------------------------------------------------- <portlet-entry name="SimpleJsp" hidden="false" type="ref" parent="JSP" application="false"> <meta-info> <title>Simple Jsp</title> </meta-info> <classname>org.apache.jetspeed.portal.portlets.JspPortlet</classname> <parameter name="template" value="SimpleJsp.jsp" hidden="true" cachedOnName="true" cachedOnValue="true"/> <parameter name="action" value="portlets.SimpleJspAction" hidden="true" cachedOnName="true" cachedOnValue="true"/> <media-type ref="html"/> <url cachedOnURL="true"/> <category group="Jetspeed">my.portlets</category> </portlet-entry> -- the PSML entry (anon user) ------------------------------------------------------- <portlets id="1009"> <metainfo> <title>My Portlets</title> </metainfo> <security-ref parent="anon-view_admin-all"/> <controller name="TwoColumns"/> <portlets id="1010"> <layout position="-1" size="-1"> <property name="row" value="0"/> <property name="column" value="0"/> </layout> <entry id="1011" parent="StockQuote"/> </portlets> <portlets id="1012"> <layout position="-1" size="-1"> <property name="row" value="1"/> <property name="column" value="0"/> </layout> <entry id="1013" parent="SimpleJsp"/> </portlets> </portlets> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
