error: MessageNotUnderstood: StRootComponent>>menuComponent:

View: New views
3 Messages — Rating Filter:   Alert me  

error: MessageNotUnderstood: StRootComponent>>menuComponent:

by Chris Dawson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

StTutTodoApp.st (4K) Download Attachment

Re: error: MessageNotUnderstood: StRootComponent>>menuComponent:

by Stefan Schmiedl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 5 May 2008 23:33:28 -0700
"Chris Dawson" <xrdawson@...> 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
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

Re: error: MessageNotUnderstood: StRootComponent>>menuComponent:

by Lukas Renggli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside