JQueryMobile, Seaside 3.0.6 on Pharo, call answer refresh issue

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

JQueryMobile, Seaside 3.0.6 on Pharo, call answer refresh issue

Yuet Ip
All,

I'm using JQueryMobile (ConfigurationOfJQueryMobile-NickAger.25) on Seaside 3.0.6 on Pharo1.3 #13302.

A call, answer followed by browser refresh sequence results in the user being taken back to the "called" component rather than the "caller".
The same components when registered through WAAdmin rather than JQMAdmin work as expected.

Any chance someone could shed some light on this?

As far as I can tell, it could be getting the wrong WAActionPhaseContinuation or somehow the WASnapshot retains the called WADelegate decoration (even though, this decoration appeared to be removed correctly from the render continuation post answer !?).

Well, any help would be appreciated.

Yuet
-----------------------------------------------------------------------------------------------

Caller Component

WAComponent subclass: #AATestMainComponent
instanceVariableNames: 'testValue'
classVariableNames: ''
poolDictionaries: ''
category: 'AATest'


renderContentOn: html
html 
anchor
callback: [
testValue := self call: AATestGetValueComponent new
];
with:  '(1) Click here to set the Test Value'.
html
break;
text: ' (2) The Test Value is: ',  testValue greaseString.
html
break;
text: '(3) Now press the REFRESH button on the browser'.


Called component

WAComponent subclass: #AATestGetValueComponent
instanceVariableNames: 'testValue'
classVariableNames: ''
poolDictionaries: ''
category: 'AATest'


renderContentOn: html
html form
with: [
html label
for: html nextId;
with: 'Test Value'.
html textInput 
on: #testValue of: self;
id: html lastId.
html button
callback: [ self answer: testValue ];
with: 'Accept' ]


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

Fwd: JQueryMobile, Seaside 3.0.6 on Pharo, call answer refresh issue

Yuet Ip
All,

I think I've found the answer: 
     My mistake (as usual) -  I was missing an all important call to set includeDataUrl to true.

updateRoot: anHtmlRoot
super updateRoot: anHtmlRoot.
"ensures that the mobile displays the redirected url in the address bar - essential for
the test suites RESTful interface"
anHtmlRoot includeDataUrl: true.

Well, its here just in case anyone else should should be silly enough to make the same mistake.


Yuet

---------- Forwarded message ----------
From: Yuet Ip <[hidden email]>
Date: Fri, Apr 6, 2012 at 12:33 AM
Subject: JQueryMobile, Seaside 3.0.6 on Pharo, call answer refresh issue
To: [hidden email]


All,

I'm using JQueryMobile (ConfigurationOfJQueryMobile-NickAger.25) on Seaside 3.0.6 on Pharo1.3 #13302.

A call, answer followed by browser refresh sequence results in the user being taken back to the "called" component rather than the "caller".
The same components when registered through WAAdmin rather than JQMAdmin work as expected.

Any chance someone could shed some light on this?

As far as I can tell, it could be getting the wrong WAActionPhaseContinuation or somehow the WASnapshot retains the called WADelegate decoration (even though, this decoration appeared to be removed correctly from the render continuation post answer !?).

Well, any help would be appreciated.

Yuet
-----------------------------------------------------------------------------------------------

Caller Component

WAComponent subclass: #AATestMainComponent
instanceVariableNames: 'testValue'
classVariableNames: ''
poolDictionaries: ''
category: 'AATest'


renderContentOn: html
html 
anchor
callback: [
testValue := self call: AATestGetValueComponent new
];
with:  '(1) Click here to set the Test Value'.
html
break;
text: ' (2) The Test Value is: ',  testValue greaseString.
html
break;
text: '(3) Now press the REFRESH button on the browser'.


Called component

WAComponent subclass: #AATestGetValueComponent
instanceVariableNames: 'testValue'
classVariableNames: ''
poolDictionaries: ''
category: 'AATest'


renderContentOn: html
html form
with: [
html label
for: html nextId;
with: 'Test Value'.
html textInput 
on: #testValue of: self;
id: html lastId.
html button
callback: [ self answer: testValue ];
with: 'Accept' ]



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside