Use WAcomponent as either full component or non?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Use WAcomponent as either full component or non?

Sophie424
Is there anything wrong with defining a WAComponent subclass, to

- sometimes use it as a component, following Seaside rules; and

- sometimes use it as a non-component class e.g. not report it among
#children, directly call its render methods etc.

Thanks!



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Use WAcomponent as either full component or non?

Julian Fitzell-2
It's a bit weird. You'd be better to define a non-component class that
has rendering methods you want to call and then use that both in your
component and in the other location.

Julian

On Wed, Dec 3, 2008 at 7:12 PM, Sophie (itsme213) <[hidden email]> wrote:

> Is there anything wrong with defining a WAComponent subclass, to
>
> - sometimes use it as a component, following Seaside rules; and
>
> - sometimes use it as a non-component class e.g. not report it among
> #children, directly call its render methods etc.
>
> Thanks!
>
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Use WAcomponent as either full component or non?

Sophie424
"Julian Fitzell" <[hidden email]> wrote in message

> It's a bit weird. You'd be better to define a non-component class that
> has rendering methods you want to call and then use that both in your
> component and in the other location.

Much cleaner, thanks!



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside