[daisy] Ajax extension

Yves Langisch yves at langisch.ch
Fri Aug 25 01:35:51 CDT 2006


Hi,

I'd like to write an apple-based extension which contains a form with
some Ajax widgets like the suggestion-list on it. My problem now is that
the Cocoon implementation obviously requires the form object to be
stored in the current continuation as an attribute . My current solution
is as follows:

protected void processInternal(AppleRequest appleRequest, AppleResponse
appleResponse) throws Exception {
...
contManager =
(ContinuationsManager)serviceManager.lookup(ContinuationsManager.ROLE);
WebContinuation wk =
contManager.lookupWebContinuation(getContinuationId(),
"file:/C:/projects/daisy/BRANCH_1_5_X/daisy/applications/daisywiki/frontend/target/cocoon/webapp/daisy/wp/sitemap.xmap");
wk.setAttribute("form", form);
...

Another point is that the interprerId needed for lookup is currently
hardcoded. I wasn't able to get the interpreterId out of the
SiteParameters class.

Any ideas or comments?

Thanks
Yves




More information about the daisy mailing list