cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Stochmialek <>
Subject Re: template.jx - up to date?
Date Sun, 26 Sep 2004 12:20:46 GMT
On Sun, Sep 26, 2004 at 02:06:41PM +0200, Sylvain Wallez wrote:

> template.jx in its current state is designed to work speciffically with 
> v2/Forms.js, as the relies on the fact that v2/Form.js publishes the 
> form itself as the view's context object.
> I personally don't like this behaviour, as it prevents passing other 
> data than the form to the view, which can be very restrictive. If you 
> consider the "current" Form.js (not v2 nor v3), the prototype of 
> Form.showForm is the same as cocoon.sendPageAndWait().
> I'm currently working on an updated version of these macros, where there 
> is no automagical publication of top-level widgets as jx variables and 
> where "current_widget_" becomes "currentWidget" that is publicly 
> available, along with "form" which references the form defined by the 
> enclosing ft:form-template.

I've updated it myself for my private use. The idea behind those changes
are similar to yours, but i'm also curious details of your implementation.
Could you let me know (on cocoon-dev), when you finish it? Thanks in advance.

Michal Stochmialek <>

View raw message