Re: How to get spring beans with Cocoon Template 1.0?

2008-11-22 Thread Grzegorz Kossakowski
Thorsten Scherler pisze: >> It introduces a dependency on very specific implementation that may change >> in the future. > > That is true. Like I wrote in the first mail, would be awesome to have > cocoon.spring.getBean('NameOfBean'). Personally, I don't like this kind of solution as well becaus

Re: How to get spring beans with Cocoon Template 1.0?

2008-11-21 Thread Thorsten Scherler
On Fri, 2008-11-21 at 00:04 +0100, Grzegorz Kossakowski wrote: > Thorsten Scherler pisze: > > On Thu, 2008-11-20 at 09:31 +0100, Thorsten Scherler wrote: > >> On Wed, 2008-11-19 at 22:06 +0800, 黄海冬公司邮箱 wrote: > >>> codes: > >>>>>> value="${cocoon.context.getAttribute(Packages.org.springframewor

Re: How to get spring beans with Cocoon Template 1.0?

2008-11-21 Thread Thorsten Scherler
On Fri, 2008-11-21 at 11:43 +0800, 黄海冬公司邮箱 wrote: > Hi,Thorsten Scherler > > There's many reasons to do this in template,But the MOST IMPORTANT IS it's > quick and don't need to write java so it does not need to restart server.For > a developer who just know spring and common java,it's not easy to

Re: How to get spring beans with Cocoon Template 1.0?

2008-11-20 Thread 黄海冬公司邮箱
Hi,Thorsten Scherler There's many reasons to do this in template,But the MOST IMPORTANT IS it's quick and don't need to write java so it does not need to restart server.For a developer who just know spring and common java,it's not easy to implement cocoon's interface or any other specify interface

Re: How to get spring beans with Cocoon Template 1.0?

2008-11-20 Thread Grzegorz Kossakowski
Thorsten Scherler pisze: > On Thu, 2008-11-20 at 09:31 +0100, Thorsten Scherler wrote: >> On Wed, 2008-11-19 at 22:06 +0800, 黄海冬公司邮箱 wrote: >>> codes: >>> >> value="${cocoon.context.getAttribute(Packages.org.springframework.web.contex >>> t.WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATT

How to get spring beans with Cocoon Template 1.0?

2008-11-19 Thread Thorsten Scherler
Hi all, I am wondering how to import a spring bean from Cocoon Template 1.0? I would like to use an import of a spring configured bean in my jx template. I mean I can do but then this class in not configured by spring. Is there a way to get a spring bean? Something like: TIA for any though