[Seaside] Anchor Actions in Rendered Components
Avi Bryant
avi at beta4.com
Fri May 7 19:06:07 CEST 2004
On May 7, 2004, at 10:00 AM, Jason Dufair wrote:
> 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.
Right:
MyShell>>initialize
myComp := MyComp1 new
MyShell>>renderContentOn: html
html render: myComp
MyShell>>children
^ Array with: myComp
> "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
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
More information about the Seaside
mailing list