Paloma Gomez wrote:
Hi all,

I'd like to create a custom usecase to show the user data retrieved
from a database and a form. I already have a js file with the code
needed  to access the database and I'm trying to find a way of
invoking it within the usecase processing.

After reading the usecase framework documentation, I have come to the
conclusion that the only way currently available for adding custom
flowscript to the usecase processing is to implement its view as a
form (with cforms).

Currently, the usecase framework doesn't support custom flowscripts.
It is kept as simple as possible, and one compromise was to disallow
custom flowscripts.

I'd suggest to migrate the server-side Javascript to Java and access
it from the usecase handler class. The maintainability of your codebase
will certainly benefit from a Java-only approach.


However, looking at usecases already implemented I've noticed that
some of them use jx templates which load js files in their <head>
section. I'd like to confirm if this javascript code is executed on
the client side (so the objects and functions created with it are not
accesible from the jx tags).

You are right, this is client-side javascript.

-- Andreas

--
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                     [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to