Re: T5 + tests (source code included)

2011-07-17 Thread Julien Martin
Hello Taha, Thanks for your replies! Regarding Tapestry + Spring + tests, you put me on the right track yet I have not being able to get it to work. Here is my PageTester class: *package com.cheetah.web; import org.apache.tapestry5.TapestryFilter; import org.apache.tapestry5.internal.spring.Sp

Re: PageActivationContext Coercion Exceptions

2011-07-17 Thread Kalle Korhonen
I haven't tried, but using tapestry-exceptionpage (http://tynamo.org/tapestry-exceptionpage+guide) you should be able to map UnknownValueException to your 404 page. Kalle On Sun, Jul 17, 2011 at 8:13 PM, Mark wrote: > I have an app with several pages like: > > www.app.com/itemInfo/1 > > where 1

PageActivationContext Coercion Exceptions

2011-07-17 Thread Mark
I have an app with several pages like: www.app.com/itemInfo/1 where 1 is the page activation context and gets coerced into the object using Tapestry-Hibernate. This works great, but... the graphic designer accidentally added a link into the header without the http. I fixed it, but not before Goo

what is called when - ajax version

2011-07-17 Thread Paul Stanton
In the past, I've found the "what is called when" example from the jumpstart collection very useful, however there is no version for the partial render or ajax case. I'm trying to figure out if there is an event I can handle which is called everytime a partial render or zone update is returned

Re: T5 + tests (source code included)

2011-07-17 Thread Taha Hafeez
Hi Follow this : http://spreadthesource.com/2010/08/start-spring-application-context-for-your-tapestry-unit-tests/ regards Taha On Mon, Jul 18, 2011 at 3:01 AM, Julien Martin wrote: > Hello, > > I am not able to test my Tapestry application. What is very odd is that the > exception is not thro

Re: Basic question about T5 and tests

2011-07-17 Thread Taha Hafeez
Hi In tapestry t:id is the unique id of a component within a container component which can be used to refer to the component in the java class. The components that needs to use client id(javascript id) implements ClientElement interface which has a single method getClientId() that returns the clie

T5 + tests (source code included)

2011-07-17 Thread Julien Martin
Hello, I am not able to test my Tapestry application. What is very odd is that the exception is not thrown when I run the app in a browser. Can anyone please help? Thanks in advance, Julien. Here is the test class: * public class CreateJobPostingTest { @Test public void test1() {

Basic question about T5 and tests

2011-07-17 Thread Julien Martin
Hello, I am in reference to the following page: http://tapestry.apache.org/unit-testing-pages-or-components.html In the form testing section the code goes as follows: Element form = doc.getElementById("*form1*"); What is actually meant by "*form1*"? The *t:id* or the actual *client* *id*? If