[Seaside] Anchor Actions in Rendered Components

Jason Dufair jase at purdue.edu
Fri May 7 19:03:04 CEST 2004

You need to assign the instance created by MyComp1 new to an instance
var and have a children method in MyShell that answers an Array with (at
least) the instance var holding the instance of MyComp1 above.  i.e. if
MyShell has a "component" inst var:

MyShell>>renderContentOn: html
  component := MyComp1 new.
  html render: component

  ^Array with: component

The rest should work.

"Bill Holloway" <holloway at io.com> writes:

> Hi,
> I have a WAComponent called MyShell whose #renderContentOn: reads
> MyShell>>renderContentOn: html
>   html render: MyComp1 new.
> MyComp1 is also a subclass of WAComponent.  Its rendering method is
> MyComp1>>renderContentOn: html
>   html anchorWithAction: [Transcript show: 'in comp1 render'] text: 'do it'
> When I click this link, nothing shows in the Transcript.  If I put such a
> Transcript>>show: link in MyShell>>renderContentOn:, the Transcript does
> show the desired text.  Ideas?  Thanks!
> Bill
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside

Jason Dufair
Office of the VP for Information Technology
Purdue University
jase at purdue.edu
765-496-1185 - fax: 765-496-7409

More information about the Seaside mailing list