liveCallBack and spanNamed bug

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

liveCallBack and spanNamed bug

Florian Minjat
Hi,
   I am running Squeak3.8g-6548 with DynamicBindings (1.2),
KomServices (1.1.2), KomHttpServer (7.0.3) and Seaside (2.5).
   I have strange behavior with liveCallBack and multi spanNamed. When
I put several spanNamed:with: in a LiveCallBack, the first one works
fine, modifying the existing span, but the second one is written
immediatly after the first one, instead of modifying the existing one
(and there are two span with the same Id).
   There is an exemple in attachement.
   Any idea why the second spanNamed replacement is not working ?
   Thanks in advance,

Florian

'From Squeak3.8gamma of ''24 November 2004'' [latest update: #6548] on 30 January 2006 at 3:21:21 pm'!
WAComponent subclass: #WATestLive
        instanceVariableNames: 'selected'
        classVariableNames: ''
        poolDictionaries: ''
        category: 'FoilFoil'!

!WATestLive methodsFor: 'as yet unclassified' stamp: 'FM 1/30/2006 15:03'!
initialize
        self session registerObjectForBacktracking: self.! !

!WATestLive methodsFor: 'as yet unclassified' stamp: 'FM 1/30/2006 15:17'!
renderContentOn: html
        | selectList |

        selectList := OrderedCollection newFrom: { 1 . 2 . 3 . 4 . 5 }.
        selected ifNil: [selected := selectList at: 1].

        self renderOne: html.
        html selectFromList: selectList
                        selected: selected
                        callback: [:i | selected := i]
                        labels: [:i | i asString]
                        liveCallback: [:i :h |
                                selected := i.
                                self renderOne: h.
                                self renderTwo: h.
                        ].
        html break.
        self renderTwo: html! !

!WATestLive methodsFor: 'as yet unclassified' stamp: 'FM 1/30/2006 15:06'!
renderOne: html

        html spanNamed: 'One' with: [ html text: 'One :', selected asString; break. ]! !

!WATestLive methodsFor: 'as yet unclassified' stamp: 'FM 1/30/2006 15:16'!
renderTwo: html

        html spanNamed: 'Two' with: [ html text: 'Two :', (selected * 10) asString; break ]! !

"-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- "!

WATestLive class
        instanceVariableNames: ''!

!WATestLive class methodsFor: 'as yet unclassified' stamp: 'FM 1/30/2006 15:03'!
canBeRoot
        ^ true! !

!WATestLive class methodsFor: 'as yet unclassified' stamp: 'FM 1/30/2006 15:03'!
initialize
        (self registerAsApplication: 'testLive')
! !


WATestLive initialize!

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

RE: liveCallBack and spanNamed bug

Bany, Michel
Not a bug, but a lacking feature.
You need to use a better version of Seaside for achieving this.
Try with Seaside2.5b8-mb.34.mcz from squeaksource.
Or try with Seaside2.6a2-mb.106.mcz together with
SeasideAsync-mb.22.mcz.
Best luck,
Michel.

 

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf
> Of Florian Minjat
> Sent: Monday, January 30, 2006 3:22 PM
> To: [hidden email]
> Subject: [Seaside] liveCallBack and spanNamed bug
>
> Hi,
>    I am running Squeak3.8g-6548 with DynamicBindings (1.2),
> KomServices (1.1.2), KomHttpServer (7.0.3) and Seaside (2.5).
>    I have strange behavior with liveCallBack and multi
> spanNamed. When I put several spanNamed:with: in a
> LiveCallBack, the first one works fine, modifying the
> existing span, but the second one is written immediatly after
> the first one, instead of modifying the existing one (and
> there are two span with the same Id).
>    There is an exemple in attachement.
>    Any idea why the second spanNamed replacement is not working ?
>    Thanks in advance,
>
> Florian
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: liveCallBack and spanNamed bug

Florian Minjat
I just loaded Seaside2.6a2 but didn't find any SeasideAsync-mb.22 on
SqueakMap.
As far as I understand, the liveCallBack stuff has been removed from
the 2.6a2 version of Seaside. But after playing a while, I don't see
how to get the same behavior with the new api.
Is there a document describing the differences between 2.5 and 2.6a ?
Thanks,

Florian

Bany, Michel wrote:

> Not a bug, but a lacking feature.
> You need to use a better version of Seaside for achieving this.
> Try with Seaside2.5b8-mb.34.mcz from squeaksource.
> Or try with Seaside2.6a2-mb.106.mcz together with
> SeasideAsync-mb.22.mcz.
> Best luck,
> Michel.
>
>  
>
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]] On Behalf
>> Of Florian Minjat
>> Sent: Monday, January 30, 2006 3:22 PM
>> To: [hidden email]
>> Subject: [Seaside] liveCallBack and spanNamed bug
>>
>> Hi,
>>    I am running Squeak3.8g-6548 with DynamicBindings (1.2),
>> KomServices (1.1.2), KomHttpServer (7.0.3) and Seaside (2.5).
>>    I have strange behavior with liveCallBack and multi
>> spanNamed. When I put several spanNamed:with: in a
>> LiveCallBack, the first one works fine, modifying the
>> existing span, but the second one is written immediatly after
>> the first one, instead of modifying the existing one (and
>> there are two span with the same Id).
>>    There is an exemple in attachement.
>>    Any idea why the second spanNamed replacement is not working ?
>>    Thanks in advance,
>>
>> Florian
>>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: liveCallBack and spanNamed bug

Bany, Michel
In reply to this post by Florian Minjat
Load it from http://squeaksource.com/Seaside using the Monticello
Browser

> -----Original Message-----
> From: Florian Minjat [mailto:[hidden email]]
> Sent: Monday, January 30, 2006 5:47 PM
> To: Bany, Michel
> Cc: The Squeak Enterprise Aubergines Server - general discussion.
> Subject: Re: [Seaside] liveCallBack and spanNamed bug
>
> I just loaded Seaside2.6a2 but didn't find any
> SeasideAsync-mb.22 on SqueakMap.
> As far as I understand, the liveCallBack stuff has been
> removed from the 2.6a2 version of Seaside. But after playing
> a while, I don't see how to get the same behavior with the new api.
> Is there a document describing the differences between 2.5 and 2.6a ?
> Thanks,
>
> Florian
>
> Bany, Michel wrote:
> > Not a bug, but a lacking feature.
> > You need to use a better version of Seaside for achieving this.
> > Try with Seaside2.5b8-mb.34.mcz from squeaksource.
> > Or try with Seaside2.6a2-mb.106.mcz together with
> > SeasideAsync-mb.22.mcz.
> > Best luck,
> > Michel.
> >
> >  
> >
> >> -----Original Message-----
> >> From: [hidden email]
> >> [mailto:[hidden email]] On Behalf Of
> >> Florian Minjat
> >> Sent: Monday, January 30, 2006 3:22 PM
> >> To: [hidden email]
> >> Subject: [Seaside] liveCallBack and spanNamed bug
> >>
> >> Hi,
> >>    I am running Squeak3.8g-6548 with DynamicBindings (1.2),
> >> KomServices (1.1.2), KomHttpServer (7.0.3) and Seaside (2.5).
> >>    I have strange behavior with liveCallBack and multi spanNamed.
> >> When I put several spanNamed:with: in a LiveCallBack, the
> first one
> >> works fine, modifying the existing span, but the second one is
> >> written immediatly after the first one, instead of modifying the
> >> existing one (and there are two span with the same Id).
> >>    There is an exemple in attachement.
> >>    Any idea why the second spanNamed replacement is not working ?
> >>    Thanks in advance,
> >>
> >> Florian
> >>
> >
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: liveCallBack and spanNamed bug

Florian Minjat
Thanks for the link!
My liveCallBack works fine now :).
Is there news or descritions of the new api available somewhere?

Florian

Bany, Michel wrote:

> Load it from http://squeaksource.com/Seaside using the Monticello
> Browser
>
>> -----Original Message-----
>> From: Florian Minjat [mailto:[hidden email]]
>> Sent: Monday, January 30, 2006 5:47 PM
>> To: Bany, Michel
>> Cc: The Squeak Enterprise Aubergines Server - general discussion.
>> Subject: Re: [Seaside] liveCallBack and spanNamed bug
>>
>> I just loaded Seaside2.6a2 but didn't find any
>> SeasideAsync-mb.22 on SqueakMap.
>> As far as I understand, the liveCallBack stuff has been
>> removed from the 2.6a2 version of Seaside. But after playing
>> a while, I don't see how to get the same behavior with the new api.
>> Is there a document describing the differences between 2.5 and 2.6a ?
>> Thanks,
>>
>> Florian
>>
>> Bany, Michel wrote:
>>> Not a bug, but a lacking feature.
>>> You need to use a better version of Seaside for achieving this.
>>> Try with Seaside2.5b8-mb.34.mcz from squeaksource.
>>> Or try with Seaside2.6a2-mb.106.mcz together with
>>> SeasideAsync-mb.22.mcz.
>>> Best luck,
>>> Michel.
>>>
>>>  
>>>
>>>> -----Original Message-----
>>>> From: [hidden email]
>>>> [mailto:[hidden email]] On Behalf Of
>>>> Florian Minjat
>>>> Sent: Monday, January 30, 2006 3:22 PM
>>>> To: [hidden email]
>>>> Subject: [Seaside] liveCallBack and spanNamed bug
>>>>
>>>> Hi,
>>>>    I am running Squeak3.8g-6548 with DynamicBindings (1.2),
>>>> KomServices (1.1.2), KomHttpServer (7.0.3) and Seaside (2.5).
>>>>    I have strange behavior with liveCallBack and multi spanNamed.
>>>> When I put several spanNamed:with: in a LiveCallBack, the
>> first one
>>>> works fine, modifying the existing span, but the second one is
>>>> written immediatly after the first one, instead of modifying the
>>>> existing one (and there are two span with the same Id).
>>>>    There is an exemple in attachement.
>>>>    Any idea why the second spanNamed replacement is not working ?
>>>>    Thanks in advance,
>>>>
>>>> Florian
>>>>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: liveCallBack and spanNamed bug

Damien Cassou-3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Is there news or descritions of the new api available somewhere?

http://lists.squeakfoundation.org/pipermail/seaside/2005-June/005260.html

- --
Damien Cassou
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD4TyX3hhx1vOEX5sRAlt3AJ9wNGqYV157st1nJhmBmWVQWQPDyACeNrf7
6C80VZDQxoYn7thL1Bu4DPw=
=guQM
-----END PGP SIGNATURE-----
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside