[Seaside] livecallbacks not working after moving
to latest Seaside/SeasideAsync...
m.bany at wanadoo.fr
Sat Jan 27 09:39:11 UTC 2007
Rick Flower a écrit :
> Rick Flower wrote:
>> I guess I've got my work cut out for me today.. I moved up from
>> Seaside 2.6b1 v108 to the latest
>> and greatest (along w/ the latest and greatest SeasideAsync) and
>> found my Seaside ASync stuff
>> no longer works (my old code was using a version from last October)..
>> I've fixed my code per
>> the comments I read on the list (and in the Cincom public repository)
>> and changed out the
>> renderer as needed.. I also changed the base class from WAComponent
>> to WAAsyncComponent. I've also got my code importing SAsyncScripts as
>> well.. Anyway, I've got a breakpoint
>> in my code for the livecallback and it never hits.. Did I miss some
>> sort of mod to my code? Below is a sample of my code setting up my
>> (html select) list: aUserList; selected: aUserList first;
>> labels: [:item | item familyId = 1
>> ifTrue: [item nameLast]
>> ifFalse: [item nameLast , ' (#' , item familyId
>> asString , ')'] ];
>> callback: [self error: 'Should not come here'];
>> liveCallback: [:item :h | self renderUsersLiveCallback: item
>> on: h ]
> Ok.. I think I got past some of this.. I looked at the aSync tests and
> found that the code
> was a bit different... I'm in the process of converting my code to
> use the Async versions of
> the code.. I'm stumped on this one though :
> html passwordInput callback: [:c | self password: ((MD5 hash: c)
> asHexString asLowercase) ]
> I get an error when it's calling the callback before its supposed to..
> If it matters, I've now got my
> rendererClass set to WAAsyncHtmlRenderer instead of
> WAAsyncRenderCanvas like the notes indicated.. Any ideas why I should
> use one renderer over the other?
Since your code appears to be using the canvas api, the correct renderer
You would have to use the other renderer for your components that use
the classic api.
> I only started using the first one since that is what the test code
> was doing.. Unfortunately, much of my code is now DOA and needs lots
> of fiddling -- anchors, forms, etc.
> Any ideas on what renderer or why my callbacks are being called before
> they're supposed to would be greatly appreciated!
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> Orange vous informe que cet e-mail a ete controle par l'anti-virus
> mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
More information about the Seaside