ApplicationState and subclasses (T5) ?
Hello list, We are making use of @ApplicationState to inject a session object in our various components. As I understand it, the first time Tapestry finds @ApplicationState it creates an instance of the class we intend to use as a session. My problem is therefore the following: In order to reuse code among our various projects, we created a library, lets call it "xyz-foundation" which has some components and business logic shared among all our projects. In this library, we of course defined a class "Session" which is used as the state of the connected user. This Session class contains among other things the current user object, some user rights business logic and many other things shared by all our projects. Now, in the projects that import that library, I would like to be able to say "my ApplicationState class is a subclass of the Session class defined in the library". How do I do that. Some years ago, I did that with WebObjects. We had "SystemFoundation" which has a "Session" class. Then "UserFoundation" which had a UserSession inherit from Session, etc... But with WebObjects it was possible to indicate which class is to be used as a session class. How can I achieve this in Tapestry? I would need to be able to "inject" the class name to be used in the @ApplicationState instruction. Then, for each different project I could configure my foundations to use the appropriate session class. Thanks for any hint. Alex -- Alexander Lamb Founding Associate RODANOTECH Sàrl 4 ch. de la Tour de Champel 1206 Geneva Switzerland Tel: 022 347 77 37 Fax: 022 347 77 38 http://www.rodanotech.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [t5] Firing a page activate event with a different event name?
On Nov 9, 2007 2:02 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > However, and perhaps this is your point, we could extend the concept > of marker annotations to pages and have a mechanism to inject based on > the intersection of type (the interface) and marker. But again, it Precisely > does require that all page classes be loaded and transformed at app > startup (or first request). That's ok with 10 or 20 or maybe 50 pages, > but it starts to impact the development cycle once you have 100 or > 1000 pages. Well I'm out here since I've never built a site with more the 72 page of which more then the half where for Intranet (back office) access. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T4 Nightly Build
Dear all, Is there any maven repo for T4 snapshot/nightly build? Since I always need the latest build for T4. Thanks in advance. -- What you want today, may not exist tommorrow Blog: http://joshuajava.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] Listeners called twice
Hi all, I've just run into a problem with one of our apps that has likely been there for some time. It seems all of our form listeners are called twice. I've confirmed this behaviour with 4.1.2, 4.1.3, and 4.1.4-SNAPSHOT. Does anyone have any idea what may be causing this and, more importantly, how to suppress it? I do not recall this being the behavior with 4.0.2. Thinking it might have to do with client-side validation, I've removed the parameter and disabled JavaScript . . . Same problem. Thanks, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]