|
From: R.J. L. <rjl...@co...> - 2004-10-07 18:20:45
|
That's definitely nice, especially when you don't need room for anything = but a simple string or bean name. R.J.=20 -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf = Of Dmitriy Kopylenko Sent: Thursday, October 07, 2004 8:31 AM To: spr...@li... Subject: Re: [Springframework-developer] Simplify typical xml setup = syntax I kinda like property's attributes version. More concise. Dmitriy. j=FCrgen h=F6ller [werk3AT] wrote: >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"/> <property = name=3D"linkFormatter"=20 > bean=3D"linkFormatter"/> > >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 > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on=20 >ITManagersJournal Use IT products in your business? Tell us what you=20 >think of them. Give us Your Opinions, Get Free ThinkGeek Gift=20 >Certificates! Click to find out more=20 >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > =20 > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal = Use IT products in your business? Tell us what you think of them. Give us = Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |