I did ask this question before, but still don't
know how to solve the
problem.
Sorry, must have missed this one.
So, I have Questionnaire (subclass of PRCase) and
it's view
QuestionnaireView (PRDefaultView). The latter should render children Polls
of Questionnaire using vote command. I need to embed a Questionnaire into
another page.
In the current design of Pier there can only be one context active at
a time. And the context consists either of a command or a single view
on the current structure.
I tried to do it implementing #visitQuestionnaire: in
#PREmbeddedRender
visitQuestionnaire: aStructure
(aStructure viewComponentClass on: self context) structure: aStructure;
renderContentOn: html
What the view itself does is up to you, however (as basic rule with
Seaside) you should never instantiate components as a side-effect and
you should never call #renderContentOn: manually.
What is the correct way to implement what I want?
What are you trying to do?
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch