Re: T5 PageTester and ApplicationGlobals

2008-02-23 Thread Robert Zeigler
You can use AliasOverrides for this purpose. You have your normal service defined in your app module. Then you have your "TestModule" (which can @SubModule your AppModule), and in your TestModule, you can: contributeAliasOverrides(Configuration conf) { conf.add(AliasContribution.create(MyS

Re: T5: Quick fadeout of invalid value notice

2008-02-23 Thread Bill Holloway
Configurability good. I entered a low-priority JIRA. bill On Sun, Feb 17, 2008 at 1:32 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > I'm getting to the point where the tapestry.js may have to be > dynamically generated to account for things like configurable defaults > and paths. > > > >

Re: [T5]: Issues deploying in jetty

2008-02-23 Thread Andy Huhn
Davor, Thank you, that was exactly what I needed! For the sake of anyone else who has the same issue...this is what I added to my pom.xml to fix it: src/main/java **/*.hbm.xml false src/main/resources **/* false com/homeed/compo

Re: T5: PageTester and TextStreamResponse

2008-02-23 Thread Mark W. Shead
I'm not entirely sure. I haven't used TextStreamResponse before and I'm still having a lot of issues with PageTester and the way things are being injected. My guess is that PageTester can handle normal pages, but the TextStreamResponse will require a different type of mechanism behind the

Re: T5 PageTester and ApplicationGlobals

2008-02-23 Thread Angelo Chen
Hi, it seems that ApplicationGlobals in the PageTester is like a 'mocked' object, not exactly the same as real one, so this does bring up a question: while testing a page, we have to mock some services that the page uses, what I'm doing now is, I'll comment out the service in the AppModule.java,

Re: T5: PageTester problems since 5.0.6

2008-02-23 Thread Angelo Chen
Hi Jesper, I remember after 5.0.7 or something, the template is under the root, is it the problem? PageTester tester = new PageTester(appPackage, appName, "src/main/webapp", TestAppModule.class); Jesper Zedlitz-3 wrote: > > I have been sucessfully using the PageTester with Tapestry 5.0.5. Aft

Re: T5: PageTester and TextStreamResponse

2008-02-23 Thread Angelo Chen
Hi Mark, if I return null instead of : return new TextStreamResponse("text/html", test); the test works, I also run it in maven, got the same result, does that mean PageTester does not work with pages returning TextStreamResponse? thanks. A.C. Mark W. Shead-2 wrote: > > Obviously make sure t

Re: T5: PageTester and TextStreamResponse

2008-02-23 Thread Mark W. Shead
Obviously make sure the page comes up in your web browser correctly first. Then I'd try to test and make sure it is able to load the page correctly. Something like: String appPackage = "or.test.test.myapp"; String appName = "App";

T5: PageTester problems since 5.0.6

2008-02-23 Thread Jesper Zedlitz
I have been sucessfully using the PageTester with Tapestry 5.0.5. After switching to 5.0.10 all tests failed. I tried older versions and found out that the problems started with version 5.0.6. Here is the stacktrace produced by one of the tests: java.lang.RuntimeException: Page Start did not gene

Re: [T5]: Issues deploying in jetty

2008-02-23 Thread Davor Hrg
the error represents missing templates for pages or components after it is unpacked, you may want to manualy copy pages and components there pages in webapp directly, and components in WEB-INF/classes copy all from $yourProject/src/main/resources to $webapp/WEB-INF/classes Davor Hrg On Sat, F

[T5]: Issues deploying in jetty

2008-02-23 Thread Andy Huhn
Hello, I'm trying to set up my production server for the first time. I don't know anything about Jetty, so I may be missing something obvious. I can start up Jetty without problems, and receive no errors in the log. It seems to unpack my WAR, again without errors. However, when I attempt to ac

T5 PageTester and ApplicationGlobals

2008-02-23 Thread Angelo Chen
Hi, I was trying to use PageTester, I got this problem: the TestServiceImpl is a service injected in the test page, it will be called from there, but the ApplicationGlobals in the service does not work under PageTester, works in a normal web app, maybe I have to mock an ApplicationGlobals? then

Re: Vista problem

2008-02-23 Thread draxtor
Yes it was nothing with tapestry and it was nothing with Vista too. I had doubled libraries in dist/web-inf/lib. Sorry but I was frustrated that nothing works on my new laptop so I tried some desperate moves with library changing. When I removed Tapestry-4.13 lib in netbeans and add Tapestry-4.15

Re: T5: @Submodule and auto-loading from jar files

2008-02-23 Thread Chris Lewis
Thanks Massimo, I was not aware of that! For anyone else who might use this, note that you must provide the fully-qualified class names instead of the simple names (com.foo.MyModule, instead of MyModule). chris Massimo Lusetti wrote: On Sat, Feb 23, 2008 at 9:38 AM, Chris Lewis <[EMAIL PROTEC

Re: Vista problem

2008-02-23 Thread Ulrich Stärk
You are definitely experiencing some configuration issues here that have nothing to do with Tapestry. Your webapp isn't even loaded. Please go and read the Netbeans and Tomcat docs on how to deploy your webapp to Tomcat. As for the problem with the manager app: check the Tomcat configuration files,

Re: T5: @Submodule and auto-loading from jar files

2008-02-23 Thread Massimo Lusetti
On Sat, Feb 23, 2008 at 9:38 AM, Chris Lewis <[EMAIL PROTECTED]> wrote: > List, > > I'm working on a multi-module project in Eclipse. One of the modules is > a T5 web app, while the others are components and services for T5. The > generated artifacts are drop-in modules for T5, meaning they con

Re: Vista problem

2008-02-23 Thread draxtor
Here are the logs but I can not see anything wrong. 23.02.2008. 11.07.11 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk

Re: T4 "cancel" momentarily shows val errrors

2008-02-23 Thread Geoff Callender
Surely someone else is experiencing this symptom in 4.1.5. No? On 21/02/2008, at 8:24 AM, Geoff Callender wrote: Is anyone else seeing this? In T4.1.5, I'm seeing all the client- side validation errors momentarily displayed when I submit cancel, eg. submitType="cancel"/> I'm pretty sure

T5: @Submodule and auto-loading from jar files

2008-02-23 Thread Chris Lewis
List, I'm working on a multi-module project in Eclipse. One of the modules is a T5 web app, while the others are components and services for T5. The generated artifacts are drop-in modules for T5, meaning they contain a Tapestry-Module-Classes header in their jar manifest. Now my problem is