Re: configuring an IEngineService in Tap4

2006-03-29 Thread Cosmin Bucur
tory.constructLink(this, isPost, parameters, true); > } > > You can inject a link factory into the service using your hivemodule.xml. > > > -Original Message- > From: Cosmin Bucur [mailto:[EMAIL PROTECTED] > Sent: domingo, 26 de março de 2006 19:42 > To: Tapestry users >

RE: configuring an IEngineService in Tap4

2006-03-28 Thread Denis Souza
nk(this, isPost, parameters, true); } You can inject a link factory into the service using your hivemodule.xml. -Original Message- From: Cosmin Bucur [mailto:[EMAIL PROTECTED] Sent: domingo, 26 de março de 2006 19:42 To: Tapestry users Subject: Re: configuring an IEngineService in Tap4

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Raul Raja Martinez
Notice that your hivemodule.xml has a ID that declares how you can access your service in your own file if you don't use the ID it defaults to the Tapestry default services , that is why it couldn't find your service, because you were missing the prefix. The prefix mathes your hivemodule "ID".

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Mike Snare
It's really a great book. I recommend reading it cover to cover. Don't skip to the section you need. Enjoy, -Mike On 3/26/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote: > ok perfect , you confirming that puts me at ease . > > I have paid for the book about 30 mins ago , I guess I can relax and > k

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Cosmin Bucur
ok perfect , you confirming that puts me at ease . I have paid for the book about 30 mins ago , I guess I can relax and know the answer is comming whenever I get it in the mail or something . Thanks for your input on this Cosmin On 3/26/06, Mike Snare <[EMAIL PROTECTED]> wrote: > I think you wo

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Mike Snare
I think you would serve yourself well to buy Kent's book on tapestry: Enjoying Web Development with Tapestry. It's the best 'documentation' you'll find on tapestry, and it addresses writing a service engine for download explicitly. -Mike On 3/26/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote: > ok .

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Cosmin Bucur
ok ... digging more into the problem , I realised that the problem now is me failing to understand how a IEngineService implementation should look . My implementation had getLink () { return null; } which I guess was causing the null pointer . But what should go there ? At this point I would be ha

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Cosmin Bucur
ok well basically ognl: gives me the first error the outerproxy one . literal gives me a null pointer exception . The stack trace doesn't contain any of my src files so it's a bit confusing . As far as I can see there is nothing to point me towards the error : org.apache.tapestry.link.DefaultLin

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Cosmin Bucur
as far as the last error , it's because i started trying service instead of engine-service , at one point . I have fixed that and trying to get more information on new exceptions On 3/26/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote: > Somehow that error dissapeared now , but I am getting something

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Cosmin Bucur
Somehow that error dissapeared now , but I am getting something at the injection line . Error at context:/WEB-INF/tests/ServiceTest.page, line 20, column 84: Error adding property pdfService to class tests.ServiceTest: Service point tapestry.pdfService does not exist. My hivemodule.xml is the s

Re: configuring an IEngineService in Tap4

2006-03-26 Thread Mike Snare
> > > I think you want to use a literal: binding prefix on the value for service. What's happening is your expression 'pdfService' is an ognl expression that resolves to a call to getPdfService() on the class. It takes the resulting service and calls toString to generate t