error: MessageNotUnderstood: StRootComponent>>menuComponent:

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

error: MessageNotUnderstood: StRootComponent>>menuComponent:

Chris Dawson
Hi there,

I'm running the one-click installer for Seaside 2.8.1 and am running into some trouble following the tutorial (http://www.swa.hpi.uni-potsdam.de/seaside/tutorial) and would appreciate help.  I get this error message:

"MessageNotUnderstood: StRootComponent>>menuComponent:"

This looks to me like the instance variable menuComponent is not defined, but I see it when I select the StRootComponent in the object browser. 

Enclosed is a fileOut.

Chris
 

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

StTutTodoApp.st (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: error: MessageNotUnderstood: StRootComponent>>menuComponent:

Stefan Schmiedl
On Mon, 5 May 2008 23:33:28 -0700
"Chris Dawson" <[hidden email]> wrote:

> Hi there,
>
> I'm running the one-click installer for Seaside 2.8.1 and am running into
> some trouble following the tutorial (
> http://www.swa.hpi.uni-potsdam.de/seaside/tutorial) and would appreciate
> help.  I get this error message:
>
> "MessageNotUnderstood: StRootComponent>>menuComponent:"
>
> This looks to me like the instance variable menuComponent is not defined,
> but I see it when I select the StRootComponent in the object browser.

Look closely: The message 'menuComponent:' is not understood by objects
of the class 'StRootComponent'. This means that the definition of the
setter method is missing, not the definition of the instance variable.

Try defining the message by something like

        menuComponent: aComponent
                menuComponent := aComponent

or whatever makes sense in the tutorial's context.

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

Re: error: MessageNotUnderstood: StRootComponent>>menuComponent:

Lukas Renggli
In reply to this post by Chris Dawson
> This looks to me like the instance variable menuComponent is not defined,
> but I see it when I select the StRootComponent in the object browser.

It looks like accessor methods are missing. If you click on
StRootComponent -> refactor class -> accessor you can automatically
create the required accessor methods, and then your application works
too ...

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside