Re: Ideas on transitioning from earlier version to Tapestry 5

2008-09-19 Thread Matt Doran
SergeEby wrote: Hi, I started documenting this for the migration from T4 to T5. Please refer to the following project: http://code.google.com/p/tapestry5-appfuse/ The code is updated. However, I haven't had a chance to update the steps recently, but this is on my todo list. /Serge Than

IoC Question with Alias

2008-09-19 Thread Michael Gerzabek
Hi, I have a problem with the contributions to the alias service. The AppModule is ... public static void bind( ServiceBinder binder ) { binder.bind( SiteDispatcher.class ).withId( "SiteDispatcher" ); binder.bind( SiteServiceImpl.class ).withId( "SiteService" ); binder.bind( HttpdReq

Re: Tapestry 5 doesn't like debugger ?

2008-09-19 Thread Marcelo Lotif
I think this is not really related with Tapestry... Here we can run the debugger and tapestry apps with no problems. I saw (two or three times) some problems with "HotSpot Virtual Machine" when i run the debugger, and they are really offensive giving no clues and killing the proccess, but they go a

Re: external link component

2008-09-19 Thread Luther Baker
Thank Uli. Exactly the kind of advice I was looking for. -Luther On Fri, Sep 19, 2008 at 11:37 AM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > Indeed ActionLink and PageLink are for use within your application only. > The rest depends on your use case. If you want to link to another web page >

Re: Handling of the browser locale

2008-09-19 Thread Geoff Callender
Oops, I meant http://202.177.217.122:8080/jumpstart/examples/localization/bymessagecatalog . On 20/09/2008, at 1:14 AM, Geoff Callender wrote: Not sure if I'm answering your question, but there's also @Inject private Locale _currentLocale; For an example of it in action try ht

Re: external link component

2008-09-19 Thread Ulrich Stärk
Indeed ActionLink and PageLink are for use within your application only. The rest depends on your use case. If you want to link to another web page with a static URL I'd just put that in static html. If you want to compute the URL using some field values or such, try the Any component. For examp

external link component

2008-09-19 Thread Luther Baker
I want to create an external link ... and using the low level html anchor tag *http://...";>X* works just fine. Before doing that though, is there a tapestry component I should use instead? I'm not sure what the convention is here. It seems that pageLink is strictly for internal or application sp

Re: Handling of the browser locale

2008-09-19 Thread Ulrich Stärk
Do you know, what locale gets injected here (ThreadLocale's, Request's or PersistentLocale's)? The docs just say "The locale of the component" so I'd guess ThreadLocale's, but I'm not sure... Uli Geoff Callender schrieb: Not sure if I'm answering your question, but there's also @Inject

Tapestry 5 doesn't like debugger ?

2008-09-19 Thread Hugues Narjoux
Hi all, I am currently developing with Tapestry 5.0.14, Java 5 and eclipse WTP. I noticed that Tapestry does not like debugger... Putting a break point within a page class often crashes my JVM with insulting error messages :) I am just curious about why this is happening. Why is it working with ot

T5Components Inside AjaxResult - delay in loading javascript files

2008-09-19 Thread Anteneh Alemayehu
Hi All, When I use any of the T5Components inside the Ajax Result there is a remarkable delay in loading and checking previously loaded .js files. The T5Component, InPlaceCheckbox, is inside someBlock which is the result of an Ajax Call. Find the java and tml code below. Is there any one who

Re: Handling of the browser locale

2008-09-19 Thread Geoff Callender
Not sure if I'm answering your question, but there's also @Inject private Locale _currentLocale; For an example of it in action try http://localhost:8080/jumpstart/examples/localization/bymessagecatalog . Geoff On 20/09/2008, at 12:19 AM, José Paumard wrote: Ulrich, Many tha

Re: Handling of the browser locale

2008-09-19 Thread José Paumard
Ulrich, Many thanks for your very precise answer ! Indeed threadLocale.getLocale() is the way to go. José Ulrich Stärk a écrit : I'm not 100% firm in this area but I believe that the user's locale gets stored in the ThreadLocale service. This service is responsible for storing the current

Re: Handling of the browser locale

2008-09-19 Thread Ulrich Stärk
I'm not 100% firm in this area but I believe that the user's locale gets stored in the ThreadLocale service. This service is responsible for storing the current thread's locale, i.e. the locale for which pages, messages etc. are being generated. The locale in ThreadLocale gets set by a combinatio

Handling of the browser locale

2008-09-19 Thread José Paumard
Hello all, I know this looks like a faq, but to be sure, is T5 supposed to set the current locale (the one we get by calling persistentLocale.get()) on each request, and does it work ? My problem is that I get null when I call persistentLocale.get(), with a locale set when I call request.getL

Re: Page pool hard limit and page instance usage

2008-09-19 Thread 9902468
Good point. Now I'm going to read some documentation ;) -99 Ulrich Stärk wrote: > > Yes it can, but CollectionFactory is internal API (whereas > CaseInsensitiveMap is not) and I didn't > want to rely on it. > > Uli > > 9902468 schrieb: >> Thanks! >> >> Obviously I should read more than c

Re: Page pool hard limit and page instance usage

2008-09-19 Thread Ulrich Stärk
Yes it can, but CollectionFactory is internal API (whereas CaseInsensitiveMap is not) and I didn't want to rely on it. Uli 9902468 schrieb: Thanks! Obviously I should read more than code :) btw, case insensitive map can be obtained by calling org.apache.tapestry5.ioc.internal.util.Collection

Re: Page pool hard limit and page instance usage

2008-09-19 Thread 9902468
Thanks! Obviously I should read more than code :) btw, case insensitive map can be obtained by calling org.apache.tapestry5.ioc.internal.util.CollectionFactory.newCaseInsensitiveMap(); - 99 Ulrich Stärk wrote: > > You don't have to write your own ServletContextSymbolProvider, it already > c

Re: Page pool hard limit and page instance usage

2008-09-19 Thread Ulrich Stärk
You don't have to write your own ServletContextSymbolProvider, it already comes shipped with Tapestry. See here http://tapestry.apache.org/tapestry5/apidocs/index.html?org/apache/tapestry5/ioc/services/SymbolProvider.html You just have to configure it. Uli 9902468 schrieb: Yep, just read thro

Re: Page pool hard limit and page instance usage

2008-09-19 Thread 9902468
Yep, just read through your discussion: http://www.nabble.com/forum/ViewPost.jtp?post=19547763&framed=y&skin=302 and that would be the intelligent way of doing it :) I'll code symbol provider when I have time. Hopefully these providers can be included in T5 distribution, as these are highly reu

Re: Page pool hard limit and page instance usage

2008-09-19 Thread Ulrich Stärk
Why not instantiate a ServletContextSymbolProvider (the ServletContext is available from the ApplicationGlobals service) and contribute it to the SymbolProvider before ApplicationDefaults and FactoryDefaults. That way you can directly override tapestry.page-pool.hard-limit and automatically have

Re: Page pool hard limit and page instance usage

2008-09-19 Thread 9902468
I always keep nabble open when I'm at work :) These parameters can be transferred to web.xml, so that recompile is not needed when changing these parameters: public static void contributeApplicationDefaults(MappedConfiguration configuration, ApplicationGlobals globals) { configuration.add("

Re: Upgrade from T4 to T4.1: Javascript problem

2008-09-19 Thread Andreas Andreou
well, if it's easily reproducable add a bug report - otherwise, perhaps attaching the resulting html might help us find the cause On Fri, Sep 19, 2008 at 12:57 PM, Christian Haselbach <[EMAIL PROTECTED]> wrote: > Hi > > Andreas Andreou wrote: >> No, this shouldn't be the cause of this... >> >> Do

Re: Upgrade from T4 to T4.1: Javascript problem

2008-09-19 Thread Christian Haselbach
Hi Andreas Andreou wrote: > No, this shouldn't be the cause of this... > > Does this happen on FF? Does firebug show any resources not loading? > It happens on Firefox and IE. No, firebug reports nothing suspicious. I think I saw someone reporting a similar problem, but there was no further re

Re: [T5] loading tapestry configuration from properties file?

2008-09-19 Thread Ulrich Stärk
Neeme Praks schrieb: Ulrich Stärk wrote: Russell Brown schrieb: What 'it'? You mean symbol names? Well the 'it' was the class, or moreover the approach but that does result in specifically the symbol names in this instance, so: Yes that it, or they. Indeed. I think I could just load ever

Re: Upgrade from T4 to T4.1: Javascript problem

2008-09-19 Thread Andreas Andreou
No, this shouldn't be the cause of this... Does this happen on FF? Does firebug show any resources not loading? On Fri, Sep 19, 2008 at 11:56 AM, Christian Haselbach <[EMAIL PROTECTED]> wrote: > Hi, > > I was just trying to upgrade from T4 to T4.1 (4.1.6). When Javascript is > enabled, the page

Re: [T5] loading tapestry configuration from properties file?

2008-09-19 Thread Neeme Praks
I also revisited my code now. :-P Changes: * if not logger is supplied, it wraps all errors as IllegalArgumentException (fail-fast, as requested by Russell) * supports loading properties from existing Propeties/Dictionary object * extends MapSymbolProvider - so it delegates all case sensitiv

Upgrade from T4 to T4.1: Javascript problem

2008-09-19 Thread Christian Haselbach
Hi, I was just trying to upgrade from T4 to T4.1 (4.1.6). When Javascript is enabled, the page will be blank. With Javascript disabled in the browser, the page renders just fine. I replaces the ajaxDelegate in the Shell component with an empty render method. This works, but of course I get Javascr

Re: Page pool hard limit and page instance usage

2008-09-19 Thread nillehammer
Man that was a quick answer! Thanks for that. I am aware of this options in the configuration. I had not tuned them before, because load is not my problem. Anyway I have tuned them now and am currently waiting for the admistrator to deploy the newest war. According to acces-logs I was the only use

Re: [T5] loading tapestry configuration from properties file?

2008-09-19 Thread Neeme Praks
Ulrich Stärk wrote: Russell Brown schrieb: What 'it'? You mean symbol names? Well the 'it' was the class, or moreover the approach but that does result in specifically the symbol names in this instance, so: Yes that it, or they. Indeed. I think I could just load everything into a Map, the

Re: Page pool hard limit and page instance usage

2008-09-19 Thread 9902468
Hi, Eventually we had to add these to appmodule: configuration.add("tapestry.page-pool.hard-limit", "60"); configuration.add("tapestry.page-pool.soft-limit", "20"); configuration.add("tapestry.page-pool.soft-wait", "20 ms"); as instructed here: http://tapestry.apache.org

Re: Page pool hard limit and page instance usage

2008-09-19 Thread nillehammer
Hi list, I am also facing the problem that 9902468 had. I have -according to Howard's suggestion- replaced every pageLink with a customPageLink to prevent targeted pages from being created unecessarily. The problem persists. Trying to load the index-Page of my application with a browser I have to