Hi Thorsten
Thorsten Scherler wrote:
Hey all,
lenya just added the dynamic repeater example to the default pub. The
problem with it is, that if we use ajax="true" and submit the form we
lose the focus on the flow script.
It shows the form (form.show()) and then after submitting the form it
does not return to the flow script (usecase.js).
The browserupdater.js used with Ajax checks for the header
X-Cocoon-Ajax = continue
If true, a request is sent back to the server so it exits from
Form.showForm(). Unfortunately, the request is not compatible with
Lenya's usecase management (needs a parameter lenya.usecase to know
which usecase it is in). Additionally, Ajax expects the continuation
id in "continuation-id" whereas Lenya uses "lenya.continuation" for
that.
Maybe browserupdater.js can be made more generic so that
it also fits for Lenya?
Instead I get http://pastebin.com/393378
java.lang.IllegalStateException.
The problem is that in
./src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript/Form.js
cocoon.sendStatus(200);
seems to close the OutputStream while the following code tries
to write to this same OutputStream -> IllegalStateException.
A cheap workaround is to comment the workaround for safari ...
I wonder why I didn't see this exception when running the cocoon
samples ... ?
- Felix
Does anybody have seen this issue before with cforms and flow?
Any ideas and input very welcome.
salu2
--
Felix Röthenbacher [EMAIL PROTECTED]
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]