You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Christian Heine <He...@gmx.de> on 2002/11/30 13:32:21 UTC

Problems with using setTemplate Method

Hi all,

i've problems with using the setTemplate Method in my VelocityPortletAction class. This Action is triggered by an Image on an IMG-Tag by the following way :

<a href="$jslink.setTemplate("VelocityTest.vm").addPathInfo("action","MyAction").addPathInfo("eventSubmit_doUpdate","placeholder")">
   <IMG src="D:\Icons\folder.gif" border="0">
</a>

This action works. But when i try to call an other Templat with setTemplate Method in doUpdate(RunData data, Context context) i got a Trubine Nullpointer Exception :

Caused by: java.lang.NullPointerException at
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction.getCo
ntex
t(VelocityPortletAction.java:150) at
org.apache.jetspeed.modules.actions.portlets.VelocityPortletAction.setTe
mpla
te(VelocityPortletAction.java:139) at
org.apache.jetspeed.modules.actions.MyPortletAction.doUpdate(MyPortletAc
tion
.java:22) ... 43 more 

Why? I've tried to use setScreenTemplate, but with now success, i only got a blank screen without any portlet... 

What i don't understood is, that my Action works when i use an HTML-Button instad of my Image. Then the other portlet is shown without any failure....

Thanks for any help in advance,
Christian