cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <reinhard_po...@yahoo.de>
Subject Ant: [cforms] compact notation for <fi:styling>
Date Fri, 23 Sep 2005 10:51:41 GMT

--- Sylvain Wallez <sylvain@apache.org> schrieb:

> Hi all,
> 
> I'd like to introduce a compact notation on form
> template elements for 
> stylings that require only attributes (the vast
> majority of them).
> 
> For example, we currently have to write:
>   <ft:widget id="text">
>     <fi:styling type="textarea" rows="10"
> cols="30"/>
>   </ft:widget>
> 
> The compact notation would allow to write:
>   <ft:widget id="text" type="textarea" rows="10"
> cols="30"/>
> 
> The more verbose form will still be allowed, and
> both forms will produce 
> the same results, as foreign attributes on
> "ft:widget" will lead to 
> generating a <fi:styling> with these attributes.
> 
> Another thing I'd like to change also is the need
> for 
> submit-on-change="true", making it implicit on
> widgets that have some 
> attached change listeners.
> 
> That will make form templates less verbose and
> closer to the traditional 
> html syntax.
> 
> Any objections?

generally not. While reading your proposal I had the
idea of using prefixed attributes to make it very
clear that they contain styling information:

<ft:widget id="text" fi:type="textarea" fi:rows="10"
fi:cols="30"/>

This should also help with validation.

--
Reinhard


	

	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

Mime
View raw message