Tutorial issue

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

Tutorial issue

Steve Bleeke
I think that is what I did.  I created the method before creating the class
that it references.  It is a subtle issue that a new person would not see
the effect.  I will watch that from now on.

----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>
Sent: Thursday, January 15, 2009 7:00 AM
Subject: seaside Digest, Vol 73, Issue 15


> Send seaside mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of seaside digest..."
>
>
> Today's Topics:
>
>   1. RE: Value of a fileUpload element? (Boris Popov)
>   2. tutorial issue (Steve Bleeke)
>   3. Re: tutorial issue (James Foster)
>   4. Re: tutorial issue (Julian Fitzell)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 14 Jan 2009 13:25:23 -0800
> From: "Boris Popov" <[hidden email]>
> Subject: RE: [Seaside] Value of a fileUpload element?
> To: "Seaside - general discussion"
> <[hidden email]>
> Message-ID:
> <[hidden email]>
>
> Content-Type: text/plain; charset="US-ASCII"
>
> Looks like Gmail editor might soon replace all Smalltalk browsers...
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> [hidden email]
>
> CONFIDENTIALITY NOTICE
>
> This email is intended only for the persons named in the message header.
> Unless otherwise indicated, it contains information that is private and
> confidential. If you have received it in error, please notify the sender
> and delete the entire message including any attachments.
>
> Thank you.
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Jan van
> de Sandt
> Sent: Wednesday, January 14, 2009 1:22 PM
> To: Seaside - general discussion
> Subject: Re: [Seaside] Value of a fileUpload element?
>
> Yes, this works great. Thanks!
>
> Cheers,
> Jan.
>
>
> On Wed, Jan 14, 2009 at 9:54 PM, Lukas Renggli <[hidden email]>
> wrote:
>
>
> > But for me this is only half the solution. Based on that value
> I need to
> > update the values of some hidden input fields in the same
> form. How can I
> > add the ajax update in the same onChange code?
>
>
> Try something along the following untested code (just wrote it
> here in Gmail):
>
>
> >             html paragraph: [
> >                 html fileUpload
> >                     name: 'file';
> >                     onChange: (html jQuery ajax
> >                         callback: [ :value | self
> handleNewFile: value ]
>
> >                         value: (html jQuery this value);
>                           script: [ :script |
>                               script add: ((s jQuery id: 'form')
>                                     append: [ :h | h hiddenInput
> callback: [ :v | ... ] ]) ]) ]
>
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 14 Jan 2009 19:55:45 -0500
> From: "Steve Bleeke" <[hidden email]>
> Subject: [Seaside] tutorial issue
> To: <[hidden email]>
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I'm still trying to get this tutorial todo app to work.
>
> I created the components and the initializeMenuComponent is throwing an
> error.
>
> This is the syntax of what is being executed:  I copy/pasted from the
> tutorial text.
>
> initializeMenuComponent
>
> self menuComponent: (StMenuComponent new
>  addEntry: 'All' withAction: [self showAllTasks];
>  addEntry: 'Completed' withAction: [self showCompletedTasks];
>  addEntry: 'Pending' withAction: [self showPendingTasks];
>  addEntry: 'Missed' withAction: [self showMissedTasks];
>  yourself).
>
> This is the error I get:
>
> Seaside Walkback
> MessageNotUnderstood: UndefinedObject>>new
> Debug Proceed Full Stack
>
> Possible Causes
>  a.. the receiver of the message is nil
>  b.. a class extension hasn't been loaded correctly
>  c.. you sent the wrong message
> Stack Trace
>  1..
>    thisContext
>    UndefinedObject(Object)>>doesNotUnderstand: #new
>    self
>    nil
>    aMessage
>    new
>  2..
>    thisContext
>    StRootComponent>>initializeMenuComponent
>    self
>    a StRootComponent
>  3..
>    thisContext
>    StRootComponent>>initialize
>    self
>    a StRootComponent
>  4..
>    thisContext
>    StRootComponent class(WAPresenter class)>>new
>    self
>    StRootComponent
>  5..
>    thisContext
>    WARenderLoopMain>>createRoot
>    self
>    a WARenderLoopMain
> Can anyone give me a hint.  Sorry, I'm just getting started with Smalltalk
> et al.
>
> I'm using Squeak 10 and Seaside 2.8
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090114/dc649496/attachment.html
>
> ------------------------------
>
> Message: 3
> Date: Wed, 14 Jan 2009 17:11:49 -0800
> From: James Foster <[hidden email]>
> Subject: Re: [Seaside] tutorial issue
> To: Seaside - general discussion <[hidden email]>
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi Steve,
>
> Could you post the contents of this method:
>
>> StRootComponent>>initializeMenuComponent
>
> James Foster
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 15 Jan 2009 08:45:14 +0100
> From: "Julian Fitzell" <[hidden email]>
> Subject: Re: [Seaside] tutorial issue
> To: "Seaside - general discussion"
> <[hidden email]>
> Message-ID:
> <[hidden email]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Did you perhaps write and save that method before creating the
> StMenuComponent class? If so, the method will have been compiled
> without a reference to the class (because it didn't exist).
>
> Try typing something in the method and then deleting it so it thinks
> it has changed and then saving it again.
>
> Julian
>
> On Thu, Jan 15, 2009 at 1:55 AM, Steve Bleeke <[hidden email]> wrote:
>> I'm still trying to get this tutorial todo app to work.
>>
>> I created the components and the initializeMenuComponent is throwing an
>> error.
>>
>> This is the syntax of what is being executed:  I copy/pasted from the
>> tutorial text.
>>
>> initializeMenuComponent
>>
>>  self menuComponent: (StMenuComponent new
>>   addEntry: 'All' withAction: [self showAllTasks];
>>   addEntry: 'Completed' withAction: [self showCompletedTasks];
>>   addEntry: 'Pending' withAction: [self showPendingTasks];
>>   addEntry: 'Missed' withAction: [self showMissedTasks];
>>   yourself).
>>
>> This is the error I get:
>>
>> Seaside Walkback
>>
>> MessageNotUnderstood: UndefinedObject>>new
>>
>> Debug Proceed Full Stack
>>
>> Possible Causes
>>
>> the receiver of the message is nil
>> a class extension hasn't been loaded correctly
>> you sent the wrong message
>>
>> Stack Trace
>>
>> thisContext UndefinedObject(Object)>>doesNotUnderstand: #new self nil
>> aMessage new
>> thisContext StRootComponent>>initializeMenuComponent self a
>> StRootComponent
>> thisContext StRootComponent>>initialize self a StRootComponent
>> thisContext StRootComponent class(WAPresenter class)>>new self
>> StRootComponent
>> thisContext WARenderLoopMain>>createRoot self a WARenderLoopMain
>>
>> Can anyone give me a hint.  Sorry, I'm just getting started with
>> Smalltalk
>> et al.
>>
>> I'm using Squeak 10 and Seaside 2.8
>> _______________________________________________
>> 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
>
>
> End of seaside Digest, Vol 73, Issue 15
> ***************************************
>

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

Re: Tutorial issue

Victor-67
If you would use the TDD (test driven development) practice with SUnit, it
probably would have been a faster issue identification process.

Victor

============================================

----- Original Message -----
From: "Steve Bleeke" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, January 15, 2009 8:35 AM
Subject: [Seaside] Tutorial issue


>I think that is what I did.  I created the method before creating the class
>that it references.  It is a subtle issue that a new person would not see
>the effect.  I will watch that from now on.
>
> ----- Original Message -----
> From: <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, January 15, 2009 7:00 AM
> Subject: seaside Digest, Vol 73, Issue 15
>
>
>> Send seaside mailing list submissions to
>> [hidden email]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>> or, via email, send a message with subject or body 'help' to
>> [hidden email]
>>
>> You can reach the person managing the list at
>> [hidden email]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of seaside digest..."
>>
>>
>> Today's Topics:
>>
>>   1. RE: Value of a fileUpload element? (Boris Popov)
>>   2. tutorial issue (Steve Bleeke)
>>   3. Re: tutorial issue (James Foster)
>>   4. Re: tutorial issue (Julian Fitzell)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Wed, 14 Jan 2009 13:25:23 -0800
>> From: "Boris Popov" <[hidden email]>
>> Subject: RE: [Seaside] Value of a fileUpload element?
>> To: "Seaside - general discussion"
>> <[hidden email]>
>> Message-ID:
>> <[hidden email]>
>>
>> Content-Type: text/plain; charset="US-ASCII"
>>
>> Looks like Gmail editor might soon replace all Smalltalk browsers...
>>
>> -Boris
>>
>> --
>> +1.604.689.0322
>> DeepCove Labs Ltd.
>> 4th floor 595 Howe Street
>> Vancouver, Canada V6C 2T5
>> http://tinyurl.com/r7uw4
>>
>> [hidden email]
>>
>> CONFIDENTIALITY NOTICE
>>
>> This email is intended only for the persons named in the message header.
>> Unless otherwise indicated, it contains information that is private and
>> confidential. If you have received it in error, please notify the sender
>> and delete the entire message including any attachments.
>>
>> Thank you.
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]] On Behalf Of Jan van
>> de Sandt
>> Sent: Wednesday, January 14, 2009 1:22 PM
>> To: Seaside - general discussion
>> Subject: Re: [Seaside] Value of a fileUpload element?
>>
>> Yes, this works great. Thanks!
>>
>> Cheers,
>> Jan.
>>
>>
>> On Wed, Jan 14, 2009 at 9:54 PM, Lukas Renggli <[hidden email]>
>> wrote:
>>
>>
>> > But for me this is only half the solution. Based on that value
>> I need to
>> > update the values of some hidden input fields in the same
>> form. How can I
>> > add the ajax update in the same onChange code?
>>
>>
>> Try something along the following untested code (just wrote it
>> here in Gmail):
>>
>>
>> >             html paragraph: [
>> >                 html fileUpload
>> >                     name: 'file';
>> >                     onChange: (html jQuery ajax
>> >                         callback: [ :value | self
>> handleNewFile: value ]
>>
>> >                         value: (html jQuery this value);
>>                           script: [ :script |
>>                               script add: ((s jQuery id: 'form')
>>                                     append: [ :h | h hiddenInput
>> callback: [ :v | ... ] ]) ]) ]
>>
>>
>> Cheers,
>> Lukas
>>
>> --
>> Lukas Renggli
>> http://www.lukas-renggli.ch
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Wed, 14 Jan 2009 19:55:45 -0500
>> From: "Steve Bleeke" <[hidden email]>
>> Subject: [Seaside] tutorial issue
>> To: <[hidden email]>
>> Message-ID: <[hidden email]>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> I'm still trying to get this tutorial todo app to work.
>>
>> I created the components and the initializeMenuComponent is throwing an
>> error.
>>
>> This is the syntax of what is being executed:  I copy/pasted from the
>> tutorial text.
>>
>> initializeMenuComponent
>>
>> self menuComponent: (StMenuComponent new
>>  addEntry: 'All' withAction: [self showAllTasks];
>>  addEntry: 'Completed' withAction: [self showCompletedTasks];
>>  addEntry: 'Pending' withAction: [self showPendingTasks];
>>  addEntry: 'Missed' withAction: [self showMissedTasks];
>>  yourself).
>>
>> This is the error I get:
>>
>> Seaside Walkback
>> MessageNotUnderstood: UndefinedObject>>new
>> Debug Proceed Full Stack
>>
>> Possible Causes
>>  a.. the receiver of the message is nil
>>  b.. a class extension hasn't been loaded correctly
>>  c.. you sent the wrong message
>> Stack Trace
>>  1..
>>    thisContext
>>    UndefinedObject(Object)>>doesNotUnderstand: #new
>>    self
>>    nil
>>    aMessage
>>    new
>>  2..
>>    thisContext
>>    StRootComponent>>initializeMenuComponent
>>    self
>>    a StRootComponent
>>  3..
>>    thisContext
>>    StRootComponent>>initialize
>>    self
>>    a StRootComponent
>>  4..
>>    thisContext
>>    StRootComponent class(WAPresenter class)>>new
>>    self
>>    StRootComponent
>>  5..
>>    thisContext
>>    WARenderLoopMain>>createRoot
>>    self
>>    a WARenderLoopMain
>> Can anyone give me a hint.  Sorry, I'm just getting started with
>> Smalltalk et al.
>>
>> I'm using Squeak 10 and Seaside 2.8
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090114/dc649496/attachment.html
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Wed, 14 Jan 2009 17:11:49 -0800
>> From: James Foster <[hidden email]>
>> Subject: Re: [Seaside] tutorial issue
>> To: Seaside - general discussion <[hidden email]>
>> Message-ID: <[hidden email]>
>> Content-Type: text/plain; charset=US-ASCII; format=flowed
>>
>> Hi Steve,
>>
>> Could you post the contents of this method:
>>
>>> StRootComponent>>initializeMenuComponent
>>
>> James Foster
>>
>>
>> ------------------------------
>>
>> Message: 4
>> Date: Thu, 15 Jan 2009 08:45:14 +0100
>> From: "Julian Fitzell" <[hidden email]>
>> Subject: Re: [Seaside] tutorial issue
>> To: "Seaside - general discussion"
>> <[hidden email]>
>> Message-ID:
>> <[hidden email]>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Did you perhaps write and save that method before creating the
>> StMenuComponent class? If so, the method will have been compiled
>> without a reference to the class (because it didn't exist).
>>
>> Try typing something in the method and then deleting it so it thinks
>> it has changed and then saving it again.
>>
>> Julian
>>
>> On Thu, Jan 15, 2009 at 1:55 AM, Steve Bleeke <[hidden email]> wrote:
>>> I'm still trying to get this tutorial todo app to work.
>>>
>>> I created the components and the initializeMenuComponent is throwing an
>>> error.
>>>
>>> This is the syntax of what is being executed:  I copy/pasted from the
>>> tutorial text.
>>>
>>> initializeMenuComponent
>>>
>>>  self menuComponent: (StMenuComponent new
>>>   addEntry: 'All' withAction: [self showAllTasks];
>>>   addEntry: 'Completed' withAction: [self showCompletedTasks];
>>>   addEntry: 'Pending' withAction: [self showPendingTasks];
>>>   addEntry: 'Missed' withAction: [self showMissedTasks];
>>>   yourself).
>>>
>>> This is the error I get:
>>>
>>> Seaside Walkback
>>>
>>> MessageNotUnderstood: UndefinedObject>>new
>>>
>>> Debug Proceed Full Stack
>>>
>>> Possible Causes
>>>
>>> the receiver of the message is nil
>>> a class extension hasn't been loaded correctly
>>> you sent the wrong message
>>>
>>> Stack Trace
>>>
>>> thisContext UndefinedObject(Object)>>doesNotUnderstand: #new self nil
>>> aMessage new
>>> thisContext StRootComponent>>initializeMenuComponent self a
>>> StRootComponent
>>> thisContext StRootComponent>>initialize self a StRootComponent
>>> thisContext StRootComponent class(WAPresenter class)>>new self
>>> StRootComponent
>>> thisContext WARenderLoopMain>>createRoot self a WARenderLoopMain
>>>
>>> Can anyone give me a hint.  Sorry, I'm just getting started with
>>> Smalltalk
>>> et al.
>>>
>>> I'm using Squeak 10 and Seaside 2.8
>>> _______________________________________________
>>> 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
>>
>>
>> End of seaside Digest, Vol 73, Issue 15
>> ***************************************
>>
>
> _______________________________________________
> 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