Using futures to parallelize rendering of components

2009-05-03 Thread cfineman
We have an app that's an aggregation of several 'components' (not yet written in Tapestry... using an older in-house framework). Although each component is not very expensive to create, the aggregate cost can get kinda high sometimes. I've been poking around Tapestry for the past couple of days

Application scope services

2009-05-03 Thread sodium
Just few quick questions. I've skim through the documentation as well as the only Tap5 book i recently bought and i didn't find any reference to this. Is it possible to bind some sort of services using Tap5 when the container init the Tap5 application? Also, is it possible to have those

Re: Application scope services

2009-05-03 Thread Ulrich Stärk
sodium schrieb: Just few quick questions. I've skim through the documentation as well as the only Tap5 book i recently bought and i didn't find any reference to this. Is it possible to bind some sort of services using Tap5 when the container init the Tap5 application? Yes, absolutely.

Re: Application scope services

2009-05-03 Thread Angelo Chen
Hi, I had a similar needs before, what I did is, write a scheduler using Quarts, then initialize it at time of IOC start up: // Start the SMSScheduler from IOC public static void contributeRegistryStartup(OrderedConfigurationRunnable configuration, final SMSScheduler

T5.1 Spring 3.0 dependency mismatch

2009-05-03 Thread Lubor Gajda
I just downloaded Spring 3.0 M2 and ran into some strange dependency issues when I tried to use it together with T5.1. It seems that T5.1 requires Antlr 3.1.1 and doesn't work with 3.0.1, but Spring 3.0 requires Antlr 3.0.1 and doesn't work with 3.1.1. Did anybody else run into this issue? Is

Re: Solving the T5 Documentation Dilemma

2009-05-03 Thread Piero Sartini
On Freitag, 1. Mai 2009 19:04:53 Otho wrote: The perfect solution and topping cream would be a forum/community system written in Tapestry of course, as a showcase and demonstration of its capabilities as well as a solid starting point for Tapestry apps. But I am aware of the effort and time

[docs improvement] Make integration tests live

2009-05-03 Thread manuel aldana
Are the integration test-apps (app1-app5) of tapestry-core placed somewhere live on a public place? I think the integration tests could greatly be reused to document how to use tapestry features: -they are quite isolated (most of pages test one particular feature) -you see live how things

t5: InjectPage and context

2009-05-03 Thread Angelo Chen
Hi, I have a page called WriteMsg, in another page I use follow code to inject the page @InjectPage private WriteMsg writeMsg Ojbect onActionFromWrite() { return writeMsg; } but how to pass a context to the instance of page without using @Persist instances? Thanks, public

workaround for hibernate-module problem (ValueEncoderSource contribution)

2009-05-03 Thread manuel aldana
hi, I am facing problem described in http://www.nabble.com/Hi-Lo-tutorial,-HIbernate-cfg-errors-td22230480.html. In my app I am using palette component and tapestry-hibernate, so the ValueEncoder contribution is interfering with each other. Is there another alternative/workaround as

Re: Problem using BeanEditForm with a POJO

2009-05-03 Thread Thiago H. de Paula Figueiredo
Em Sun, 03 May 2009 01:25:04 -0300, mraible m...@raibledesigns.com escreveu: I'm using Tapestry 5.0.14. You can download the project from http://static.raibledesigns.com/downloads/basic-tapestry.zip. Why 5.0.14? It's quite old. The last stable version is 5.0.18 and many improvements were

Re: t5: InjectPage and context

2009-05-03 Thread Ville Virtanen
Forgot to mention that the PageRenderLinkSource is not part of T5.0.18, It was introduced later. - Ville Ville Virtanen wrote: Hi, Two solutions: 1. Use PageLink in tml. (And supply the context to it from the java class) 2. Use PageRenderLinkSource (return

Re: workaround for hibernate-module problem (ValueEncoderSource contribution)

2009-05-03 Thread Ville Virtanen
Provide the hibernate configuration if it is missing. If not, please attach the stack trace so we can take a look at it. - Ville aldana wrote: hi, I am facing problem described in http://www.nabble.com/Hi-Lo-tutorial,-HIbernate-cfg-errors-td22230480.html. In my app I am using

Re: Solving the T5 Documentation Dilemma

2009-05-03 Thread Ville Virtanen
Is someone still using own mail to receive these :) I've used nabble for a while, and it really rocks. Try it out http://www.nabble.com/Tapestry-f302.html - Ville Piero Sartini-4 wrote: On Freitag, 1. Mai 2009 19:04:53 Otho wrote: The perfect solution and topping cream would be a

Re: Using futures to parallelize rendering of components

2009-05-03 Thread Ville Virtanen
Hi, Don't really understand the question, but if you're having perfomance problems then caching would be the way to go? You can use blocks to separate what ever you wish to wrap as T5 components and place them to one central page, from which those blocks can be used. T5 caches all pages and

Re: Using futures to parallelize rendering of components

2009-05-03 Thread cfineman
Just realized I need to clarify something... the future would be making an HTTP request to retrieve the raw HTML (aka the guts) of the component and that would get inserted into the final DOM verbatim. -- View this message in context:

Re: Using futures to parallelize rendering of components

2009-05-03 Thread cfineman
Thanks for the response Ville, Caching the component wont always work well since these are dynamically rendered. Certainly we will consider caching when appropriate but, for example, sometimes it's specialized by the user. Also, much of this content is provided by non-Tapestry sources (we have

Re: Problem using BeanEditForm with a POJO

2009-05-03 Thread mraible
Are there instructions for upgrading to 5.0.18. I tried and I see the following error when I try to run integration tests with Canoo WebTest: [INFO] [talledLocalContainer] DEBUG [btpool0-0] ServiceFacade.create(234) | Creating service 'ServiceFacade'. [INFO] [talledLocalContainer] ERROR

Re: Problem using BeanEditForm with a POJO

2009-05-03 Thread mraible
FWIW, The error seems to happen in my Login.java class in the following method: public String getSignup() { String link = resources.createPageLink(Signup, false).toAbsoluteURI(); return MessageFormat.format(messages.get(login.signup), link); } Full source for Login.java

Tapestry 5 Validation

2009-05-03 Thread mraible
Is it possible to do validation declaratively, or rather - only at the web tier? AFAIK, I can only do validation with 1) annotations on the model object or 2) manually with if (blank) logic in my Page. Thanks, Matt -- View this message in context:

Re: workaround for hibernate-module problem (ValueEncoderSource contribution)

2009-05-03 Thread manuel aldana
The hibernate config is there (before using palette component I had a working tapestry-hibernate module integration). I thought it is a bug from the hibernate-tapestry module? HibernateModule's contributeValueEncoder(...) interferes with the one of the standard TapestryModule. Maybe I just

Re: Solving the T5 Documentation Dilemma

2009-05-03 Thread Piero Sartini
Is someone still using own mail to receive these :) Yes... that means normally there should be a lists@ alias for sending mails to the lists - need to check whats wrong with my smtp setup. I've used nabble for a while, and it really rocks. Try it out http://www.nabble.com/Tapestry-f302.html

Re: Tapestry 5 Validation

2009-05-03 Thread Ulrich Stärk
I don't exactly get what you mean. You can validate for example textfield by passing a validator to the validate parameter of some of the components. For example t:textfield value=someProperty validate=required / would make sure that someProperty actually has a value. See

Re: Using futures to parallelize rendering of components

2009-05-03 Thread Thiago H. de Paula Figueiredo
Have you done any profiling to know exactly how much time your application is spending rendering? Most of the time bottlenecks are in other places (specially in the database). By the way, Tapestry does not have a rendering tree, but a rendering queue. No recursion is used when rendering a

Re: Problem using BeanEditForm with a POJO

2009-05-03 Thread Otho
The error seems to be in your template. [INFO] [talledLocalContainer] org.apache.tapestry5.ioc.internal.util.TapestryException: Failure reading parameter 'value' of component Login:outputraw: Could not convert 'type' into a component parameter binding: java.lang.NoClassDefFoundError:

Re: Using futures to parallelize rendering of components

2009-05-03 Thread cfineman
Thiago H. de Paula Figueiredo wrote: Have you done any profiling to know exactly how much time your application is spending rendering? Most of the time bottlenecks are in other places (specially in the database). It's not really the rendering that I'm concerned about but rather the

Re: Tapestry 5 Validation

2009-05-03 Thread cfineman
Do you mean javascript validation? The beanform seems to support using things like scriptalicious to implement client-side validation (of the declarative constraints specified at the page level). I didn't see any evidence that the leaf core components support this. I did find some info at:

Re: [T5.1.0.2] / [T5.1.0.3] BlackBird Info Logging

2009-05-03 Thread Steve Eynon
2009/4/24 Blower, Andy andy.blo...@proquest.co.uk: Any time a message, of any category, is added, Blackbird will popup (by design). This surprises me, I also assumed that (since it's a development/debugging tool) the console would be disabled in production mode. I'd be very interested to

[T5.1.0.4] Distinguishing Between Internal and Scripts when Combining

2009-05-03 Thread Steve Eynon
Hi, If you add a script with an external url then script combining is disabled. From DocumentLinkerImpl : public void addScriptLink(String scriptURL) { ... // If a script with an external URL is added, we can't combine the scripts after all. if (combineScripts

Re: t5: appending a query string to a page name?

2009-05-03 Thread Geoff Callender
There are several ways to pass data between pages in T5. They're all demonstrated here: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/state/passingdatabetweenpages1 The one you want is labelled Request Parameters. Does that help? Geoff On 02/05/2009, at 6:15 PM,