Tapestry 5.2.6 + tests

2011-07-16 Thread Julien Martin
Hello, I am in reference to the following page: http://tapestry.apache.org/unit-testing-pages-or-components.html Can anyone please tell me whether the tests described here are in container tests or not. I have some issues testing a Tapestry + Spring webapp (see my previous emails: "Help required

Re: Is it possible to access @SessionState at the "listener" level

2011-07-16 Thread Thiago H. de Paula Figueiredo
On Fri, 15 Jul 2011 18:39:43 -0300, hese <1024h...@gmail.com> wrote: Which class do I cast it to? = (??) servletContext.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME); Looks like tapestry IOC is a bunch of classes? Not sure which one to use. Every object-oriented package or program is a bu

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
Here is my web.xml: * http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; version="3.0"> cheetah web application

Re: javascript & layout problem

2011-07-16 Thread Taha Tapestry
Did you try directly inserting the script in layout by using script tag inside head tag Regards Taha On Jul 16, 2011, at 9:35 PM, Rendy Tapestry wrote: > Hi Mihail, > > Thank you for your response. If that is how the correct thing should > happened, I will accept it. I come to this question

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Igor Drobiazko
Looks like Spring's application context descriptor is not read. How do you tell Tapestry to load it? Are you using TapestrySpringFilter? On Sat, Jul 16, 2011 at 6:09 PM, Julien Martin wrote: > One thing comes to mind: I use Spring and the service in question is a > Spring service injected with T

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
One thing comes to mind: I use Spring and the service in question is a Spring service injected with Tapestry's @Inject. Would that get in the way of Tapestry tests? Regards, Julien. 2011/7/16 Julien Martin > I changed to that. I still get the same exception about the service i.e. * > Error obtai

Re: javascript & layout problem

2011-07-16 Thread Rendy Tapestry
Hi Mihail, Thank you for your response. If that is how the correct thing should happened, I will accept it. I come to this question because in Tapestry 4, I am using decorator to build a template. In default.jsp I put an import to jquery lib once and never import it again in every page that use th

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
I changed to that. I still get the same exception about the service i.e. * Error obtaining injected value for field com.cheetah.web.pages.ConfirmationPage.cheetahService: No service implements the interface com.cheetah.service.CheetahService.* What puzzles me is that the app works when I use the br

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Igor Drobiazko
Usually src/main/webapp On Sat, Jul 16, 2011 at 5:50 PM, Julien Martin wrote: > Hello Igor, > Thanks. Where should it point to then bearing in mind I use Maven? > Regards, > Julien. > > 2011/7/16 Igor Drobiazko > > > Not sure why your service is not bund but your context path src/main/java > >

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
Hello Igor, Thanks. Where should it point to then bearing in mind I use Maven? Regards, Julien. 2011/7/16 Igor Drobiazko > Not sure why your service is not bund but your context path src/main/java > is > wrong. > > On Sat, Jul 16, 2011 at 5:11 PM, Julien Martin wrote: > > > Hello, > > I have an

Re: Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Igor Drobiazko
Not sure why your service is not bund but your context path src/main/java is wrong. On Sat, Jul 16, 2011 at 5:11 PM, Julien Martin wrote: > Hello, > I have an issue with a unit test in Tapestry. It seems Tapestry is not able > to find a service when I run the unit tests whereas there are no prob

Re: javascript & layout problem

2011-07-16 Thread Михаил Слободянюк
Hi, Rendy! You must import every used script in every page/component class same as import other used java classes. Mihail Slobodyanuk. 2011/7/16 Rendy Tapestry > Hi All, > > I am using tapestry layout component, in page class I add @Import > annotation > to import jquery library. I have anothe

Help required: Issue with unit tests and Tapestry

2011-07-16 Thread Julien Martin
Hello, I have an issue with a unit test in Tapestry. It seems Tapestry is not able to find a service when I run the unit tests whereas there are no problems when I run the application from the browser. What have I misconfigured? Thanks in advance, Julien. Here is the unit test: * @Test pub

javascript & layout problem

2011-07-16 Thread Rendy Tapestry
Hi All, I am using tapestry layout component, in page class I add @Import annotation to import jquery library. I have another page that is being used along with the layout component and having @Import annotation to import specific javascript for that page. That javascript used jquery inside it, th