Re: [T5.1] NPE in ResponseCompressionAnalyzerImpl.isCompressable

2009-06-01 Thread Moritz Gmelin
Hi, back to my original question: Is this NPE a bug in T5.1 or is redirection not working at all? M. Am 01.06.2009 um 23:31 schrieb Thiago H. de Paula Figueiredo: Em Mon, 01 Jun 2009 18:23:04 -0300, Moritz Gmelin > escreveu: Thanks for this try, Ooops, my mistake. You can return a Clas

Re: T5: PageLink on img tag

2009-06-01 Thread Kalle Korhonen
Incidentally, I'm doing exactly the same. Rather than trying to use a a page link, I'm just creating an action link then sticking the value to img tag's src attribute (as described at http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage). This works fine for me. Kalle On Mon, Jun

Re: [t5] Contributed master dispatcher not dispatching root url requests

2009-06-01 Thread zack1403
I am using 5.1.0.5. My class is under the services package in the same place as my app module. I added a breakpoint in my AuthDispatcher that the app stops at for every page except the root. If I go to the start page (http://localhost/mycontext/start), the breakpoint is called. I bound the disp

Re: @SessionState error

2009-06-01 Thread Howard Lewis Ship
@SessionState is meant for data holding POJOs, not simple types. On Mon, Jun 1, 2009 at 2:04 PM, Thibaut Gadiolet wrote: > Hi folks, > > As soon as I put the annotation @SessionState in my application, I get an > error. > > *here is a sample of code from home.java* > > *   �...@sessionstate >    

Re: [t5] Contributed master dispatcher not dispatching root url requests

2009-06-01 Thread Howard Lewis Ship
That looks good to me; the question is where this module class lives and is it being loaded? I.e. if you created a library to contain this module, that libarie's module may not be loaded. Look at the startup output in the console (in 5.1) to see which modules are being loaded and check the documen

Re: [T5.1] NPE in ResponseCompressionAnalyzerImpl.isCompressable

2009-06-01 Thread Thiago H. de Paula Figueiredo
Em Mon, 01 Jun 2009 18:23:04 -0300, Moritz Gmelin escreveu: Thanks for this try, Ooops, my mistake. You can return a Class or page instance only in onActivate(). Try public Class onActivate() { if (needsToRedirec

Re: @SessionState error

2009-06-01 Thread Thibaut Gadiolet
Thank you so much ! It works perfectly right now ! On Mon, Jun 1, 2009 at 5:06 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 01 Jun 2009 18:04:01 -0300, Thibaut Gadiolet < > thibaut.gadio...@gmail.com> escreveu: > > Hi folks, >> > > Hi! > > @SessionState >>priv

Re: [T5.1] NPE in ResponseCompressionAnalyzerImpl.isCompressable

2009-06-01 Thread Moritz Gmelin
Thanks for this try, but @BeginRender public Class beginRender() { return Start.class; } gives another Exception org.apache.tapestry5.internal.services.RenderQueueException: Render queue error in Begin

Re: @SessionState error

2009-06-01 Thread Thiago H. de Paula Figueiredo
Em Mon, 01 Jun 2009 18:04:01 -0300, Thibaut Gadiolet escreveu: Hi folks, Hi! @SessionState private String userName; Use @SessionState(create = false). This prevents Tapestry of trying to instantiate a String when userName wasn't set yet. -- Thiago H. de Paula Figueiredo Inde

Re: [T5.1] NPE in ResponseCompressionAnalyzerImpl.isCompressable

2009-06-01 Thread Thiago H. de Paula Figueiredo
Em Mon, 01 Jun 2009 17:49:40 -0300, Moritz Gmelin escreveu: Hi, Hi! You could just return Page1.class in beforeRender() or onActivate() to redirect instead of injecting Response and return null to continue processing the page without any redirection. This works in any Tapestry versio

@SessionState error

2009-06-01 Thread Thibaut Gadiolet
Hi folks, As soon as I put the annotation @SessionState in my application, I get an error. *here is a sample of code from home.java* *@SessionState private String userName; public String getUserName() { return userName; } public void setUserName(String userName) {

Re: Loop.restoreStateFromStoredClientValue.... in 5.1.0.5

2009-06-01 Thread Tom Zurkan
Fantastic idea! Worked like a charm. Thanks, Tom Robert Zeigler wrote: Sure... contribute a custom ValueEncoder for your data type? :) Robert On May 29, 2009, at 5/293:44 PM , Tom Zurkan wrote: ah, knew it was something like that... thank you! gotta change all my loops to use formState="

[T5.1] NPE in ResponseCompressionAnalyzerImpl.isCompressable

2009-06-01 Thread Moritz Gmelin
Hi, we just tried porting a larger application from 5.0.18 to 5.1.0.5. One thing is causing troubles though. We use redirection in some cases to bring the user back to the start page if an error occurs. This is how we do it in T5.1 (code from a sample Page to reproduce the NPE in a clean

Re: T5: PageLink on img tag

2009-06-01 Thread Thiago H. de Paula Figueiredo
Em Mon, 01 Jun 2009 12:04:48 -0300, Andy Buckley escreveu: Hi, Hi! (only without the "literal:" bits in practice: these contexts will be generated dynamically). The result isn't quite right, though: the link to the full-size image functions just fine, but the pagelinked renders the page

Re: [t5] Contributed master dispatcher not dispatching root url requests

2009-06-01 Thread zack1403
hey guys I'm still having this issue. Am I implementing my dispatcher incorrectly? -- View this message in context: http://www.nabble.com/-t5--Contributed-master-dispatcher-not-dispatching-root-url-requests-tp23734225p23820220.html Sent from the Tapestry - User mailing list archive at Nabble.c

Re: [Tapestry Central] Back from Training --- Next up, JavaOne

2009-06-01 Thread Michael Gentry
I was always fond of the Objective-C messaging syntax with the colons in the name. (Yes, I know it drives some people nutty.) It allowed for messages with self-documenting names, though, like NSMutableDictionary's setObject:forKey:. Compared to the Java HashMap put(Object, Object) -- which one i

Re: [Tapestry Central] Back from Training --- Next up, JavaOne

2009-06-01 Thread Howard Lewis Ship
Well, the whole [[MyClass alloc] init] autorelease] thing is kind of offputting, and (on the Desktop) Obj-C now has garbage collection. However, splitting construction into allocation (not always from the heap, i.e., easy to add pooling or singletons) and initialization is very cool. And the abil

Re: [Tapestry Central] Back from Training --- Next up, JavaOne

2009-06-01 Thread Michael Gentry
[objc retain]; On Sun, May 31, 2009 at 4:19 PM, Howard wrote: > It's been a rough week ... I still had my sore throat (noticeable > during the webinar) when I arrived to do four days of accelerated > Tapestry training in Michigan. Returning after midnight on Friday, I > had morning and afternoon

Re: T5: PageLink on img tag

2009-06-01 Thread Daniel Jones
Hi Andy, Have a look at this thread, I posted a solution that is similar to your requirements. http://www.nabble.com/T5:-How-to-load-image-Asset-from-filesystem--td22433419i20.html http://www.nabble.com/T5:-How-to-load-image-Asset-from-filesystem--td22433419i20.html Hope this helps, Daniel --

[Tapestry Central] Vendor Client Relationship Video

2009-06-01 Thread Howard
This has been making the rounds on YouTube: As a vendor, I can identify with this ... but I think a lot of clients out there (those not using Formos, for example) are ordering and charged for the Filet and receive the Tacos. Seriously ... multi-year development efforts are a different beast

Re: div ajax update based on form field events (blur or onkeydown or something..)

2009-06-01 Thread Inge Solvoll
Here's an example from my blog that might be useful. http://tinybits.blogspot.com/2009/05/update-zone-on-any-client-side-event.html On Mon, Jun 1, 2009 at 12:10 PM, Josh Long wrote: > Hello, > > Im doing my best to get back into Tapestry a bit, but Ive got some > questions.. How would I achei

Re: [t5.1.0.5] Expansion does not work in custom JavaScript block

2009-06-01 Thread Eric Ma
Answering my own question - come to think about it, as the code is wrapped in a comment block, I guess T5 has to treat it as literal string. After removing the tag and the comments, things are behaving properly in IE. Eric Eric Ma wrote: > > This is my .tml code: > > > > > > The ${m

T5: PageLink on img tag

2009-06-01 Thread Andy Buckley
Hi, I'm doing some data rendering using JFreeChart, for which I've created a Tapestry page "PlotImage" which renders images and returns them as StreamResponses of type PNG or PDF. I'd like to use this to render inline tags, e.g.: (only without the "literal:" bits in practice: these context

div ajax update based on form field events (blur or onkeydown or something..)

2009-06-01 Thread Josh Long
Hello, Im doing my best to get back into Tapestry a bit, but Ive got some questions.. How would I acheive something that renders a div based on whether a fields value is invalid. My use case: a form for registering. You enter first name, last name, email, and password. The email has to be unique