hi jürgen!
Jürgen Ragaller wrote:
Hi
I have to implement a rather complex contact form in lenya.
It would be nice to benefit from the cocoon cform features (validation,
i18n, flow, etc.).
The modules I looked at for inspiration were cforms (using cforms for a
resource-type/usecase) and contactform (using jx/java without a cform).
I'm a still a bit confused here
- The cforms module has a custom Flowscript featuring a customLoopFlow
and a customSubmitFlow
Is it a customSubmitFlow I have to write in my case (and reqister the
form Definition / Binding / View there)?
yes. these two functions are meant to sneak in custom flow code without
having to replicate all the boilerplate stuff around it.
In the usecase framework docu I read that «Some special complex usecases
might require a custom flowscript, in this case you can't use this
framework». The customSubmitFlow mechanism seems to be an option to
write a custom flow for a 2.0 usecase - or do I walk in the wrong
direction?
those docs should be updated. i think as it is now, pretty much
everything can be done using the genericc usecases.js flow (and custom
loop and submit functions).
--
Jörn Nettingsmeier
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]