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 Jeremy Kuhnash <jk...@cisco.com> on 2002/09/05 21:42:20 UTC
VelocityPortletAction
How should setTemplate() in VelocityPortletAction be used? We have tried
using it in this very simple way --
public void doSomething (RunData data, Context context) {
if (data.getParameters.get("something") != null) {
setTemplate("echoPortlet/echo_submit");
return;
}
else {
setTemplate("echoPortlet/echo_nothing");
}
}
This seems to blow up due to there not being a VelocityPortletContext
within the TemplateInfo.temp() hash (thanks to a handy debugger) ...
How would you do the above otherwise if this code is not correct? I want to
post a form and simply set the rendering template based on some arbitrary
things .. (which is what this sort of MVC setup is supposed to work like,
right?)
Thanks in advance!
Humbly Yours,
Jeremy Kuhnash
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>