Re: Using "futures" to parallelize rendering of components

2009-05-04 Thread Ben Gidley
It is perfectly possible to implement a HTML caching component - we have one for our site. I am working on getting permission to open-source it. It is a really simple bit of code and seems to work robustly without too many gotchas. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Sun, May 3, 2

Re: Tapestry 5 Validation

2009-05-04 Thread mraible
Thanks for the pointer. I guess for something like AppFuse, using the BeanEditForm (esp. with code generation) is probably not a good idea. I'll change things to generate the individual field elements so users can more easily modify the generated template. Matt Ulrich Stärk wrote: > > I don't

Re: Tapestry 5 Validation

2009-05-04 Thread Robert Zeigler
There are a variety of things you can do. You can: 1) Put validation annotations on the bean properties that tapestry will pick up 2) Put validation information in the property catalogs that tapestry will pick up 3) Write and contribute your own constraint generator. For example, i

Re: Using "futures" to parallelize rendering of components

2009-05-04 Thread Robert Zeigler
I'm not sure I fully understand your use-case. You want to parallelize the rendering of the page? You could potentially do that, but it would be tricky as tapestry goes to great lengths to ensure that pages and components are "POJO", so you don't have to worry about threading. Parallelizing m

Re: [T5] How to listen/trigger event in componentA from component B ?

2009-05-04 Thread CG
Hi , anybody can give some hints? thanks CG On Sat, May 2, 2009 at 1:39 AM, CG wrote: > Hi all, >  I have been using T5 in my project for 1 year , and thanks for the > great framework.  I am neither an expert in Tapestry nor Java, > therefore, would like to seek some help from all of you to ass

Re: Problem using BeanEditForm with a POJO

2009-05-04 Thread Robert Zeigler
Tried dl'ing and running and received the following error: [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.appfuse.plugins ArtifactId: appfuse-maven-plugin Version: 2.1-SNAPSHOT Reason: Unable

Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA

2009-05-04 Thread Shing Hing Man
When I deploy a simple Tap 5.1.0.4 application on JBoss 5.0.1.GA and access the index page, I get the following error. java.lang.IllegalArgumentException: Unable to resolve 'ExceptionReport' to a known page name. Available page names: (blank), About, Contact, Index. org.apache.tapest

Re: Problem using BeanEditForm with a POJO

2009-05-04 Thread mraible
Should be fixed now. Sorry about that. Matt Robert Zeigler wrote: > > Tried dl'ing and running and received the following error: > [ERROR] BUILD ERROR > [INFO] > > [INFO] Failed to resolve artifact. > > GroupId: org.ap

Re: Tapestry 5 Validation

2009-05-04 Thread mraible
Do you have more information on #2? I'm not familiar with Tapestry's property catalogs. Thanks, Matt Robert Zeigler wrote: > > There are a variety of things you can do. > You can: > 1) Put validation annotations on the bean properties that tapestry > will pick up > 2) Put validation

New module: tapx-plainmessage

2009-05-04 Thread Howard Lewis Ship
This is a very simple extension to Tapestry. It adds a new binding prefix, "plain:". Plain works just like "message:", except that any HTML elements are scrubbed, and XML entities are replaced with the corresponding characters. For example, let's say you have the following properties file: banne

Re: Tapestry 5 Validation

2009-05-04 Thread Robert Zeigler
To be honest, I hadn't used it. I looked at it more closely, and it won't do /quite/ what you want. Tapestry will look up the /constraints/ to use for a particular validator in the message catalog for the containing page/component, but it won't look up the actual /validators/ to use. So if you

Re: Tapestry 5 Validation

2009-05-04 Thread Thiago H. de Paula Figueiredo
Em Mon, 04 May 2009 18:58:24 -0300, Robert Zeigler escreveu: I think it would be useful, however, to be able to define the set of validators to use in a message catalog. +1 to that. By the way, I think it would be very nice to have something like a pipeline to provide validation to fields.

Re: Tapestry 5 Validation

2009-05-04 Thread Robert Zeigler
On May 4, 2009, at 5/45:19 PM , Thiago H. de Paula Figueiredo wrote: Em Mon, 04 May 2009 18:58:24 -0300, Robert Zeigler escreveu: I think it would be useful, however, to be able to define the set of validators to use in a message catalog. +1 to that. By the way, I think it would be very n

Re: Tapestry 5 Validation

2009-05-04 Thread Thiago H. de Paula Figueiredo
Em Mon, 04 May 2009 19:42:39 -0300, Robert Zeigler escreveu: Well, the ValidationConstraintGenerator basically serves this purpose, no? You can contribute any sort of constraint generator, neh? You've just introduced it to me. :) Thanks for pointing it out. I'll play with it now to figur

Re: New module: tapx-plainmessage

2009-05-04 Thread Thiago H. de Paula Figueiredo
Em Mon, 04 May 2009 16:31:39 -0300, Howard Lewis Ship escreveu: This is a very simple extension to Tapestry. It adds a new binding prefix, "plain:". Plain works just like "message:", except that any HTML elements are scrubbed, and XML entities are replaced with the corresponding characters.

Re: New module: tapx-plainmessage

2009-05-04 Thread Howard Lewis Ship
It's not something everyone needs. It was created for a particular client, but open sourced. Further, this way it works with 5.0.18 or 5.1.0.5 and we don't have to wait for 5.2. Just drop it in the classpath and it works. I think there's a lot of stuff in core that could actually be split out, tho

Re: Tapestry 5 Validation

2009-05-04 Thread Thiago H. de Paula Figueiredo
Em Mon, 04 May 2009 20:47:47 -0300, Thiago H. de Paula Figueiredo escreveu: Em Mon, 04 May 2009 19:42:39 -0300, Robert Zeigler escreveu: Well, the ValidationConstraintGenerator basically serves this purpose, no? You can contribute any sort of constraint generator, neh? You've just int

Re: [T5] How to listen/trigger event in componentA from component B ?

2009-05-04 Thread DH
In my understanding, there should be no way. Events can only be listened in itself or its parents. DH - Original Message - From: "CG" To: Sent: Monday, May 04, 2009 11:57 PM Subject: Re: [T5] How to listen/trigger event in componentA from component B ? Hi , anybody can give some hint

Can't access HTML files in classpath resouce

2009-05-04 Thread Pisit
I'm using Tapestry 5.0.18+Tomcat 6.0+FCKEditor (from T5Components) For Windows server, it's work perfectly but for Linux has encounter HTTP 404 error i've found that it unable to access /assets/org/apache/tapestry/commons/jslibs/scripts/fckeditor/editor/fckeditor.html and other .html files but for

Re: Can't access HTML files in classpath resouce

2009-05-04 Thread Thiago H. de Paula Figueiredo
Em Tue, 05 May 2009 00:08:33 -0300, Pisit escreveu: I'm using Tapestry 5.0.18+Tomcat 6.0+FCKEditor (from T5Components) For Windows server, it's work perfectly but for Linux has encounter HTTP 404 error i've found that it unable to access /assets/org/apache/tapestry/commons/jslibs/scripts/fck

Re: Can't access HTML files in classpath resouce

2009-05-04 Thread Peter Stavrinides
>Are you using Tomcat behind Apache? If yes, this can be the source of your >problem, as it consider theses URLs as static ones, when actually they're >handled by Tapestry. I am using Apache in front of Tomcat, running on Linux, and I have never encountered this. Peter - Original Message

Re: Problem using BeanEditForm with a POJO

2009-05-04 Thread Otho
Hi, 1) Turn production mode to false in AppModule.java. You get much better exception reporting then. The exception you mentioned is caused by: org.apache.tapestry5.internal.services.TransformationExceptionUnable to add new method public final void setFrom(java.lang.String) as it already exists.