|
From: Pieter C. <pie...@on...> - 2004-11-06 08:47:22
|
And if we combine your post with the one from Dion (defaults), we get: // Default, may be left out: <beans expr="string"> <value expr="string"> // Use this as the default for the whole xml file <beans expr="ognl"> // Use this if you don't want to use ognl in this property <value expr="string"> Pieter Guillaume Poirier wrote: > Well, using a tags would still allow to add <groovy>, <bsh>, > <javascript>, <ognl>. Or if adding tags cause problems (not sure why > it would though), then may be an either a new <expr>, or attribute to > value. > > e.g. <expr type="ognl">@java.sql.Types@INTEGER</expr> > or <value expr="ognl">@java.sql.Types@INTEGER</value> > > Guillaume > > ----- Original Message ----- From: "Dion Almaer" <di...@al...> > To: <spr...@li...> > Sent: Friday, November 05, 2004 7:47 PM > Subject: RE: [Springframework-developer] OGNL > > >> I kinda like a prefix, as it could allow: >> >> groovy:... >> bsh:... >> javascript:... (rhino) >> ognl:... >> >> Etc etc. >> >> However, I do understand the backwards compatibile need. Personally, >> I would >> love to be able to use prefixes and even set a "Default" so I can >> set-default="groovy" ;) >> >> D >> >> -----Original Message----- >> From: Guillaume Poirier [mailto:gpo...@gl...] >> Sent: Friday, November 05, 2004 5:25 PM >> To: spr...@li... >> Subject: Re: [Springframework-developer] OGNL >> >>> I am somewhat more attracted to the idea of using a prefix on the >>> value inside the <value> tag. >> >> >> While I admit that it would be unlikely to cause problem, using a >> prefix in >> a value tag is not 100% backward compatible. Someone could be using >> such >> prefix currently for a String that should be analysed by once injected, >> rather than by Spring. And I personally find an <ognl> tag more >> intuitive >> for the user. It's also somewhat easier to implement, not that it >> really >> matters much I guess. >> >>> My other concern is with the speed of OGNL. >> >> Adding OGNL support doesn't prevent from adding supports for other >> expression languages. :-) >> >> Guillaume >> >> ----- Original Message ----- >> From: "Colin Sampaleanu" <col...@ex...> >> To: <spr...@li...> >> Sent: Friday, November 05, 2004 4:46 PM >> Subject: Re: [Springframework-developer] OGNL >> >> >>> Rob, >>> >>> No Spring committer has done any work that I know of. However, if >>> you look >> >> >>> at the thread with the subject "PropertyPathFactoryBean", on Oct. 6th >>> Guillaume Poirier posted some OGNL patches. You might want to read his >>> email, and take a look at my reply too. Using a new element (<ognl> was >>> Guillaume's suggestion) would work in a completely backwards compatible >>> fashion. I am somewhat more attracted to the idea of using a prefix >>> on the >> >> >>> value inside the <value> tag. My other concern is with the speed of >>> OGNL. >>> OGNL is quite nice, it's heavily used in Tapestry and I found it a lot >>> better than say the JSTL's expression language. However, v2.x >>> anyways, is >>> not a speed demon. I'd like to also compare it to something like >>> Janino: >>> http://www.janino.net/ >>> in terms of best fit for Spring... >>> >>> Colin >>> >>> >>> Rob Harrop wrote: >>> >>>> All, >>>> >>>> Has anyone started work on the OGNL support yet. I have no plans >>>> for the >>>> weekend and I need to do something other than JMX :) >>>> >>>> Rob >>> >>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by: >>> Sybase ASE Linux Express Edition - download now for FREE >>> LinuxWorld Reader's Choice Award Winner for best database on Linux. >>> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click >>> _______________________________________________ >>> Springframework-developer mailing list >>> Spr...@li... >>> https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Sybase ASE Linux Express Edition - download now for FREE >> LinuxWorld Reader's Choice Award Winner for best database on Linux. >> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Sybase ASE Linux Express Edition - download now for FREE >> LinuxWorld Reader's Choice Award Winner for best database on Linux. >> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |