Re: Fetching from messages in different languages

2011-08-23 Thread Stephan Windmüller
Am 23.08.2011 14:23, schrieb Stephan Windmüller: On the other hand, if you inject the global Messages object (containing the contents of app.properties plus other things) that's actually a dynamic proxy that delegates to the correct instance matching the thread locale at the time you invoke meth

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-23 Thread Magnus Kvalheim
No sorry, that's not relevant for this. Eager to help, but I should have paid more attention to detail :) On Wed, Aug 24, 2011 at 8:33 AM, Magnus Kvalheim wrote: > I sometimes use a proxy for doing redirects. > > *public class RedirectProxy {* > * @Persist private String redirectURL;* > * @Injec

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-23 Thread Magnus Kvalheim
I sometimes use a proxy for doing redirects. *public class RedirectProxy {* * @Persist private String redirectURL;* * @Inject private ComponentResources _resources;* * Object onActivate(){* * try {* * URL url = new URL(redirectURL);* * return url;* * } catch (Exception e) {* * // TODO: handle exce

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-23 Thread TG
The AppModule is recognized and loaded Howard. I put a sysout inpublic static void bind(ServiceBinder binder), thus confirming that. Anything else is different in 5.3? I see that the flags used to be Strings, not a boolean, I was just wondering ... -- View this message in context: http:

Re: Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-23 Thread Howard Lewis Ship
This usually works out to be a naming problem, where the AppModule is not loaded because its in the wrong package or something. Check the logging output to see if your module is actually loaded. On Tue, Aug 23, 2011 at 5:20 PM, TG wrote: > My AppModule's method - > >        public static void > c

Tapestry 5.3: IOCSymbols.THREAD_POOL_ENABLED does not work!?

2011-08-23 Thread TG
My AppModule's method - public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add("tapestry.thread-pool-enabled", false); ... I also tried - public static void contributeApplicationDefaults(Mapp

Re: components and events + ComponentAction + FormSupport

2011-08-23 Thread Josh Canfield
> That's not fair!! :-) Hehe... true, it's not fair to make a person jump all over the inbox to follow a thread! :-) > I changed the "subject" field as the thread got a new direction (towards one > out of many potential solutions) to clearly seperate it from the initial > question. Changing the s

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-23 Thread Gunnar Eketrapp
Hum .. this did not work so I guess I have to do something on the client side as well ... if (request.isXHR()) { OutputStream os = response.getOutputStream("application/json;charset=UTF-8"); os.write(("{\"script\":\"window.location.replace('" + link.toAbs

Re: T5.3 Checklist java.lang.reflect.GenericSignatureFormatError

2011-08-23 Thread TG
Ok I missed one jar, I fixed that. Now I got the following - Exception constructing service 'PageSource': Error invoking service builder method org.apache.tapestry5.internal.services.InternalModule.buildPageSource(PageSourceImpl, InvalidationEventHub, InvalidationEventHub) (at InternalModule.j

Re: T5.3 Checklist java.lang.reflect.GenericSignatureFormatError

2011-08-23 Thread TG
I updated with T5.3 alpha 13 and I got new exception - Aug 23, 2011 7:27:47 PM com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Aug 23, 2011 7:27:48 PM com.google.apphosting.utils.config.AppEngineWebXmlReader r

Re: components and events + ComponentAction + FormSupport

2011-08-23 Thread Jens Breitenstein
He Josh!! Am 23.08.11 19:50, schrieb Josh Canfield: Hmm.. every response from Jens is starting a new thread. Very hard to follow. On Tue, Aug 23, 2011 at 1:43 AM, Robert Zeigler wrote: That's not fair!! :-) I changed the "subject" field as the thread got a new direction (towards one out

Re: New to Tapestry, problem with EditBlock.

2011-08-23 Thread Thiago H. de Paula Figueiredo
On Tue, 23 Aug 2011 13:50:39 -0300, Vignir Jónsson wrote: Hello, Hello! Thanks for lending a hand. :) Why would the Authentication property be null? It is not null on the actual Edit page. Without code it's almost impossible to say. I'd guess you're only setting the property duri

Re: components and events + ComponentAction + FormSupport

2011-08-23 Thread Josh Canfield
Hmm.. every response from Jens is starting a new thread. Very hard to follow. On Tue, Aug 23, 2011 at 1:43 AM, Robert Zeigler wrote: > PS. :) > > 1) There's an easier way to do this than what I said in my last e-mail. :) A > ComponentAction is executed in the order in which it is stored.  The pr

Re: components and events

2011-08-23 Thread Josh Canfield
> I wonder how a component can participate on > form events (especially onSubmit) which would give me a chance to "set back" > the values in my model. I would treat your aggregate components the same way the basic textfield classes work. You can either pass the model and have it update the model p

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-23 Thread Kalle Korhonen
On Mon, Aug 22, 2011 at 4:42 PM, Howard Lewis Ship wrote: > Actually, perhaps Tapestry's client-side support should, by default, > handle 302 correctly. Yes, perhaps so. But the correctness is "in the eye of the beholder". It's clear that a 302 response to a non-ajax request always causes a redir

Re: T5.3 Checklist java.lang.reflect.GenericSignatureFormatError

2011-08-23 Thread Josh Canfield
> Is the latest available at > https://repository.apache.org/content/repositories/snapshots/org/apache/tapestry/tapestry-core/5.3-SNAPSHOT/ I didn't think that the snapshots are being kept up to date, but I could be wrong. The timestamps on the files are confusing because they are for yesterday. P

Re: Delegate and Blocks!

2011-08-23 Thread Josh Canfield
Can you describe what you are trying to do and/or provide a more complete example? From what you've provided it's hard to figure what you're asking. On Tue, Aug 23, 2011 at 2:11 AM, ngocquy_ytc wrote: > Hi all! Im a newbie! i have issues. > > > At A.tml : >              .. > >              

Re: New to Tapestry, problem with EditBlock.

2011-08-23 Thread Edwin
Job class was supposed to be: @Entity public class Job { private Authentication authentication; ... } in the name of simplifying things. -- View this message in context: http://tapestry.1045711.n5.nabble.com/New-to-Tapestry-problem-with-EditBlock-tp4727269p4727273.html Sent

New to Tapestry, problem with EditBlock.

2011-08-23 Thread Edwin
Hello there, I have the model class Job @Entity public class HttpScheduledJob extends ScheduledJob { private Authentication authentication; ... } which has an authentication @Entity @Embeddable public class Authentication { private Long id; private String schema;

RE: Upgrading from old Tomcat and Tapestry versions

2011-08-23 Thread Parker, Chris@CDCR
That would buy us some time, but eventually it will be a problem. Thanks for the info. -- Chris Parker -Original Message- From: Andreas Fink [mailto:fink.a...@googlemail.com] Sent: Tuesday, August 23, 2011 8:07 AM To: Tapestry users Subject: Re: Upgrading from old Tomcat and Tapest

Re: Upgrading from old Tomcat and Tapestry versions

2011-08-23 Thread Andreas Fink
Hi Chris. The current Versions (5.x) of Tapestry has only concepts in common with 3.x. If your machine is beefy enugh i would recommend running the existing app in a 32bit VM. Just my 2 cents. Cheers, Andi. The On Aug 23, 2011, at 4:59 PM, Parker, Chris@CDCR wrote: > Greetings all: > > I re

Re: Upgrading from old Tomcat and Tapestry versions

2011-08-23 Thread Muhammad Gelbana
I've never worked with Tapestry v3 but from what I've read about the history of Tapestry v4, the current Tapestry version has almost nothing to do with v4, so I guess v3 is completely different from how the current version behaves. I'm sorry but I think you have a lot of typing to do :s...good luc

Upgrading from old Tomcat and Tapestry versions

2011-08-23 Thread Parker, Chris@CDCR
Greetings all: I recently started to manage an application written by someone long gone, after the application had sat unattended and unmanaged for ages. The application is currently running on Java 4, Tomcat 5.0, and uses Tapestry 3.0.1, running on 32bit Windows 2000 server. We'd like to upg

Re: Palette and Checklist don't use contributed value encoder?

2011-08-23 Thread Robert Zeigler
That's not why. The reason for the difference is simply that AjaxFormLoop, Palette, Checklist, Hidden, and RadioGroup /always/ make use of ValueEncoder. Grid, GridRows, and Loop don't (the only do when they're used inside a form). Encoder probably should be marked as required for Select. Rob

Re: Palette and Checklist don't use contributed value encoder?

2011-08-23 Thread Denis Stepanov
Because it can't determine a type from a collection of values. Denis Aug 23, 2011 v 12:16 PM, Bob Harner: > Although I don't agree with the majority, I'll work on updating the > javadocs to make the meaning of "required" clearer for the encoder > parameter. > > For this, can anyone tell me why

Re: T5.3 Checklist java.lang.reflect.GenericSignatureFormatError

2011-08-23 Thread TG
Downloaded from somewhere on Sunday, August 14, 2011 12:51 PM. Is the latest available at https://repository.apache.org/content/repositories/snapshots/org/apache/tapestry/tapestry-core/5.3-SNAPSHOT/ ? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-Checklist-Sample-Co

Re: Fetching from messages in different languages

2011-08-23 Thread Stephan Windmüller
On 23.08.2011 14:16, Howard Lewis Ship wrote: On the other hand, if you inject the global Messages object (containing the contents of app.properties plus other things) that's actually a dynamic proxy that delegates to the correct instance matching the thread locale at the time you invoke methods

Re: Fetching from messages in different languages

2011-08-23 Thread Howard Lewis Ship
It is true that once a page is loaded for a request, in a particular locale, that's fixed, even if you change the threads Locale using the ThreadLocale service. On the other hand, if you inject the global Messages object (containing the contents of app.properties plus other things) that's actually

Delegate and Blocks!

2011-08-23 Thread ngocquy_ytc
Hi all! Im a newbie! i have issues. At A.tml : ..

Re: Palette and Checklist don't use contributed value encoder?

2011-08-23 Thread Bob Harner
Although I don't agree with the majority, I'll work on updating the javadocs to make the meaning of "required" clearer for the encoder parameter. For this, can anyone tell me why Grid, GridRows, Loop, and Select mark the "encoder" parameter optional while AjaxFormLoop, Palette, Checklist, Hidden,

Re: components and events + ComponentAction + FormSupport (SOLVED)

2011-08-23 Thread Jens Breitenstein
ok Robert! you are a genious, that did the trick. for all T5'ers interested in Robert's solution see below both possible versions. BUT: Incidentally, you mentioned validate in your previous e-mail... each form component fires its own validate event, so the validate event you mentioned befor

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-23 Thread Gunnar Eketrapp
Thanks a lot! I think I found what I needed in ConfigurableRequestExceptionHa ndler.java

Re: components and events + ComponentAction + FormSupport

2011-08-23 Thread Robert Zeigler
PS. :) 1) There's an easier way to do this than what I said in my last e-mail. :) A ComponentAction is executed in the order in which it is stored. The problem here is that you're storing it in the SetupRender phase, which is before the form components store their actions for updating the valu

Re: components and events + ComponentAction + FormSupport

2011-08-23 Thread Robert Zeigler
Yeah, after you explained further, I knew that was going to be problematic. :) Try formSupport.defer(Runnable command); The runnable will get executed after all other actions, just before the form's validate event is fired, so the values will be updated at that point. But you'll have to defer t

RE: components and events + ComponentAction + FormSupport

2011-08-23 Thread Jens Breitenstein
Hi Robert (and all others), sorry to bother you, but I implemented a ComponentAction and use FormSupport as you suggested it. And it's near to what I need :-) Unfortunately the "execute" method is called before tapestry updates the property thus I see the orginal value not the new one? Any id

Fetching from messages in different languages

2011-08-23 Thread Stephan Windmüller
Hello! Is it possible to change the language of injected messages during the page rendering? Background: The exception report page shows the user a localized error. The user has the option to forward a bug report to the administrator, but this report should always be in English. I tried to

Re: [ANN] JumpStart 5.4 does Tapestry 5.2.6

2011-08-23 Thread Massimo Lusetti
On Mon, Aug 22, 2011 at 4:42 PM, Geoff Callender wrote: > JumpStart has been upgraded to use Tapestry 5.2.6. And... As always pretty cool... Thanks Geoff! Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail

Re: Image component for tap5

2011-08-23 Thread Robert Zeigler
These days in Tap5, I think most of us either do: Or else just: You could: a) extend "any" b) Write your own component from scratch c) Maybe refactor your custom code into a mixin? Robert On Aug 23, 2011, at 8/232:03 AM , Ken in Nashua wrote: > > Hi All, > > There use to be a Imag

Re: ASO state objects and StateObjectfactory... tap4 to tap5

2011-08-23 Thread Taha Hafeez
Hi You can create a singleton service which can act as an application state object. On Tue, Aug 23, 2011 at 12:13 PM, Ken in Nashua wrote: > > Hi All, > > In tap-4.1.2 there was a concept of ASO whereby a singleton would be loaded > on bootstrap and an application state object cuold be maintain

Image component for tap5

2011-08-23 Thread Ken in Nashua
Hi All, There use to be a Image component for tap4... Is there one for tap5 ? If not is there one that suffices...? I am upgrading some tap4 code... my derivative extended the old tap4 Image and did some transparent modeling. I want to extend what exists for tap5 Image capabilities and custom