cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: template.jx - up to date?
Date Sun, 26 Sep 2004 12:54:01 GMT
Michal Stochmialek wrote:

>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.

It works with Woody (I needed it for an old project), but the macros for 
ft:class and fr:new are not yet finished. I should be able to commit it 
in the coming days (need to spend a few hours on it).


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

View raw message