[T5] Adding/removing entries to messages

2010-02-06 Thread Nuno Ferreira
Hi, I would like to know if there is a way to programatically add and remove an entry from a messages catalog. The only way I see how to do this is to write to the file app_{locale}.properties, but I would like a cleaner way if there is one. I want to use google translate to automatically fill e

Re: [T5] Adding/removing entries to messages

2010-02-06 Thread Alexander Muthmann
Fast idea: You could override the existing provider for Message-Entries and add a function to look at google translate if the requestes label was not found. The service would be ComponentDefaultProvider and the needed method defaultLabel: public String defaultLabel(ComponentResources resources

Re: [T5] Adding/removing entries to messages

2010-02-06 Thread Nuno Ferreira
I'll definitely try that. And using a cache I could give my users the functionality to change at runtime the label translations, which I'm planning anyway since google translate isn't always perfect. On 6 February 2010 12:19, Alexander Muthmann wrote: > Fast idea: > You could override the exist

Re: Automatically include javascript companion

2010-02-06 Thread Inge Solvoll
There you go, did it for fun :) One thing remaining: how to find out if asset exists without an exception being thrown? public class IncludeJavascriptLibraryWithSameNameWorker extends AbstractIncludeAssetWorker { private final RenderSupport renderSupport; private final AssetSource assetSourc

Re: T4: forward browser to an external web site

2010-02-06 Thread Ivano Luberti
Thanks Martin: it worked. But what I could do in case I had to submit a form accepting only POST method in the form? Ivano Luberti ha scritto: > I will try that: for whatever reason I was convinced that I had to > submit a form and not simply a link. > But checking twice the docs of the web site

T4 (solution) : calling a page with an ILink

2010-02-06 Thread Ivano Luberti
Probably not many are interested because it is a T4 problem, but who knows? Some days ago I have asked about how in T4 redirect the browser to an external web site after submitting to a listener in a page. Martin Strand provided me a solution using an ILink. However that led me to another proble

Re: T4: forward browser to an external web site

2010-02-06 Thread Martin Strand
For POST requests, your initial idea is the way to go: Of course I can return to the new user a new page with a form that has an action that points to the web site, but it would be far better to have my page class. So you'll render a form (no need to use the Form component for this) http://w

Re: TestNG & Injecting Testify services into pages

2010-02-06 Thread Alex Kotchnev
Paul, I tried the trick w/ the RequestCache; however, it blows up when I try to cast the page instance that I pick up from the cache. When I debug it, it does show that it's the same class (as is stated in the exception); however, because of the class transformations (or maybe some classloader

web service problem

2010-02-06 Thread Jun Tsai
hi,all I want to export tapestry service as web service. ServiceActivityScoreboard sas = registry.getService(ServiceActivityScoreboard.class); List activities = sas.getServiceActivity(); for(ServiceActivity activity:activities){ Class serviceInterface = activity.getServiceInterface(); WebService

Re: [ANNOUNCEMENT] Introducing Tynamo!

2010-02-06 Thread Kalle Korhonen
FYI for those interested - I just deployed our conversations example live to Google App Engine (GAE), available at http://example.tapestry-conversations.tynamo.org/. Figured GAE is a good way of powering up the sample apps and at the same time, the module serves as demonstration of maven integratio