Re: Testing Tapestry application

2006-07-20 Thread Jesse Kuhnert
I can't really take credit for it. All I did was move java files around to different places and made them use the testing infrastructure that Howard/the team had already created. You can use it now, just don't ask for documentation yet ;) http://people.apache.org/repo/m2-snapshot-repository/org/

Re: Testing Tapestry application

2006-07-20 Thread KE Gan
Jesse, Thanks a lot for the pointers!! And eagerly looking forward for the independent testing module that you will be making available :) Could you please make a announcement here once you did ? By the way, when can we expect it ;) ? Thanks again. On 7/21/06, Jesse Kuhnert <[EMAIL PROTECTED]

Portlet hivemodule space in class name?

2006-07-20 Thread Epstein, Ezra
Looking at the Tapestry 4.02 Portlet source I noticed: In the hivemodule.xml file. Is the space between 'RootDescriptionReceiverFactory' and 'Impl' a typo? Thanks, Ezra Epstein - To unsubscribe, e-mail: [EMAIL PROTE

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
Howard, thanks for the advice. I have to use JDK1.4 so I cannot use annotations. My real problem is to understand how I can instanciate an object at the context load, in the ApplicationServlet via inheritance and to make this object available to my pages. As I already explained, getGlobal is Depr

Re: Testing Tapestry application

2006-07-20 Thread Jesse Kuhnert
Here, http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/test/ All ~ 1,500 unit tests in tapestry use the tapestry-testng module from howardlewisship.com. There should be enough in there for more complete examples :) I've also already broken the basic base unit test cl

Re: going from 4.0 to 4.1

2006-07-20 Thread Jesse Kuhnert
Answers inlined. On 7/20/06, Dan Adams <[EMAIL PROTECTED]> wrote: The stuff in 4.1 looks neat but I have a couple questions about transitioning. I apologize if these have already been answered. - Does it effect your ability to test with htmlunit? We use this a *ton* and testibility is a big is

Component rendering order and parameter direction

2006-07-20 Thread Henri Herscher
Hi, I have this: "search" component -> param1 -> "list" component -> param2 -> "view" component. In a tapestry4 page of mine. The three components all implement renderComponent(). Param1 is set in the "search" component renderComponent(). Param2 is set in the "list" component renderComponent()

Re: components in library using only annotations

2006-07-20 Thread Norbert Sándor
As I know you do not need to define the components in this case in the .application/.library file. Tapestry will automatically look for them by name in the component/page class packages (http://tapestry.apache.org/tapestry4/UsersGuide/configuration.html#configuration.properties). Regards, Norb

Re: ASO and hivemind.xml

2006-07-20 Thread Howard Lewis Ship
On 7/20/06, Geoff Callender <[EMAIL PROTECTED]> wrote: Others might chime in because I'm no expert on this, but this what I believe to be true... - The module id and version can be arbitrary. However, to avoid name clashes you can use the id as a qualifier, eg. @InjectState("jumpstart:

Re: How much faster have you found tapestry 4 to be over tapestry 3?

2006-07-20 Thread Howard Lewis Ship
Haven't had the tools and opportunity to tell, but seems a lot slower on startup and first-time page load, and perceptibly faster at execution (as long as caching is enabled). On 7/20/06, Skriloff, Nicholas <[EMAIL PROTECTED]> wrote: How much faster have you found tapestry 4 to be over tapestry

Controlling component render order

2006-07-20 Thread Jorge Giraldo
Hello, I have a page that contains three components and I would like to modify the order in which they are rendered by the page. Is this possible ? As I see from my logs (I made them all implement PageBeginRenderListener to see when their pageBeginRender() method gets called), the last component

Re: java.util.ConcurrentModificationException in portlet when trying to show ArrayList

2006-07-20 Thread Paul Cantrell
No idea of the exact cause in your case, but in general, this exception means that you modified a collection while iterating over it. In your case, it looks like collection returned by getNewslist() is somehow getting modified. Try returning this instead: return Collections.unmodifi

Using an Application state object in a service

2006-07-20 Thread Ryan Cuprak
Hello, I have defined a custom service to generate images on fly. I need to inject an application state object into my service. Normally I would use @InjectState("XXXList") in a page implementation. However this time I need to make a setter and use the or element in hivemodule.xml. C

RE: ASO and hivemind.xml

2006-07-20 Thread James Carman
Have you tried using a StateObjectFactory? -Original Message- From: Blackwings [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 9:07 AM To: Tapestry users Subject: Re: ASO and hivemind.xml The situation is : I create class that extends ApplicationServlet and I specify it as the t

components in library using only annotations

2006-07-20 Thread Rowland Smith
Is it possible to package components that have *no* specification (defined using annotations only) into a component library? How is the specification-path defined in the .library file? For example: Thanks, Rowland - To

Testing Tapestry application

2006-07-20 Thread KE Gan
Hi, I have been coding Tapestry for a few months now. It is really nice to work with, especially with Hivemind tightly integrated ... hence I get to easily unit test my POJOs (domain objects, etc). However, I still have problem unit testing the Tapestry pages of the application. I did try to use

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
Thanks both of you for this precision ;) My second question is more about how to create/instantiate a "application object" at the ApplicationServlet level and make this instance available for all. I think the hivemodule.xml create a new instance of my custom ApplicationServlet and didn't use the

Re: Scheduling tasks

2006-07-20 Thread Martijn Hinten
any oracle developer or dba could tell you: alter system kill session 'sid,serial'; Kills any session. In Oracle you can allways kill session that have gone astray. And even if it doesn't work from sql+, you can always look op the OS-pid (in v$session) and kill the process on the os level. (Be su

How much faster have you found tapestry 4 to be over tapestry 3?

2006-07-20 Thread Skriloff, Nicholas
How much faster have you found tapestry 4 to be over tapestry 3? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Where can I find info on speeding up a pure tapestry 3.0 application?

2006-07-20 Thread Skriloff, Nicholas
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: The best way/component to do this...

2006-07-20 Thread Pablo Ruggia
I think the best way to do it is creating your own component. Table component is flexible, but not tht flexible. You can create this component in less than a day. Really understanding how table internals work will take you much more time. On 7/19/06, Blackwings <[EMAIL PROTECTED]> wrote: Hi

Re: Poll: T4 Development Environment

2006-07-20 Thread Daniel Jue
I'm very new to Tapestry too. Currently using: [Eclipse 3.1.2 with WTP], [Tomcat 5.5], [Tapestry 4], [Spindle 3] + spindle is just for editing/syntax highlighting + code completion, html outlining Tried: [Eclipse WTP 3.1.2], [Subclipse] - I ran into a bug where Eclipse kept

contrib:Table paging in @For loop

2006-07-20 Thread Steve Shucker
I'm having a problem with the contrib:Table component nested inside a @For loop. Essentially I'm rendering several lists of objects. The initial display is correct, but paging fails. What I think is happening is that a single @contrib:Table component is being reused with each iteration of the lo

Re: Javascript error when using XTile in T4

2006-07-20 Thread Dan Adams
well, i have this in the template: then i have onclick handlers for links and submit buttons. each of these just call _sendAppend() with some text and then return normally. i don't get any errors from the link onclick handler but only from the submit button onclick. After some investigation,

going from 4.0 to 4.1

2006-07-20 Thread Dan Adams
The stuff in 4.1 looks neat but I have a couple questions about transitioning. I apologize if these have already been answered. - Does it effect your ability to test with htmlunit? We use this a *ton* and testibility is a big issue. Can you test with javascript off and have pages still work normal

presenting a list of errors through comonent and NullPointerException

2006-07-20 Thread Martin Ott
Hello I found quite a nice component named ShowErrors from helloworld-taplet example coming with tapestry 4.0.2 edition, but found it giving quite an unexpected result when submitting incomplete (or invalid) form the second time. Namely there will come a NullPointerException. Could anyone verify

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
The situation is : I create class that extends ApplicationServlet and I specify it as the tapestry main servlet in web.xml. In this class I call a class that initialise some "application objects" such as list of element common to everybody from the database. My class also set a bean member and im

Re: ASO and hivemind.xml

2006-07-20 Thread Geoff Callender
Others might chime in because I'm no expert on this, but this what I believe to be true... - The module id and version can be arbitrary. However, to avoid name clashes you can use the id as a qualifier, eg. @InjectState("jumpstart: serviceLocator") So the id forms a namespace. Wh

Re: Scheduling tasks

2006-07-20 Thread Barry Books
I can't comment on Quartz but I did use the Oracle scheduler until someone scheduled a query that ran for hours and made the database useless. It was difficult to recover from because you could not login to stop the task. If you schedule * * * * * wget http://localhost/cronjob then you don't ha

RE: ASO and hivemind.xml

2006-07-20 Thread James Carman
You can use whatever you want for the module id (usually your application name, though) and the version has to have the format 1.0.0 (three dot-separated version numbers) . -Original Message- From: Blackwings [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 7:34 AM To: Tapestry use

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
Thanks a lot, but I have a question again: To what, the id in the module tag, refer? Is it the name of my context? is it app? is it the package where something (what?) is store? Same question for the version. Thanks anyway BW 2006/7/20, Geoff Callender <[EMAIL PROTECTED]>: BW, No need to tou

Re: Problem using tapestry portlet with external components

2006-07-20 Thread Mitchell O'Brien
Ach! The problem was that the .application file wasn't named the same as the portlet, thus the application file wasn't getting read. Mitch On 19.07.2006, at 18:23, Mitchell O'Brien wrote: Hi all, I'm trying to deploy a tapestry portlet which uses components from an external library but

Re: ASO and hivemind.xml

2006-07-20 Thread Geoff Callender
BW, No need to touch hivemind.xml. Add a file called hivemodule.xml to WEB-INF, with content similar to this:

ASO and hivemind.xml

2006-07-20 Thread Blackwings
Hi, I found in the document what is the line to add into hivemind.xml file to create an ASO since getGlobal is deprecated. But I didn't find a standard" hivemind.xml file and I have no idea what is mandatory to put in. I just want to declare my ASO object to be able to inject it in my page. So,