[Seaside] Tutorial issue
Steve Bleeke
sbleeke at msn.com
Thu Jan 15 13:35:19 UTC 2009
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: <seaside-request at lists.squeakfoundation.org>
To: <seaside at lists.squeakfoundation.org>
Sent: Thursday, January 15, 2009 7:00 AM
Subject: seaside Digest, Vol 73, Issue 15
> Send seaside mailing list submissions to
> seaside at lists.squeakfoundation.org
>
> 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
> seaside-request at lists.squeakfoundation.org
>
> You can reach the person managing the list at
> seaside-owner at lists.squeakfoundation.org
>
> 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" <boris at deepcovelabs.com>
> Subject: RE: [Seaside] Value of a fileUpload element?
> To: "Seaside - general discussion"
> <seaside at lists.squeakfoundation.org>
> Message-ID:
> <1D2D28C7CCC4814D8475CBF41E13DEE30166C6FA at EMAIL2.exchange.electric.net>
>
> 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
>
> boris at deepcovelabs.com
>
> 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: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] 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 <renggli at gmail.com>
> 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
> seaside at lists.squeakfoundation.org
>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 14 Jan 2009 19:55:45 -0500
> From: "Steve Bleeke" <sbleeke at msn.com>
> Subject: [Seaside] tutorial issue
> To: <seaside at lists.squeakfoundation.org>
> Message-ID: <BLU0-SMTP4781C4EDC43EBFA62EF93DB6D70 at phx.gbl>
> 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 <Smalltalk at JGFoster.net>
> Subject: Re: [Seaside] tutorial issue
> To: Seaside - general discussion <seaside at lists.squeakfoundation.org>
> Message-ID: <D446446D-3464-4FFD-856B-841E20D54059 at JGFoster.net>
> 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" <jfitzell at gmail.com>
> Subject: Re: [Seaside] tutorial issue
> To: "Seaside - general discussion"
> <seaside at lists.squeakfoundation.org>
> Message-ID:
> <4a5dbd430901142345x42a4027bld4ee35f8dc491fa4 at mail.gmail.com>
> 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 <sbleeke at msn.com> 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
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>
>
> ------------------------------
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
> End of seaside Digest, Vol 73, Issue 15
> ***************************************
>
More information about the seaside
mailing list