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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>