You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Alexandre Gay <ag...@sysdeo.com> on 2003/05/20 09:54:42 UTC

Pb with VelocityPortletAction

Hello,

I try to use a Velocity portlet and redefine the  VelocityPortletAction

I implement this

public class TestAction extends VelocityPortletAction {

protected void buildNormalContext(VelocityPortlet velocityPortlet, Context
context, RunData runData) throws Exception {

context.put("test", "test");

}

I also create a simple test.vm velocity template in the repository
JetSpeed\WEB-INF\templates\vm\portlets

In the xreg file exemple.xreg i note


<portlet-entry name="TestVelocity" hidden="false" type="ref"
parent="Velocity" application="false">

<classname>org.apache.jetspeed.portal.portlets.VelocityPortlet</classname>

<parameter name="template" value="customizer-portlet" hidden="true"

cachedOnName="true" cachedOnValue="true"/>

<parameter name="action" value="TestAction"

hidden="true" cachedOnName="true" cachedOnValue="true"/>

<url cachedOnURL="true"/>

</portlet-entry>

I can't see my portlet when i want to add it to a user
Do you have any idea???
thanks a lot
alex





---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: Pb with VelocityPortletAction

Posted by Christophe Lombart <ch...@skynet.be>.
Do you have an error message in the jetspeed.log ?

Alexandre Gay wrote:

>Hello,
>
>I try to use a Velocity portlet and redefine the  VelocityPortletAction
>
>I implement this
>
>public class TestAction extends VelocityPortletAction {
>
>protected void buildNormalContext(VelocityPortlet velocityPortlet, Context
>context, RunData runData) throws Exception {
>
>context.put("test", "test");
>
>}
>
>I also create a simple test.vm velocity template in the repository
>JetSpeed\WEB-INF\templates\vm\portlets
>
>In the xreg file exemple.xreg i note
>
>
><portlet-entry name="TestVelocity" hidden="false" type="ref"
>parent="Velocity" application="false">
>
><classname>org.apache.jetspeed.portal.portlets.VelocityPortlet</classname>
>
><parameter name="template" value="customizer-portlet" hidden="true"
>
>cachedOnName="true" cachedOnValue="true"/>
>
><parameter name="action" value="TestAction"
>
>hidden="true" cachedOnName="true" cachedOnValue="true"/>
>
><url cachedOnURL="true"/>
>
></portlet-entry>
>
>I can't see my portlet when i want to add it to a user
>Do you have any idea???
>thanks a lot
>alex
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org