Re: Web services and Tapestry 5 IoC

2007-12-05 Thread Peter Stavrinides
Thanks for your responses! I will try them, Peter Ben Tomasini wrote: Axis2 has an object supplier interface. Below is an example of a service which uses spring as its object supplier. You could easily create a TapestryObjectSupplier and use a TapestryServiceName parameter to lookup the servi

Re: T5: Anyone using PageTester?

2007-12-05 Thread Howard Lewis Ship
That's all good to hear, and I found a reasonable way to keep it in place without disrupting things. On Dec 5, 2007 1:57 PM, Mark Horn <[EMAIL PROTECTED]> wrote: > My team uses PageTester to unit test all our Page classes. We have > found it very useful. > > > > PageTester, Kent Tong's unit/integ

RE: T5: Anyone using PageTester?

2007-12-05 Thread Mark Horn
My team uses PageTester to unit test all our Page classes. We have found it very useful. > PageTester, Kent Tong's unit/integration testing layer for T5, is > increasingly becoming difficult to maintain properly ... how many > people are currently relying on it? > > -- > Howard M. Lewis Ship > TW

RE: [T5] Obtaining a relative directory path

2007-12-05 Thread Jean-Philippe Steinmetz
Thanks Howard, that was very helpful =) > -Original Message- > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 05, 2007 8:08 AM > To: Tapestry users > Subject: Re: [T5] Obtaining a relative directory path > > One more note .. if that is awkard for you ... wr

Re: T5: Anyone using PageTester?

2007-12-05 Thread DougS
We are using the PageTester extensively since 5.0.6. The ability to pass a Module class to the PageTester is very helpful. As others have mentioned, we would like to be able to add js tests -- a way to do this would be incredibly helpful (maybe an integration with one of the existing jsunit fram

Re: T5: Anyone using PageTester?

2007-12-05 Thread Robert Zeigler
I've made extensive use of it. Robert On Dec 5, 2007, at 12/51:55 PM , Howard Lewis Ship wrote: PageTester, Kent Tong's unit/integration testing layer for T5, is increasingly becoming difficult to maintain properly ... how many people are currently relying on it? -- Howard M. Lewis Ship TWD C

RE: T5: Anyone using PageTester?

2007-12-05 Thread Hong Yu (hoyu2)
We use it heavily for all of our components. We are also looking for ways to do JS testing. Hong -Original Message- From: Chris Lewis [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 05, 2007 2:19 PM To: Tapestry users Subject: Re: T5: Anyone using PageTester? I am not currently, bu

RE: T5: Anyone using PageTester?

2007-12-05 Thread Joel Wiegman
Using it and loving it. So great to be able to unit test the user interface in a mock container. I've tried to answer most of the posts in this forum about it. Seems like other people are using it... -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: T5: Anyone using PageTester?

2007-12-05 Thread Chris Lewis
I am not currently, but have been wanting to implement all levels of testing for my T5 app: unit tests, render tests, and client side JS testing (like the T5 source uses). I'm sure that testability - easy testability - is a goal and I welcome it. However as of yet I have not used PageTester to

T5: Anyone using PageTester?

2007-12-05 Thread Howard Lewis Ship
PageTester, Kent Tong's unit/integration testing layer for T5, is increasingly becoming difficult to maintain properly ... how many people are currently relying on it? -- Howard M. Lewis Ship TWD Consulting, Inc. Creator Apache Tapestry and Apache HiveMind --

T 4.1 Strange Asset Context problem

2007-12-05 Thread Chris Chiappone
I have an assets defined in my page spec as follows: The images seem to be using the correct context (/esp) as the source output is: The msi though comes out like this: Download which does not include the context of /esp Does anyone know why this may be?

Re: T5: Possible Literal Binding bug

2007-12-05 Thread jeffrey ai
It's hardly to say it's a bug. I guess T5 will assume you meant to use literal binding when you use a value with expansions, like "... ${val1} ... ${val2}". So "literal" prefix is only necessary for a simple value, like "abc". Cheers, Jeffrey Ai Andrew Pietsch wrote: > > Hi there, > > I'm new

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Thiago HP
On 12/5/07, Steve Eynon <[EMAIL PROTECTED]> wrote: > > To clarify, I only have the one component module (the > WebsiteTagsModule) and it is only in that .jar that I specify the > Tapestry-Module-Classes property in the MANIFEST.MF. So take a look at your environment. Once I ran into a similar prob

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Steve Eynon
To clarify, I only have the one component module (the WebsiteTagsModule) and it is only in that .jar that I specify the Tapestry-Module-Classes property in the MANIFEST.MF. Cheers for thinking about this, Steve. On 05/12/2007, Chris Lewis <[EMAIL PROTECTED]> wrote: > Nice catch :-). Does TIoC '

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Chris Lewis
Nice catch :-). Does TIoC 'know' which modules it has loaded? If so perhaps an exception should be thrown, or at least a log message made, if an app attempts to (indirectly) load a module more than once. Thiago HP wrote: On 12/5/07, Steve Eynon <[EMAIL PROTECTED]> wrote: java.lang.RuntimeE

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Howard Lewis Ship
That's true, if its not clear, only the module containing the WebsiteTagsModule class should have an entry in its Manifest pointing to the class. On Dec 5, 2007 8:25 AM, Thiago HP <[EMAIL PROTECTED]> wrote: > On 12/5/07, Steve Eynon <[EMAIL PROTECTED]> wrote: > > > > java.lang.RuntimeException: >

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Thiago HP
On 12/5/07, Steve Eynon <[EMAIL PROTECTED]> wrote: > > java.lang.RuntimeException: > Service id 'AssetFinder' has already been defined by > com.alienfactory.websitetags.WebsiteTagsModule.buildAssetFinder > (AssetSource) > (at WebsiteTagsModule.java:28) > and may not be redefined by > com.alienfacto

Re: [T5] Obtaining a relative directory path

2007-12-05 Thread Howard Lewis Ship
One more note .. if that is awkard for you ... write a one-liner component to take care of this for you! On Dec 5, 2007 8:06 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > This should work: > > > > > The value inside a ${...} expansion is actual a binding in disguise, > so it can use binding

Re: [T5] Obtaining a relative directory path

2007-12-05 Thread Howard Lewis Ship
This should work: The value inside a ${...} expansion is actual a binding in disguise, so it can use binding prefixes such as "prop:" (the default), "message:" or "asset:". However, inside a template, the "current location" is on the classpath (i.e., relative to your component's Java class fil

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Steve Eynon
Hi, > have you tried explicitly setting the id? No I didn't try explicitly setting the service id for I only have the one service which I only define the once. (Will try it tonight though!) > So, there's no chance that you have a copy of the common module lib on > the general classpath and in WE

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Howard Lewis Ship
So, there's no chance that you have a copy of the common module lib on the general classpath and in WEB-INF/lib? On Dec 5, 2007 7:26 AM, Steve Eynon <[EMAIL PROTECTED]> wrote: > Hello, > > I have a number of T5 web apps that all use a common component module. > In the component's module class (as

Re: Web services and Tapestry 5 IoC

2007-12-05 Thread Ben Tomasini
Axis2 has an object supplier interface. Below is an example of a service which uses spring as its object supplier. You could easily create a TapestryObjectSupplier and use a TapestryServiceName parameter to lookup the service. I would think you could implement a filter as mentioned above to set

Re: Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Chris Lewis
You say you've tried auto binding, but have you tried explicitly setting the id? Like so: public static void bind(ServiceBinder binder) { binder.bind(AssetFinder.class, AssetFinderImpl.class).withId("AssetFinderWithExplicitId"); } Auto binding assigns the class name as the service id,

Problems Deploying T5 Apps with Component Modules in Jetty

2007-12-05 Thread Steve Eynon
Hello, I have a number of T5 web apps that all use a common component module. In the component's module class (as defined by the Tapestry-Module-Classes property in its jar's MANIFEST.MF) there is a simlpe build method: public static AssetFinder buildAssetFinder(@InjectService AssetSource assetSo

Re: Request Filter with ApplicationStateManager

2007-12-05 Thread Howard Lewis Ship
I think, at the very least, we need to handle the null case better, with a message that explains what property of what object/service is null. Further, it's looking like the current approach is a little heavy-handed; perhaps the Request and Response objects should be created earlier and stored int

Re: Request Filter with ApplicationStateManager

2007-12-05 Thread Peter Stavrinides
Hi Richard, Thanks a lot for your response! on your first point, I have tried this with no luck... so your second observation may be more likely, although the documentation just leaves me with more questions, i'm not convinced that the state manager should ever turn up null, but it's not a bi

Re: Single OGNL expression evaluated several time s ­ is it normal?

2007-12-05 Thread Kaspar Fischer
On 02.12.2007, at 00:58, Kevin Menard wrote: This is a known issue and is pending resolution. Okay, thanks for the information. Kaspar P.S. Is there an issue number for the issue on http://issues.apache.org/jira/browse/TAPESTRY I could not find it there. ---

Re: Request Filter with ApplicationStateManager

2007-12-05 Thread Richard Kirby
Hi Peter, My guess is that for a RequestFilter, you need to ensure that your filter is contributed after the default Tap5 filter that wires up the HttpServletRequest object to the Tap5 Request object (which is what is causing the NPE). However, I think on reading the RequestHandler pipeline s

Re: Nightly docs fixed - and some general notes

2007-12-05 Thread Davor Hrg
There are definitely frustrations around maven, ... I just keep hoping it will get better before we give up on it :) Davor Hrg On Dec 4, 2007 5:46 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > The nightly docs are now fixed. > > My hatred of Maven is growing quickly. You may not be awa

Re: Web services and Tapestry 5 IoC

2007-12-05 Thread Davor Hrg
I have an example of integration with axis, basicaly... I joined axis web.xml and tapestry web.xml then inside a stub class looked for the service.. to make service available, I overriden tapestry filter and put the service into servletContext ServletContext context = getServletContext(

Web services and Tapestry 5 IoC

2007-12-05 Thread Peter Stavrinides
Hi all, Is there any info/examples available on this subject, I would like to convert a Tapestry service into a webservice. Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: T5: "conditional parameter binding" or something

2007-12-05 Thread Davor Hrg
I'm not sure I understood it completely, so first I'll how I see it from your description. You have a list of items to display, you have maxItems to display per page, you only want to show some items based on their state. Your division of responsibilities is putting too much into one place and c