cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Walsh (JIRA)" <>
Subject [jira] Updated: (COCOON-1418) [PATCH] CForm definitions using JXTemplate
Date Thu, 16 Mar 2006 07:01:12 GMT
     [ ]

Adam Walsh updated COCOON-1418:


Hi Jean-Baptiste, here's an updated patch that replaces attachments 1 and 3.

> [PATCH] CForm definitions using JXTemplate
> ------------------------------------------
>          Key: COCOON-1418
>          URL:
>      Project: Cocoon
>         Type: Improvement
>   Components: Blocks: Forms
>     Versions: 2.1.8
>  Environment: Operating System: All
> Platform: PC
>     Reporter: Adam Walsh
>     Assignee: Jean-Baptiste Quenot
>     Priority: Minor
>  Attachments: Form.js.diff, Form.js.diff,,,
> This is a patch that I needed to implement for a project I'm working on and that
> someone else may find useful. I have CForm definitions being created with a
> JXTemplate instead of a static XML file and needed to be able to pass some
> objects through to the JXTemplate. This patch allows me to create forms like:
> var form = new Form("cocoon:/form1.jx", {"bean" : bean});
> form.createBinding("cocoon:/form1Bind.jx", null, {"bean" : bean});
> and then from within the JXTemplate I can use the objects like ${}
> There's probably a better way to do the changes I made in Form.js, but this is
> what I'm using in my project at the moment so hopefully someone will find it useful.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message