Re: Form component generates invalid xhtml

2009-07-23 Thread Sergey Didenko
Yes, these are the first 2 lines of my Layout component: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; On Thu, Jul 23, 2009 at 12:30 AM, Ulrich Stärku...@spielviel.de

RE: @Secured annotation handling

2009-07-23 Thread Eldred Mullany
Has anyone got come code snippets for me on integrating T5.1.0.5 and Spring-Tapestry 2.1.0 Thanks -Original Message- From: Eldred Mullany Sent: Wednesday, July 22, 2009 1:55 PM To: 'Tapestry users' Subject: @Secured annotation handling Hi All I am spinning my head here trying to get

Re: Activation Context of the Login page

2009-07-23 Thread Sergey Didenko
Stephan, why do you invalidate the session inside onActivate()? onActivate is for activating pages. I guess onAction* handlers are better place for this code. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For

Re: Activation Context of the Login page

2009-07-23 Thread Stephan Windmüller
Sergey Didenko wrote: Stephan, why do you invalidate the session inside onActivate()? onActivate is for activating pages. I guess onAction* handlers are better place for this code. The session should be invalidated when the logout page is loaded. Then the page redirects to the login page. Is

Context Activate - Unit testing pages

2009-07-23 Thread Juan E. Maya
I am trying to pass an activation context to a page during unit testing but It seems the documentation on: http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html is out of date. According to the page the code to pass the context is as follow: PageTester tester = new

Re: Activation Context of the Login page

2009-07-23 Thread Sergey Didenko
It seems that you are reinventing tapestry action links. As I understand you can just declare t:actionLink id=logoutLinkLogout/t:actionLink on pages that have Logout functionality. For example by including UserPane component that contains this actionlink. Then you just call you logout logic inside

having big trouble with evalJSON() - am I really at war with it?

2009-07-23 Thread info
Based on the example from Hugo Palma (see http://markmail.org/message/4bdwo2yrx6tavdgh) I implemented a dependend checkbox. Event handling is fine, but I lost hours finding out while response.evalJSON() fails and I still have no clue... Im always getting this erreor; Error communication

Documentation of T5 URLs post-redirect-get

2009-07-23 Thread Blower, Andy
I was just trying to explain the way T5 pages in a package xyz can be called XyzResults and the URL will be xyz/results to one of my team, and I couldn't find the documentation for this on the Tapestry site. I was also struggling to find where the post-redirect-get paradigm is documented. Can

Component API?

2009-07-23 Thread Dennis Kühn
Hi everyone, I'm a Tapestry beginner and am getting started with T5 now. All I've seen so far looks really good and I found myself giggling while coding my first pages .. a good sign I guess ;) Before Tapestry I have evaluated JSF and found it quite neat how you can manipulate a component on

having big trouble with evalJSON() - am I really at war with it?

2009-07-23 Thread Maximilian Weißböck
Based on the example from Hugo Palma (see http://markmail.org/message/4bdwo2yrx6tavdgh) I implemented a dependend checkbox. Event handling is fine, but I lost hours finding out while response.evalJSON() fails and I still have no clue... Im always getting this erreor; Error communication

Re: having big trouble with evalJSON() - am I really at war with it?

2009-07-23 Thread Sven Homburg
dont use the evanJSON() function, its not needed anymore with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/7/23 Max Weißböck (info) m...@weissboeck.info: Based on the example from Hugo Palma (see http://markmail.org/message/4bdwo2yrx6tavdgh) I

Re: Documentation of T5 URLs post-redirect-get

2009-07-23 Thread Thiago H. de Paula Figueiredo
Em Thu, 23 Jul 2009 11:32:51 -0300, Blower, Andy andy.blo...@proquest.co.uk escreveu: I was just trying to explain the way T5 pages in a package xyz can be called XyzResults and the URL will be xyz/results to one of my team, and I couldn't find the documentation for this on the Tapestry

Re: Component API?

2009-07-23 Thread Juan E. Maya
Hi Dennis, u may want to check tap5 book: http://www.packtpub.com/tapestry-5/book however be careful because some things have changed since it was written. Another great source to learn is Tapestry Jumpstart : http://jumpstart.doublenegative.com.au/home.html It's not a step by step tutorial but

Session lost when cookies disabled?

2009-07-23 Thread Stefan
Hi, i've implemented authorization via dispatcher and page annotations as described in the Wiki. Everything works fine as long as cookies are enabled. If i disable them, the JSessionID will be appended to all url's as expected, but nevertheless the session could not be found / rebound to

Re: having big trouble with evalJSON() - am I really at war with it?

2009-07-23 Thread Max Weißböck (info)
Thanks so much, you really saved my day! Am 23.07.2009 um 17:18 schrieb Sven Homburg: dont use the evanJSON() function, its not needed anymore with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/7/23 Max Weißböck (info) m...@weissboeck.info:

Re: Component API?

2009-07-23 Thread Thiago H. de Paula Figueiredo
Em Thu, 23 Jul 2009 11:36:46 -0300, Dennis Kühn ku...@mediaworx.com escreveu: Hi everyone, Hi! I'm a Tapestry beginner and am getting started with T5 now. Welcome to Tapestry and the mailing list! :) All I've seen so far looks really good and I found myself giggling while coding my

RE: Documentation of T5 URLs post-redirect-get

2009-07-23 Thread Blower, Andy
I was just trying to explain the way T5 pages in a package xyz can be called XyzResults and the URL will be xyz/results to one of my team, and I couldn't find the documentation for this on the Tapestry site. Take a look at

AW: Component API?

2009-07-23 Thread Dennis Kühn
Juan and Thiago, Thanks a lot for your tipps - this is exactly what I was looking for! -Ursprüngliche Nachricht- Von: Juan E. Maya [mailto:maya.j...@gmail.com] Gesendet: Donnerstag, 23. Juli 2009 18:05 An: Tapestry users Betreff: Re: Component API? Hi Dennis, u may want to check tap5

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-23 Thread Franz Amador
I wondered that also, and I'm waiting on an answer. Does disabling JavaScript make the Ajax stuff invisible to Tapestry? If so, it'd be great to have a better error message. AJAX is all about using Javascript to update a part of a page without refreshing it. ;) Thus, no Javascript, no

Re: Component API?

2009-07-23 Thread Kai Weber
* Dennis Kühn ku...@mediaworx.com: Hallo Dennis, hier deiner alter Arbeitskollege Kai. Wenn du irgendwie die Chance hast Tapestry nicht zu benutzen: benutz es nicht! Es ist ein graus. Es will alles machen und macht alles anders als alle anderen. Besser wird es dadurch nicht. Details gerne mal

Re: Return type org.apache.tapestry5.json.JSONObject can not be handled

2009-07-23 Thread Franz Amador
Okay, I've heard, indirectly, from the customer. The laptop does have JavaScript enabled. However, it does not have networking fully configured and is never used on the Internet. They say This laptop has no IP address. (They are very security-conscious; perhaps this is to to make unauthorized

Re: Component API?

2009-07-23 Thread Igor Drobiazko
Dear Kai, if you write such a mail to the tapestry mail list, you should write in english and provide more technical arguments. Yes, Tapestry takes a different approach to create web apps. But this approach is what makes Tapestry so beautiful. @Dennis: Give Tapestry a try and you will see if it

Re: Component API?

2009-07-23 Thread Juan E. Maya
Totally agree with Igor. On Thu, Jul 23, 2009 at 7:52 PM, Igor Drobiazkoigor.drobia...@gmail.com wrote: Dear Kai, if you write such a mail to the tapestry mail list, you should write in english and provide more technical arguments. Yes, Tapestry takes a different approach to create web apps.

search hints for Tapestry 5

2009-07-23 Thread Sergey Didenko
Let's share how we search how to do certain things in Tapestry 5. That is my sequence: - search Guide. Google site:tapestry.apache.org/tapestry5.1/guide keywords - search Nabble, Google intitle:tapestry intitle:user site:nabble.com keywords - search Wiki. Google site:wiki.apache.org/tapestry/

Re: Component API?

2009-07-23 Thread Sergey Didenko
Dennis, I suggest you read Tapestry User Guide section in parallel with Jumpstart. P.S. I love Google email translating feature! :) Hello Dennis, here your old work colleague Kai. If you somehow Tapestry have the chance not to use: it is not used! It is a Graus. It wants to do everything and

Re: search hints for Tapestry 5

2009-07-23 Thread Juan E. Maya
i will add jumpstart and checking the sources in the svn repository On Thu, Jul 23, 2009 at 8:41 PM, Sergey Didenkosergey.dide...@gmail.com wrote: Let's share how we search how to do certain things in Tapestry 5. That is my sequence: - search Guide. Google

Re: @Secured annotation handling

2009-07-23 Thread Michael Gerzabek
Don't get the point here. You secured a page? And if you want to access it, you get the AccessDeniedEx? This seems to be a valid case. The [WARN] intercept.AbstractSecurityInterceptor Could not validate configuration attributes as the ObjectDefinitionSource did not return a

Re: search hints for Tapestry 5

2009-07-23 Thread Sergey Didenko
What sources and how do you check them against your keywords, Juan? Do you mean string search over the latest Tapestry core sources? On Thu, Jul 23, 2009 at 10:48 PM, Juan E. Mayamaya.j...@gmail.com wrote: i will add jumpstart and checking the sources in the svn repository

Re: search hints for Tapestry 5

2009-07-23 Thread Juan E. Maya
Well, it's a bit more manual. :) For example: If you want to create a new validator then there is no better way to do it that checking the way the core validators are done. That's what i meant. On Thu, Jul 23, 2009 at 10:14 PM, Sergey Didenkosergey.dide...@gmail.com wrote: What sources and how

Re: @Secured annotation handling

2009-07-23 Thread Norman Franke
I've got it working, but note that many event actions are called on the page before it figures out that it needs to secure the page. I'd run into errors before the secure tag kicked in and redirected to my login page. Odd, but workable. Norman Franke Answering Service for Directors, Inc.

SetupRender - why is it called from PageResponseRendererImpl.renderPageResponse?

2009-07-23 Thread learningtapestry
I apologize for my ignorance, but I am kind of confused about how the render phases work. Simple example: class Base{ @SetupRender protected boolean setupRender(MarkupWriter writer) { //do something } } class Derived extends Base{ @BeginRender protected void

Re: search hints for Tapestry 5

2009-07-23 Thread Thiago H. de Paula Figueiredo
Em Thu, 23 Jul 2009 17:20:26 -0300, Juan E. Maya maya.j...@gmail.com escreveu: Well, it's a bit more manual. :) For example: If you want to create a new validator then there is no better way to do it that checking the way the core validators are done. That's what i meant. There is: figure

Re: @Secured annotation handling

2009-07-23 Thread Thiago H. de Paula Figueiredo
Em Thu, 23 Jul 2009 17:53:59 -0300, Norman Franke nor...@myasd.com escreveu: I've got it working, but note that many event actions are called on the page before it figures out that it needs to secure the page. I'd run into errors before the secure tag kicked in and redirected to my login