How to embed more than a document?
Dennis Schetinin
chaetal at gmail.com
Wed Jul 8 16:14:02 MEST 2009
> > For instance, I have a Questionnaire and QuestionnaireView, which renders
> > (it's children) Polls using Vote command. How can I show this at the main
> > page of my site? Or how to do this some other (proper) way?
>
> I'm not sure but I would try:
>
> 1) Implement a method #accept: in Questionnaire
>
> Questionnaire>>accept: aVisitor
> aVisitor visitQuestionnaire: self
>
> 2) Implement PRVisitor>>visitQuestionnaire:
>
> PRVisitor>>visitQuestionnaire: aQuestionnaire
> self visitCase: aQuestionnaire
>
> 3) Implement PREmbeddedRender>>visitQuestionnaire:
>
> PREmbeddedRender>>visitQuestionnaire: aQuestionnaire
> "do whatever you want with the 'html' instance variable and
> 'aQuestionnaire' questionnaire"
> ...
>
Nice instructions, thank you. I'll try it this way
--
Dennis Schetinin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20090708/9f0045fa/attachment.html>
More information about the smallwiki
mailing list