T5.1.05 always runing slowly when it handle the page requests

2010-07-23 Thread cleverpig
So stranger,I use Tapestry5.1.05(stable version) in these environment: 1.product environment :Tomcat6+windows 2003 server. 2.development environment :Tomcat6+windows xp. In dev environment,everything is okay. But in product environment,T5 takes 14~15 second almostly to handle one page request! I

RE: Lots of Tapestry problems - quickstart and tutorial

2010-07-23 Thread Newham, Cameron
Thanks Andreas. Much appreciated. -Original Message- From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of Andreas Andreou Sent: 22 July 2010 12:22 To: Tapestry users Subject: Re: Lots of Tapestry problems - quickstart and tutorial ok, my bad - i've left some https referenc

T5.2-Snapshot Can't handle components and mixins' script or css files with includeJavascript and includeStyle method.

2010-07-23 Thread cleverpig
I don't why but it really happend when I changed to use 5.2.0-snapshot. if any script or css files which put in classpath,just not web context,they must miss at the page. sample code-comfirm mixin: @IncludeJavaScriptLibrary("${my.scripts}/confirm.js") public class Confirm { @Parameter(value

Re: T5.2-Snapshot Can't handle components and mixins' script or css files with includeJavascript and includeStyle method.

2010-07-23 Thread cleverpig
cool,solved! my Tapestry5.2.0-snapshot(20100208 version) lost a important thing in AppModule: public static void contributeRegexAuthorizer(Configuration conf){ conf.add("^.*png$"); conf.add("^.*jpg$"); conf.add("^.*jpeg$"); conf.add("^.*js$");

Zoneupdater mixin best practice

2010-07-23 Thread Peter Stavrinides
Hi all, I am trying out the Zoneupdater mixin on a dropdown. What I want to do is as follows: When the user selects an option from the dropdown I want to trigger an event that filters a list, which is then used on an autocomplete textfield. Sounds simple enough but I don't quite understanding

Re: Zoneupdater mixin best practice

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 07:40:18 -0300, Peter Stavrinides wrote: Hi all, Hi! To be more specific, I am using the Zoneupdater (code below) with a zone that encloses a form, and the form encloses several textfields. For my use case I only want to target one specific form element but don't kn

Re: T5.1.05 always runing slowly when it handle the page requests

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 04:38:15 -0300, cleverpig wrote: In dev environment,everything is okay. But in product environment,T5 takes 14~15 second almostly to handle one page request! Have you checked if the bottleneck is elsewhere? In the database access or a server with other high CPU or I/O

Re: Zoneupdater mixin best practice

2010-07-23 Thread Peter Stavrinides
> To not lose the field values, submit the form. Well thats kind of what I hoped to avoid > To update just one field, you can create an event and trigger and handle > it with a little bit of custom JavaScript and the JSON classes in Tapestry. If this is the best approach then can someone suggest

Jumpstart AssetProtectionFilter and Chenillekit Rich Editor

2010-07-23 Thread abangkis
Hello, I've emplemented jumpstart AssetProtectionFilter in my application. And add the list bellow as the white list final HashSet ASSETS_WHITE_LIST = new HashSet(Arrays.asList("jpg", "jpeg", "png", "gif", "js", "css", "ico", "apk")); I have a page

Re: blackbird.js and IE breaking fixed CSS background image

2010-07-23 Thread Rich
Sure, here is the current code from AppModule and MyClientInfrastructure. AppModule |public static ClientInfrastructure decorateClientInfrastructure(@InjectService("ClientInfrastructure") @Core ClientInfrastructure original, @InjectService("AssetSource") AssetSource assetSource) {

Re: blackbird.js and IE breaking fixed CSS background image

2010-07-23 Thread Rich
Whoops. Seems I spoke too soon. After looking at that code out of context it looked like the @InjectService and @Core are at stakes in the AppModule, and removing @InjectService allowed @Core to resolve through properly. Seems to be working alright now. Thanks Jim and Robert for the help. Reg

Re: T5.1.05 always runing slowly when it handle the page requests

2010-07-23 Thread cleverpig
yes,of course.but there is nothing,I had changed tow host,the problem keeps. On Fri, Jul 23, 2010 at 8:50 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 23 Jul 2010 04:38:15 -0300, cleverpig > wrote: > >> In dev environment,everything is okay. >> But in product environment,T5 takes 14~15 sec

Re: blackbird.js and IE breaking fixed CSS background image

2010-07-23 Thread Robert Zeigler
A few comments: 1) You have AssetSource in your constructor definition, but you also seem to have the field marked with @Inject in your implementation; any particular reason? If you're "injecting" via constructor injection, you shouldn't need the @Inject annotation on the service field. 2) loo

Re: Zoneupdater mixin best practice

2010-07-23 Thread Stefan Hagström
Hi, i just recently implemented a similar solution with Jquery jQuery(document).ready(function() { jQuery("#county").change(function(){ var county = jQuery(this).val(); // Send the request and update sub category dropdown jQuery.ajax({ type: "GET",

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
Okay having to try both suggestions I'm finding that requirement of a component class is what's making this simple requirement a difficult excercise. I was able to get templates to load from a different location on the filesystem, but that's not really my requirement. Here is a very simplified sce

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 13:26:03 -0300, Adam Zimowski wrote: So is there a way to make Tapestry process a template without a Java class? That's really, all I need. No. On the other hand, you can have a Tapestry page to render different output based on activaction context or query parameters.

T5 AppModule best practice

2010-07-23 Thread cleverpig
Let's share a lot of that which was used in your project? I've been looking for documentation about how the AppModule class works. Sadly, I have only found a few examples of bind/contribute and build methods, but nothing that explains when and what to use. It sounds bad for newbies. PS: http://t

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
I guess worst case scenario we can precompile these empty classes during our publishing process. Need to verify if that will work but that would be the work around. On Fri, Jul 23, 2010 at 11:26 AM, Adam Zimowski wrote: > Okay having to try both suggestions I'm finding that requirement of a > co

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 13:31:59 -0300, Adam Zimowski wrote: I guess worst case scenario we can precompile these empty classes during our publishing process. Need to verify if that will work but that would be the work around. Why not having a single page class that loads the content to be rende

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
I was thinking about that Thiago :) In fact, that's about how we do it currently with Struts. I'm going to give this a try today. Adam On Fri, Jul 23, 2010 at 11:37 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, 23 Jul 2010 13:31:59 -0300, Adam Zimowski > wrote: > >> I guess worst case scen

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 13:45:57 -0300, Adam Zimowski wrote: I was thinking about that Thiago :) In fact, that's about how we do it currently with Struts. I'm going to give this a try today. Struts is a completely different beast when compared to Tapestry, so most of the approaches used in on

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Robert Zeigler
That's how I've done it in the past. With URL rewriting, this can be made even "nicer" in that you can map your more complicated url (with extra parameters/pathinfo) to a simpler url, and vice versa Robert On Jul 23, 2010, at 7/2311:45 AM , Adam Zimowski wrote: > I was thinking about that Thi

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Michael Gentry
On Fri, Jul 23, 2010 at 12:51 PM, Thiago H. de Paula Figueiredo wrote: > Struts is a completely different beast when compared to Tapestry, so most of > the approaches used in one don't apply to the other. I think that's why we are here, Thiago. :-) mrg -

Re: Jumpstart AssetProtectionFilter and Chenillekit Rich Editor

2010-07-23 Thread abangkis
Okay, i found it. Turn out i need to add "html" and "xml" to the white list. But since it will defeat the purpose of the filter, i think the correct approach is add another test in the asset protection filter to allow any path that contains "chenillekit". In case someone else face the same problem

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Adam Zimowski
Tapestry never disappoints! Single page loading content from activation context is so simple and easy, it just feels like the right way to go! Here is what I've got which pretty much works. Static publishable content wrapped around a layout. Few questions regarding possible improvements: * Is the

Re: blackbird.js and IE breaking fixed CSS background image

2010-07-23 Thread Rich
Robert Zeigler wrote: A few comments: 1) You have AssetSource in your constructor definition, but you also seem to have the field marked with @Inject in your implementation; any particular reason? If you're "injecting" via constructor injection, you shouldn't need the @Inject annotation on th

Re: T5: CMS integration - multiple templates single controller?

2010-07-23 Thread Thiago H. de Paula Figueiredo
On Fri, 23 Jul 2010 16:44:13 -0300, Adam Zimowski wrote: * Is there a better way to store file content (cache?). Not sure if reading it on each access is the right way to go. You should definetely use some form of cache (EHCache, etc). Never user an expansion (${}) when passing a value t