[Seaside] gotos with 2.3b?
Ragnar Hojland Espinosa
ragnar at linalco.com
Wed Jun 4 19:00:40 CEST 2003
On Wed, Jun 04, 2003 at 08:45:25AM -0700, Julian Fitzell wrote:
> Ragnar Hojland Espinosa wrote:
> >I'm attempting to learn my way around 2.3b. How do you do gotos and
> >calls to replace the current rendered component?
> >
> >I tried this:
> >
> >onCompany: anExCompany
> > self call: (ExViewCompany new company: anExCompany)
> >
> >but ExViewCompany>>renderContentOn doesnt show up.
>
> I assume you mean #renderContentOn: ? If not then that is your problem:
> you need to take a WAHtmlRenderer as a parameter and use that to do your
> html output. If that was just a typo, could you post some code
> snippets? What you've posted above looks pretty reasonable as far as I
> can see.
This should be it.. newed ExViewCompany has a valid object.
WAComponent subclass: #ExListCompanies
renderContentOn: html
companies do: [:each | html anchorWithAction: [self onCompany: each] text: each name ].
onCompany: anExCompany
self call: (ExViewCompany new company: anExCompany)
WAComponent subclass: #ExViewCompany
renderContentOn: html
html text: company name
--
Ragnar Hojland - Project Manager
Linalco "Especialistas Linux y en Software Libre"
http://www.linalco.com Tel: +34-91-5970074 Fax: +34-91-5970083
More information about the Seaside
mailing list