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

Yuet Ip sentraca at gmail.com
Fri Apr 6 08:05:55 UTC 2012


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 <sentraca at gmail.com>
Date: Fri, Apr 6, 2012 at 12:33 AM
Subject: JQueryMobile, Seaside 3.0.6 on Pharo, call answer refresh issue
To: seaside at lists.squeakfoundation.org


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' ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120406/35567993/attachment-0001.htm


More information about the seaside mailing list