Re: @CommitAfter rollback propagation

2009-05-25 Thread Igor Drobiazko
@CommitAfter commits the transaction of the request. The transaction is created when the session is attached to the request. When functionB() is called the transaction will be committed and a new one will be created. So functionA() will commit the later transaction. On Tue, May 26, 2009 at 5:46 AM

@CommitAfter rollback propagation

2009-05-25 Thread sodium
A quick question about tapestry-hibernate rollback propagation. As far as i know, any function annotated with @CommitAfter will create a new transaction similar to EJB required_new. But how would the nested functions behave? For eg. @CommitAfter public void functionA() { functionB(); } @CommitA

Re: Missing maven dependency for tapx-datefield?

2009-05-25 Thread Joost Schouten (mailing lists)
as per: http://tapestry.formos.com/nightly/tapx/tapx-datefield/ tapx-datefield is built for use with Tapestry 5.1 and higher. cheers, Joost On Tue, May 26, 2009 at 11:42 AM, Eric Rogers wrote: > Hi All, > > > I am having a problem trying to add the tapx-datefield artifact a Tapestry > 5.0.18 pr

Re: Browser feature to better support web frameworks

2009-05-25 Thread Kalle Korhonen
Tapestry-conversations supports multiple simultaneous conversations with the same page on different tabs: http://docs.codehaus.org/display/TRAILS/Conversations+in+Trails. Kalle On Fri, May 22, 2009 at 5:57 AM, Sebastian Hennebrueder wrote: > Hello, > > an idea came across my brain and I would l

Missing maven dependency for tapx-datefield?

2009-05-25 Thread Eric Rogers
Hi All, I am having a problem trying to add the tapx-datefield artifact a Tapestry 5.0.18 project. More specifically, I have added the following to my pom.xml: com.formos.tapestry tapx-datefield 1.0.0-SNAPSHOT Maven fails while trying to resolve a tapestry360-project dependency, for wh

missing key fail level

2009-05-25 Thread Joost Schouten (mailing lists)
Hi, Is there a way to make tapestry throw an exception when it encounters a missing key? I would prefer this over the silent printing of the "missing key" message on the page. If an exception is thrown my unit tests will pick up the incorrect rendering of the component/page in stead of me having t

tapestry xpath and t: namespace

2009-05-25 Thread Joost Schouten (mailing lists)
First off, I love the new xpath project. Unit testing components and pages is a lot easier because of it. One thing that would make life even better is if I have a way to tell tapestry to print out all t: namespace params in the output xhtml (for testing purposes). Targeting specific components on

Re: [5.1.0.5] Ars-Machina - No service Implements the interface org.hibernate.SessionFactory

2009-05-25 Thread Thiago H. de Paula Figueiredo
Em Mon, 25 May 2009 12:43:17 -0300, Antonio Fernández escreveu: Hi again, Hi! * org.hibernate.HibernateException: No CurrentSessionContext configured! The suggested way is to override getSession() to return something other than sessionFactory.getSession() or set a Cu

Re: [5.1.0.5] Ars-Machina - No service Implements the interface org.hibernate.SessionFactory

2009-05-25 Thread Antonio Fernández
Hi again, I tried adding the following builder method : public static SessionFactory buildSessionFactory(final HibernateSessionManager hibernateSessionManager) { return hibernateSessionManager.getSession().getSessionFactory(); } And T5 returns ... throwables * org.h

[Tapestry Central] Tapestry & Clojure @ Portland Code Camp

2009-05-25 Thread Howard
Portland Code Camp is a local (in Portland) free conference on development tools and languages ... and it's coming up fast (this Saturday). I'll most likely be talking about Tapestry and Clojure ... I actually won't know until they make their last minute session selection tomorrow (it's based on ho

tapestry-spring-security dynamic failure url

2009-05-25 Thread Borut Bolčina
Hi, using tapestry-spring-security 2.0.1 one can contribute public static void contributeApplicationDefaults(MappedConfiguration configuration) { ... configuration.add("spring-security.failure.url", "/login/failed"); ... } and therefore override the factory default set in Securit

Re: [5.1.0.5] Ars-Machina - No service Implements the interface org.hibernate.SessionFactory

2009-05-25 Thread Thiago H. de Paula Figueiredo
On Mon, May 25, 2009 at 6:58 AM, GMAIL1 wrote: > Hi all , Hi! > I´m trying to use te modules Ars-Machina generic-dao & > generic-dao-hibernate, but i´m getting the following message : Nice to see that someone besides me is using the Ars Machina Project packages. :) > No service implements the

[5.1.0.5] Ars-Machina - No service Implements the interface org.hibernate.SessionFactory

2009-05-25 Thread GMAIL1
Hi all , I´m trying to use te modules Ars-Machina generic-dao & generic-dao-hibernate, but i´m getting the following message : * No service implements the interface org.hibernate.SessionFactory* I attach my current pom.xml, the following are the unique dependencies from the ars-machina proj

Re: Best practices to trigger serverside event methods from javascript?

2009-05-25 Thread Joost Schouten (mailing lists)
I believe the encoding is fairly simple and shouldn't be too hard to do on the client. if there is a wider need for it, you could consider proposing a patch to the tapestry.js Good luck, Joost On Mon, May 25, 2009 at 7:04 PM, Markus Joschko wrote: > OK I see. I could potentially encode all possi

Re: Versioning assets

2009-05-25 Thread Christian Senk
Sorry Borut, doesn't pay attention at the tapestry version ^.^ Mayby this can help you, look at the end of this page: http://tapestry.apache.org/tapestry5/cookbook/lib.html there is a short chapter about versioning assets :) I think this way already exists in 5.0.18 Borut Bolčina schrieb: Than

Re: Versioning assets

2009-05-25 Thread Borut Bolčina
Thanks Christian but I am using T 5.0.18 and SymbolConstants.APPLICATION_VERSION is not available. Upgrade to 5.1 is not an option as we are using tapestry-spring-security which is not yet compatible with 5.1 So, how to do it in 5.0.18? -Borut 2009/5/25 Christian Senk > You put this line into

Re: Versioning assets

2009-05-25 Thread Christian Senk
You put this line into the contribution method for the Application Defaults in your Tapestry-module. For example: public static void contributeApplicationDefaults( MappedConfiguration configuration) { configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,de"); configu

Re: Versioning assets

2009-05-25 Thread Borut Bolčina
Hello, 2009/5/25 Christian Senk > Hi, > > you may increment your build number by one, and use the Application version > symbol. > > configuration.add(SymbolConstants.APPLICATION_VERSION, "0.0.7"); Where do I put this line? > > the version is part of the path to the assets. So, if I now ha

Re: Versioning assets

2009-05-25 Thread Christian Senk
Hi, you may increment your build number by one, and use the Application version symbol. configuration.add(SymbolConstants.APPLICATION_VERSION, "0.0.7"); the version is part of the path to the assets. Borut Bolčina schrieb: Hello, we have a T5.0.18 in production. Now I want to "deliver" cha

[Tapestry Central] Tapestry Road Show: Ann Arbor, Michigan

2009-05-25 Thread Howard
This week, I'll be in Ann Arbor, MI to do a bit (aka, four grueling days) of on-site Tapestry training. If you're in Ann Arbor and would like to get together for a drink and a chat about Tapestry, Open Source, or anything along those lines, please drop a line! -- Posted By Howard to Tapestry Centr

Versioning assets

2009-05-25 Thread Borut Bolčina
Hello, we have a T5.0.18 in production. Now I want to "deliver" changed CSS to all existing users, so there must be a way of versioning CSS and other assests. There is nothing at http://tapestry.apache.org/tapestry5/guide/assets.htmlabout versioning, although I think this functionality exists. Ca

Re: Best practices to trigger serverside event methods from javascript?

2009-05-25 Thread Markus Joschko
OK I see. I could potentially encode all possible parameters for the draggables and droppables already on the serverside and then append them in javascript to the base URL. That would work in my case. However if the parameters are also dynamic and change in the browser, I'm out of luck with this ap