|
From: <jue...@we...> - 2004-10-07 13:07:47
|
Another request to simply <property> usage in XML bean definitions: http://opensource.atlassian.com/projects/spring/browse/SPR-379 This time, it's not about considering CDATA inside = <property>...</property> as value, but rather about further attributes = for the <property> tag itself: <property name=3D"user" value=3D"admin"/>=20 <property name=3D"linkFormatter" bean=3D"linkFormatter"/>=20 I'd probably name the bean reference attributes differently, i.e. = "ref-bean" respectively "ref-local". But the general idea is not bad - = it's cleaner than the CDATA-as-value suggestion, I guess. Let's compare the currently necessary markup: <property name=3D"user"><value>admin</value></property> <property name=3D"linkFormatter"><ref = bean=3D"linkFormatter"/></property> Which is clearly more verbose, even if not too much. The main advantage = of the attribute version is that it avoids closing tags completely. Thoughts? Juergen |