On Fre, 2006-09-08 at 18:59 +0200, Jörn Nettingsmeier wrote:
> hi everyone!
>
>
> i would like to enable continuations for usecases that employ a uri
> view, so that they behave just like usecases with jxtemplate views.
>
> please review the attached (trivial) patch and share your insights.
>
>
> a quick grep through the lenya source shows that only 3 other usecases
> use uri views:
>
> [EMAIL PROTECTED]:/srv/lenya/src> grep -r "<view.*uri" *
>
> modules/bxe/config/cocoon-xconf/usecase-bxe.xconf:
> <view uri="cocoon://modules/bxe/bxe.open" menu="false"/>
> modules/bxe/config/cocoon-xconf/usecase-bxe-close.xconf:
> <view uri="cocoon://modules/bxe/bxe.close" menu="false"/>
> modules-optional/jcrsource/config/cocoon-xconf/usecase-export.xconf:
> <view uri="cocoon://modules/jcrsource/lenya-repository-content.xml"
> menu="false"/>
>
> i'm not sure what will happen to them. my guess is they should Just
> Work, but i can't test it atm.
>
i tested it for the bxe uscases and it seems to have no impact.
i couldn't test the jcrsource uscase though.
i also would like the possibility to use uri instead of jxtemplate for
views.
simon
>
> regards,
>
> jörn
>
>
>
> einfaches Textdokument attachment (usecase-uriview-enable_cont.diff)
> Index: src/webapp/lenya/usecases/usecases.js
> ===================================================================
> --- src/webapp/lenya/usecases/usecases.js (revision 441201)
> +++ src/webapp/lenya/usecases/usecases.js (working copy)
> @@ -190,10 +190,14 @@
> if (viewUri.startsWith("cocoon:/")) {
> viewUri = viewUri.substring(new
> Packages.java.lang.String("cocoon:/").length());
> }
> - cocoon.sendPage(viewUri, {
> + if (cocoon.log.isDebugEnabled())
> + cocoon.log.debug("usecases.js::executeUsecase() in
> usecase " + usecaseName + ", creating view, calling Cocoon with viewUri = ["
> + viewUri + "]");
> +
> + cocoon.sendPageAndWait(viewUri, {
> "usecase" : proxy
> });
> - return;
> + //cocoon.sendpage(viewUri, { "usecase" : proxy });
> + //return;
> }
> }
> catch (exception) {
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Simon Litwan [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]