[Seaside] subcomponents with arguments?

Ragnar Hojland Espinosa seaside@lists.squeakfoundation.org
Thu, 8 Aug 2002 11:12:31 +0200


On Wed, Aug 07, 2002 at 01:01:24PM -0700, Avi Bryant wrote:
> On Tue, 6 Aug 2002, Ragnar Hojland Espinosa wrote:

> ExShowCompany>>addHandlers
>   (template elementNamed: 'persons')
>     onDisplay: [:p | p companyID: companyID]
> 
> Does this work for what you need?

It does :)  I had to make it

   onDisplay: [:p | p companyID: companyID.
   	      p defaultDisplayEvent. ]

and with parent here and a couple of if isNil and notNil there, it all works 
nicely.
-- 
Ragnar Hojland - Project Manager
Linalco "Especialistas Linux y en Software Libre"
Tel: +34-91-5970074 Fax: +34-91-5970083