cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Fagerstrom <>
Subject Re: Whiteboard Forms - Reusable form definitions (imports)
Date Tue, 08 Mar 2005 15:27:32 GMT
Tim Larson wrote:

>On Tue, Mar 08, 2005 at 11:09:08AM +0100, Daniel Fagerstrom wrote:
>>Then in the template you write:
>> <ft:widget name="date">
>>   <ft:label>birthday</ft:label>
>> </ft:widget>
>>By placing labels, hints etc in the template (view) instead of in the 
>>widget definition you get rid of the view info from the "model" and by 
>>improving SoC it becomes easier for people that are web designers rather 
>>than programmers to work with on the view aspect of the application.
>The label was put in the model to facilitate the common case of using
>the same label across multiple templates.  While this can be handy, it
>also causes problems because labels are logically a view concern.
>Perhaps we could relieve this tension by treating any label specified
>in the model as merely a default, and allowing templates to override
>this by supplying an optional explicit ft:label element.


View raw message