Re: An update on Tapestry 5.4

2012-10-19 Thread Muhammad Gelbana
> > Removing the hard-dependence on Prototype Perfect! Can we estimate the release date ? Thank you for your efforts :) On Fri, Oct 19, 2012 at 10:35 PM, Howard Lewis Ship wrote: > Just blogged a little update on Tapestry 5.4: > > http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry

Re: Tapestry Problem on Google App Engine in Development

2012-10-19 Thread Howard Lewis Ship
There's a recently fixed bug where, once content is compressed, the compressed content is cached for later requests regardless of whether the client requests compression or not. Fixed in 5.3.5. https://issues.apache.org/jira/browse/TAP5-1868 On Fri, Oct 19, 2012 at 2:42 PM, Lance Java wrote: >

Re: Tapestry Problem on Google App Engine in Development

2012-10-19 Thread Lance Java
So, it looks like something about GAE 1.7.2 is causing tapestry to send gzipped content but not set the content encoding header. I'm baffled and out of ideas... anyone else got any ideas? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Problem-on-Google-App-Engin

Re: Coercion exception in loop for Map

2012-10-19 Thread rosecorp
I found a solution for future reference. I was using formState in wrong place: -- View this message in context: http://tapestry.1045711.n5.nabble.com/Coercion-exception-in-loop-for-Map-tp5717072p5717073.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Coercion exception in loop for Map

2012-10-19 Thread rosecorp
Hi Guys, I am trying to sort out problem with coercion exception when I send a form using GenericSelectModel but I'm not getting anywhere I'm afraid. Could you give me a hand with that? This is my Java code: private Map> fieldMap; @Property private Filter key; public Set getKeys() {

An update on Tapestry 5.4

2012-10-19 Thread Howard Lewis Ship
Just blogged a little update on Tapestry 5.4: http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry

Re: Tapestry Problem on Google App Engine in Development

2012-10-19 Thread Dan Cyr
Interesting: @Override public boolean service(HttpServletRequest request, HttpServletResponse response, HttpServletRequestHandler handler) throws IOException { boolean rc = handler.service(request, response); logger.error("Contains header:

Re: [T5.3.x] useless toString in AbstractEventContext?

2012-10-19 Thread Lance Java
It looks like a bug to me, values is a private member variable that is never set (aka totally useless!!) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-x-useless-toString-in-AbstractEventContext-tp5717063p5717069.html Sent from the Tapestry - User mailing list archi

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Thomas Cucchietti
Ok I got it! The SubEntity ValueEncoderFactory was contributed to the valueEncoderSource, but for the wrong class... Real name of SubEntity is pretty long and there was a confusion with another class (with a very close name). Thanks for your suggestions, they finally led me to the real error! Re

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Thomas Cucchietti
This is precisely the problem : The ValueEncoder is already provided in the AppModule, but it isn't taken into account! Like I wrote before, I then tried to force the use of the encoder by setting explicitely the encoder parameter of my loop, but it doesn't work either... 2012/10/19 Thiago H de

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Thiago H de Paula Figueiredo
On Fri, 19 Oct 2012 09:42:08 -0300, Thomas Cucchietti wrote: I'm not using tapestry-hibernate (tech. stack is Tapestry/Spring/Hibernate) but currentSubEntity is an hibernate entitiy (annotated by javax.persistence.Entity). PS: I didn't see your previous answer while typing my second mail.

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Thomas Cucchietti
I'm not using tapestry-hibernate (tech. stack is Tapestry/Spring/Hibernate) but currentSubEntity is an hibernate entitiy (annotated by javax.persistence.Entity). PS: I didn't see your previous answer while typing my second mail. Obviously, I thank you too for trying to help :) 2012/10/19 Thiago H

[T5.3.x] useless toString in AbstractEventContext?

2012-10-19 Thread antalk
Hi all, I am working on some stuff with tynamo's conversation module and came to the conclusion (could be wrong) that the toString() method of AbstractEventContext is useless and even confusing. It only prints out the internal private var 'values' which cannot be used, or are overwritten in its i

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Thiago H de Paula Figueiredo
On Fri, 19 Oct 2012 09:15:40 -0300, Thomas Cucchietti wrote: Thanks for the 3 first answers, but this was just a typing error when preparing this mail : i didn't copy/paste my code. Are you using tapestry-hibernate? Is the type of currentSubEntity a Hibernate entity? -- Thiago H. de Pa

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Thomas Cucchietti
Thanks for the 3 first answers, but this was just a typing error when preparing this mail : i didn't copy/paste my code. I checked and, indeed, in my page I wrote : Sorry for this! However, my problem isn't solved yet :/ 2012/10/19 Thiago H de Paula Figueiredo > On Fri, 19 Oct 2012 07:38:44

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Thiago H de Paula Figueiredo
On Fri, 19 Oct 2012 07:38:44 -0300, Lance Java wrote: I disagree, I think that the root of the problem is ${...}. Tapestry will convert the entity to a string before passing it to the radio component. Yep. It seems that I haven't repeated this enough times: never, never, never ever use ${

Re: How to clear all data in a page when you move to a new one ? (Logout)

2012-10-19 Thread Thiago H de Paula Figueiredo
Your e-mail is confusing: the subject asks something, then the message itself asks something else. To clear all persisted data in a page: @Inject private ComponentResources resources; resources.discardPersistentFieldChanges(); To kill the user session: @Inject private Request request; Sess

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Lance Java
I disagree, I think that the root of the problem is ${...}. Tapestry will convert the entity to a string before passing it to the radio component. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-Loop-Radiogroup-Coercion-again-tp5717055p5717058.html Sent from the Tape

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Peter Wendorff
Am 19.10.2012 12:09, schrieb Thomas Cucchietti: Hello everybody! Hi Thomas. The point is, that when I submit one of the generated forms, I have a TapestryException with message "Could not find a coercion from type java.lang.String to type my.package.SubEntity" while the radiogroup line in temp

Re: [T5.3]Loop, Radiogroup, Coercion, again...

2012-10-19 Thread Lance Java
This line is wrong It should be -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-Loop-Radiogroup-Coercion-again-tp5717055p5717056.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: [t5.3.1 - AjaxFormLoop] How to prevent removing the last row ?

2012-10-19 Thread Ditso
Isn't it more simple to just make sure in your loop source there is always 1 element. This way there is always one line available? -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-3-1-AjaxFormLoop-How-to-prevent-removing-the-last-row-tp5566078p5717053.html Sent from the

Re: Tapestry Problem on Google App Engine in Development

2012-10-19 Thread Lance Java
Is MyFilter printing out before or after handler.service(request, response)? You'll need to print it out after. Taking a look at the tapestry source code, the GZipFilter wraps the response in an implementation that will only apply GZipping when a certain threshold is reached (determined by the "ta

Re: [t5.3.1 - AjaxFormLoop] How to prevent removing the last row ?

2012-10-19 Thread Lance Java
You could fire some javascript (via JavaScriptSupport) in the onAddRow and onRemoveRow event handlers. The javascript could simply hide the "remove" link for the last row so the user can't click on it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-3-1-AjaxFormLoop-Ho

Re: How to clear all data in a page when you move to a new one ? (Logout)

2012-10-19 Thread ael
When logout why not redirect it to login page? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-clear-all-data-in-a-page-when-you-move-to-a-new-one-Logout-tp5717050p5717051.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

How to clear all data in a page when you move to a new one ? (Logout)

2012-10-19 Thread dinesh707
Hi i have two pages. "Login" page and "Main" page. so if i do the following steps 1.) Login (Login page --> Main page) 2.) Do stuff in main page. This will re-arrange some lists 3.) Logout (Main page --> Login page) 4.) REPEAT 1.) when i do the step 4, it will show me the "Main page" from the plac