RE: Two Menu Components

2009-06-16 Thread Ville Virtanen
Hi, this is wild guess, but take a look at the environment? You can push, pop and peek objects that are in the environment, shared by all enclosed components. http://tapestry.apache.org/tapestry5/guide/env.html http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/Environm

RE: Two Menu Components

2009-06-16 Thread Eldred Mullany
Hi Guys No problem, thanks Otho and donf yang for helping a newbie at Tapestry. Am still trying get my head around how to pass data between components (not same as pages) ie how to pass data from one component to another. Let me be more precise: If I use the @Component annotation then my second

Re: Netbeans 6.7 tapestry 5 plugin support

2009-06-16 Thread Ville Virtanen
Thanks! This is something that looks very nice on paper, so I'll test it as soon as possible. - Ville iberck wrote: > > Hi I'm developing a netbeans plugin for tapestry 5 tested on windows xp > The supported features are: > > Initial features: > * Support on Netbeans 6.5, 6.51, 6.7 Beta

Re: [Tapestry Central] Why chose Tapestry?

2009-06-16 Thread Ville Virtanen
Don't know if I double posted but.. Indeed, if you aim to code shit, please don't use T5 :) The best case scenario would be that the compiler would detect all errors. The next best case would be that the app would point out what is wrong when it starts. The worst case is to have to click throug

Re: [Tapestry Central] Why chose Tapestry?

2009-06-16 Thread Olle Hallin
Well put Howard! I've bookmarked this post in the case I meet a PHB... Olle 2009/6/17 Howard > I recently had an e-mail exchange with a Tapestry user; after > congratulating me on creating Tapestry, he went on with the following > observation on his organization: The company I work at unfortu

Re: SPRING_SECURITY_CONTEXT still in session even after server restart

2009-06-16 Thread Kalle Korhonen
By default, Tomcat tries to store sessions on disk. Other than the SPRING_SECURITY_CONTEXT object you didn't have serializable objects in your application. On Windows, saveOnRestart is turned off (http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html) or security prevents writing the data to

SPRING_SECURITY_CONTEXT still in session even after server restart

2009-06-16 Thread Jason Lotz
Environment - Tomcat 5.5, Ubuntu 9.04, Tapestry 5.1, Spring Security Framework 2.0.4 Note that this does not seem to happen under Windows deployments. Everything in the application works fine under normal circumstances. When a user successfully logs in, the session has a few objects added to it,

Re: best book for T5

2009-06-16 Thread Howard Lewis Ship
Of course my hat goes in the ring for the English translation (but would my introduction then have to be translated to German?). On Tue, Jun 16, 2009 at 1:06 PM, spaway wrote: > +1 for english version! > > 2009/6/16 Juan E. Maya > > > +1 i am also interested in the german version :) > > > > On

Re: Event bubbling question

2009-06-16 Thread Piero Sartini
> 2) Normally, what I do in these situations, is to encapsulate the > events with a custom event. That hides the details of component from > users of the component, so even if, eg, form component events change, > or if I change the guts of the component to operate differently, I can > still keep t

[Tapestry Central] Why chose Tapestry?

2009-06-16 Thread Howard
I recently had an e-mail exchange with a Tapestry user; after congratulating me on creating Tapestry, he went on with the following observation on his organization: The company I work at unfortunately chose JSF for their big app. The reason was that Tapestry was "brittle" in the sense that, if one

Re: partial markup renderer replaces double quotes with single quotes and encodes any enclosed single quotes...

2009-06-16 Thread Howard Lewis Ship
This is part of the normal markup writer behavior for 5.1; otherwise every double quote in the markup to be escaped. JSON requires that strings always be in double quotes but HTML/XML does not (you can use single quotes interchangably). Use RenderSupport to add a $('id').observe("click", someFunct

partial markup renderer replaces double quotes with single quotes and encodes any enclosed single quotes...

2009-06-16 Thread Tom Zurkan
i can't find who the culprit is yet. but, by the time i am out of AjaxPartialResponseRendererImpl, the content has been changed so that double quotes are replaced. this seems to cause some problem with enclosed javascript such as onclick="somefunction('var');" becomes onclick='somefunction('

T5 tapestry spring

2009-06-16 Thread haipeng du
I try to inject spring beans to page class with @Inject @Id("baseDAO") private BaseDAO baseDAO It still gave me that "Spring context contains 14 beans assignable to type xx.BaseDAO what should I do for this. -- Haipeng Du Salt Lake City

Re: [T5.1] Locale - possible to revert to cookies?

2009-06-16 Thread immutability
The new URL-based language switching is also causing issues with the way Tapestry-Acegi handles the redirect to the login page once a session expires. If a user switches to another language, let's say, Spanish, they'll end up on a page with "es" locale code embedded in the URL, e.g. /es/some/page.

Re: T5.1: Palette causing a NPE upon form submit

2009-06-16 Thread immutability
Found the cause of this issue - after a painful search... :) It was my mistake. For anyone running into the same issue with NullPointerException and Palette component, if you want to use the Palette component with objects (e.g. list of domain objects returned from a database) remember to implemen

Re: best book for T5

2009-06-16 Thread spaway
+1 for english version! 2009/6/16 Juan E. Maya > +1 i am also interested in the german version :) > > On Tue, Jun 16, 2009 at 6:18 PM, ice wrote: > > > > +1 when is the english version going to be released? :) > > > > > > GMAIL1 wrote: > >> > > 2009/6/15 Thiago H. de Paula Figueiredo >

Re: best book for T5

2009-06-16 Thread Juan E. Maya
+1 i am also interested in the german version :) On Tue, Jun 16, 2009 at 6:18 PM, ice wrote: > > +1 when is the english version going to be released? :) > > > GMAIL1 wrote: >> > 2009/6/15 Thiago H. de Paula Figueiredo > > >> +1. The more books, the better. :) >> >> --

Re: best book for T5

2009-06-16 Thread ice
+1 when is the english version going to be released? :) GMAIL1 wrote: > 2009/6/15 Thiago H. de Paula Figueiredo > +1. The more books, the better. :) > > -- > Thiago > > > -- View this message in context: http://n2.nabble.com/best-book-for-T5-tp306579

Re: [REQUEST] Live T5 web sites, quotes, marketting

2009-06-16 Thread Petro
We have build a new one: http://www.polarisworld.com http://www.polarisworld.com The site was originally build using a servlet and an own framework. The customer want's a more simply and maintainable site so I give them the possibility of using T5. The final result was fantastic!! customer very

Re: T5.1: Request forwarding breaks page/actionlinks

2009-06-16 Thread immutability
Thank you for your reply Peter. I ran across the JIRA you posted, but I feel it was a bit different from whay I'm seeking - the other guy was getting exceptions upon doing the forward. I agree there's not much use to do the forwarding when Tapestry already has excellent mechanism to perform redire

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Geoffrey Wiseman
On Tue, Jun 16, 2009 at 4:08 AM, Ivano Luberti wrote: > Maybe I have lost something, but is there any other framework that > provide this kind of abstraction ? > And if yes to what degree ? > I mean: is there a Java Web Framerok that allow to chose (for example) > if client validation must be don

Re: T5.1: Request forwarding breaks page/actionlinks

2009-06-16 Thread P . Stavrinides
Server side forwarding does not work in Tapestry, and it seems there are no plans to implement it: there was a jira once for it (https://issues.apache.org/jira/browse/TAP5-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel) but it was closed. regards, Peter - Original Me

Re: T5.1: Request forwarding breaks page/actionlinks

2009-06-16 Thread immutability
The problem I have described in my original message is not related to Acegi/Spring, but it appears to be a problem in the way Tapestry generates URLs for ActionLinks and PageLinks after an server-side request forward is performed. Unlike a client-side redirect, in this case the URL that the browse

Re: how to specify to say more than one java file to share same html

2009-06-16 Thread Andreas Andreou
Totally forgot that - but I do remember someone wanting to remove this ... hack :) Good to see it's still useful ! On Tue, Jun 16, 2009 at 3:27 PM, kk4Nabble wrote: > > > Hi, > > Thank  you all for the reply. > I specified > > in .application file. > And in Calendar.page > >         >   > > And

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Onno Scheffers
> > I think CSS selectors support in JS framework is a safe assumption > nowadays but I remember a post here talking about sizzlejs.com which > could be of interest for you. Hi Massimo. I'm familiar with Sizzle. It's created by John Resig, the author of jQuery. It will be (or maybe already is?)

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Andreas Andreou
Yep, in the T4 case, there's no need to expose an advances CSS selector (wiring up widgets only uses ids + clients that know what js library they use are free to use that library's features) Also, the T4 js abstraction is just a skeleton, i.e. all js libraries have to fully rewrite that... this su

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Massimo Lusetti
On Tue, Jun 16, 2009 at 2:22 PM, Massimo Lusetti wrote: > I think CSS selectors support in JS framework is a safe assumption > nowadays but I remember a post here talking about sizzlejs.com which > could be of interest for you. > > From sizzlejs.com home: > "A pure-JavaScript CSS selector engine >

Re: how to specify to say more than one java file to share same html

2009-06-16 Thread kk4Nabble
Hi, Thank you all for the reply. I specified in .application file. And in Calendar.page And it works fine. Andreas Andreou-4 wrote: > > I dont remember this being possible... > > So, i guess the alternatives are to either: > - copy Calendar.html to CalendarHome.html, or > -

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Massimo Lusetti
On Tue, Jun 16, 2009 at 2:03 PM, Onno Scheffers wrote: > That's one of the things I'm still thinking about: T5 uses advanced CSS > selectors in many places. Both jQuery and Prototype offer that feature, but > it'll be a lot of work to implement if the target JavaScript framework > doesn't offer i

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Massimo Lusetti
On Tue, Jun 16, 2009 at 12:28 PM, Onno Scheffers wrote: > Thanks Massimo. Still a long long way to go though. I'm sure about that but the way you highlight the raw edge make me feel confident on your javascript-fu :) -- Massimo http://meridio.blogspot.com --

Re: how to specify to say more than one java file to share same html

2009-06-16 Thread Onno Scheffers
It's been a while since I last used Tapestry 4, but maybe you can create a custom TemplateLocator that loads the proper template for you? regards, Onno On Tue, Jun 16, 2009 at 8:55 AM, kk4Nabble wrote: > > Hi all, > My problem is I have CalendarHome.java which extends Calendar.java. > But i w

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Thiago H. de Paula Figueiredo
On Tue, Jun 16, 2009 at 9:03 AM, Onno Scheffers wrote: > The easy way (for me) is to expect the framework-specific implementation to > support CSS selectors, the hard way would be to rewrite all areas using > advanced selectors in the Tapestry.js file to use more simple selectors. I don't see any

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Onno Scheffers
Thanks for this. Looking at the core.js, it looks like Tapestry 4 uses much simpler selectors, mostly selecting elements by their id. That's one of the things I'm still thinking about: T5 uses advanced CSS selectors in many places. Both jQuery and Prototype offer that feature, but it'll be a lot

Re: how to specify to say more than one java file to share same html

2009-06-16 Thread Andreas Andreou
I dont remember this being possible... So, i guess the alternatives are to either: - copy Calendar.html to CalendarHome.html, or - have your build process do that for you On Tue, Jun 16, 2009 at 9:55 AM, kk4Nabble wrote: > > Hi all, > My problem is I have CalendarHome.java which extends Calendar.

is functional dependency injection the future?

2009-06-16 Thread hari ks
microsoft F#, clojure etc.. how is tapestry ioc integrated to these functional dependency injections? -Hari Sujathan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Andreas Andreou
For reference, here's the js abstraction that T4 ended up with https://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.6/skeleton/core.js The dojo0.4.3 (& default) implementation is at: https://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-fram

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Pedro Januário
Finally js extensions... I believe this should be usefull add-on to tapestry, jquery is a very mature framework with a lots of usefull plugins. Implementing a abstraction layer should be very complex and problably very very hard to achive, but could be a nice road to tapestry, but i believe should

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Onno Scheffers
> > I actually think you're doing really a nice work and that's great to read! Thanks Massimo. Still a long long way to go though. regards, Onno

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Massimo Lusetti
On Tue, Jun 16, 2009 at 10:59 AM, Onno Scheffers wrote: > But I've now seen enough of the Tapestry code to know how much work that'd > be. I actually think you're doing really a nice work and that's great to read! Best regards -- Massimo http://meridio.blogspot.com

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Onno Scheffers
> Maybe I have lost something, but is there any other framework that > provide this kind of abstraction ? You will never get away from the fact that Tapestry has some specific needs that need to be custom programmed. I think it would be impossible to abstract everything the existing JavaScript fra

Re: [T5] BeanEditForm and Grid: how to add to (decorate) the default renderer of a field?

2009-06-16 Thread Michael Capper
Done it like this (in a grid, but that's basically the same): implemented our own GridCell (copy-pasted all of AbstractPropertyEditor and original GridCell for visibility reasons), but changed these two methods: Object beginRender(MarkupWriter writer) { Object bef

Re: Switch from Prototype to jQuery?

2009-06-16 Thread Ivano Luberti
Maybe I have lost something, but is there any other framework that provide this kind of abstraction ? And if yes to what degree ? I mean: is there a Java Web Framerok that allow to chose (for example) if client validation must be done using jquery function or prototype or whatever ? p.stavrini...@

Re: Switch from Prototype to jQuery?

2009-06-16 Thread P . Stavrinides
To me this is a worthwhile exercise for two reasons: 1. Abstraction from prototype (or any 3rd party library for that matter) is a good thing, it will make Tapestry more modular and agile going forward 2. Using native JavaScript for core Tapestry is sensible even if its more work. Libraries wil