cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: [CForms/flow/ajax] Weird problem with ajax="true"
Date Fri, 14 Oct 2005 17:05:44 GMT
Felix Röthenbacher wrote:

> 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 ... ?


This isn't what happens, as sendStatus() calls setStatus() on the 
HttpServletResponse, but doesn't close the stream.

Thorsten, can you provide us with some useful extract of the sitemap?

Sylvain

-- 
Sylvain Wallez                        Anyware Technologies
http://people.apache.org/~sylvain     http://www.anyware-tech.com
Apache Software Foundation Member     Research & Technology Director


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message