Re: class type notation

2011-09-04 Thread Steve Eynon
If you need to pass a Class type, there's nothing stopping you having it as a Parameter, in Gallery: @Parameter private Class classType; only you'd have to pass the Class in via a getter in code: wrote: > > Thanks Thiago... > > No I really dont have to pass the classtype as the parameter... I c

RE: class type notation

2011-09-04 Thread Ken in Nashua
Thanks Thiago... No I really dont have to pass the classtype as the parameter... I can hardwire it in the java class. My code is still in prototype development state... and I appreciate your taking the time and helping. I am upgrading my Gallery widget... and happy to share when done... I use

Re: class type notation

2011-09-04 Thread Thiago H. de Paula Figueiredo
On Sun, 04 Sep 2011 02:31:47 -0300, Ken in Nashua wrote: Hi All, Hi! I am doing a custom gallery widget... ok I am upgrading my t-4.1.2 gallery to T5... fun stuff... Is the class type notation still legal ? I am referring to this guy... collectionType="ognl:@org.tynamo.example

Re: How to inject a mock into a tapestry service?

2011-09-04 Thread Steve Eynon
If you're doing a straight forward unit test, with all class dependencies mocked out, then this becomes a plain Java question... You either create a setter for IOrganizationDAO for testing purposes or start using constructor injection, and pass your mock in when you construct the service: public

How to inject a mock into a tapestry service?

2011-09-04 Thread Ernesto Arroyo
This should be easy, but I can't figure how to do this. I have a service that has a dependency to a DAO, that I manage using injection: @Inject private IOrganizationDAO orgDao; As far as i know, tapestry uses the construction mechanism to injection, so I have not a setter, tapestry does this th

Re: StreamResponse and inPlace Grid question

2011-09-04 Thread Joost Schouten (ml)
This sounds like a problem I had a while ago. Check out [1] and [2] A stream response will casue the pages onUnload to be called cleaning up all the zone managers (I believe). A quick fix is to add a target="_blank" to your download link. But this will in most browsers cause an empty tab to b