State backtracking with #states

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

State backtracking with #states

Joel Kitching
Hi there,

I'm trying to use the state backtracking features by implementing
#states in a WAComponent.  However, I have noticed that it only seems to
work when the WAComponent is the "top-level" component.

i.e. if I try to implement #states in a WAComponent that is painted
within the #renderContentOn: of another WAComponent, the #states message
is never even called.

Is this by design, or is this a bug, or could it be that I am doing
something wrong in the first place?

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

Re: State backtracking with #states

Lukas Renggli
Do you return your child components from #children?

Lukas

On 24 April 2010 02:33, Joel Kitching <[hidden email]> wrote:

> Hi there,
>
> I'm trying to use the state backtracking features by implementing
> #states in a WAComponent.  However, I have noticed that it only seems to
> work when the WAComponent is the "top-level" component.
>
> i.e. if I try to implement #states in a WAComponent that is painted
> within the #renderContentOn: of another WAComponent, the #states message
> is never even called.
>
> Is this by design, or is this a bug, or could it be that I am doing
> something wrong in the first place?
>
> Regards,
> Joel
> _______________________________________________
> seaside-dev mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: State backtracking with #states

Joel Kitching
Hi Lukas,

Yes, of course this was the issue!  Thank you for the help.

Joel

On 24/04/10 12:33 AM, Lukas Renggli wrote:

> Do you return your child components from #children?
>
> Lukas
>
> On 24 April 2010 02:33, Joel Kitching <[hidden email]> wrote:
>> Hi there,
>>
>> I'm trying to use the state backtracking features by implementing
>> #states in a WAComponent.  However, I have noticed that it only seems to
>> work when the WAComponent is the "top-level" component.
>>
>> i.e. if I try to implement #states in a WAComponent that is painted
>> within the #renderContentOn: of another WAComponent, the #states message
>> is never even called.
>>
>> Is this by design, or is this a bug, or could it be that I am doing
>> something wrong in the first place?
>>
>> Regards,
>> Joel
>> _______________________________________________
>> seaside-dev mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
>>
>
>
>
_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev