Re: Again with the tapestry, hibernate and switching the database

2012-09-25 Thread esper
Thanks for the reply Taha! It is indeed very useful. I still find it hard to believe that you can't load/rebuild the entire different hibernate session with Tapestry. No matter the time it takes. As I said, I only need those databases to work one at the time. Somehow I imagined it like this: - cr

Re: Advisin Tapestry Session

2012-09-25 Thread Matías Blasi
Thanks, done: https://issues.apache.org/jira/browse/TAP5-2002! Best regards, Matias. On Tue, Sep 25, 2012 at 11:17 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 25 Sep 2012 10:56:03 -0300, Matías Blasi > wrote: > > Thanks Thiago, >> > > De nada! :) > > > It is a sur

Re: Tapestry refcard at dzone

2012-09-25 Thread Muhammad Gelbana
Every page needs a username and a password ! On Tue, Sep 25, 2012 at 1:35 PM, Vladimir Bauer wrote: > Tapestry 5.0 refcard found at DZone< > https://gateway.slb.com/dana/home/index.cgihttp:/refcardz.dzone.com/assets/request/refcard/7691?oid=rchom7691&direct=true> > written by Howard M. Lewis Shi

Re: Tapestry-Security : Filter settings

2012-09-25 Thread indiancomet
Tx Alex and Kalle. This is working as expected now -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-Filter-settings-tp5716466p5716491.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Advisin Tapestry Session

2012-09-25 Thread Thiago H de Paula Figueiredo
On Tue, 25 Sep 2012 10:56:03 -0300, Matías Blasi wrote: Thanks Thiago, De nada! :) It is a surprise for me! Because, it is into the "services" package... and> I'd be pretty sure about injecting it... but I would be wrong In this case, you're wrong. :) Not everything that is in the

Re: Again with the tapestry, hibernate and switching the database

2012-09-25 Thread Taha Siddiqi
If your databases are having same schema then multi-tenancy is an option. http://docs.jboss.org/hibernate/orm/4.1/devguide/en-US/html/ch16.html If there are completely different databases then I don't think you can do that with tapestry-hibernate database. Tapestry-hibernate does not support mul

Re: Advisin Tapestry Session

2012-09-25 Thread Matías Blasi
Thanks Thiago, It is a surprise for me! Because, it is into the "services" package... and I'd be pretty sure about injecting it... but I would be wrong Anyway, something is confusing me, because my @Advise annotation is explicitly pointing to this interface: @Advise(serviceInterface=org.apac

Re: Advisin Tapestry Session

2012-09-25 Thread Lance Java
Whilst the Request is a (thread-local) tapestry service, the session is not. It seems that you are trying to advise the (non-existant) http-session service and tapestry is getting confused and trying to advise the hibernate-session which does exist. Since hibernate does not have an invalidate() a

Re: Advisin Tapestry Session

2012-09-25 Thread Thiago H de Paula Figueiredo
On Tue, 25 Sep 2012 10:03:04 -0300, Matías Blasi wrote: Thank both of you! I'll analyze these options. Anyway, I am curious about why my approach is not working, I insist, is it a bug? Session is not a service, so it cannot be advised. -- Thiago H. de Paula Figueiredo

Re: Advisin Tapestry Session

2012-09-25 Thread Matías Blasi
Thank both of you! I'll analyze these options. Anyway, I am curious about why my approach is not working, I insist, is it a bug? Best regards, Matias. On Sun, Sep 23, 2012 at 10:58 AM, Matías Blasi wrote: > Hi all, > > I'm trying to implement a mechanism to track each user session, at least >

Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread Charlouze
Hello, I had similar weird trouble once. I was using tapestry 5.3 and it did not found my setupRender() function in one of my page classes. I did not do anything specific to correct that bug except from restarting eclipse and adding the correct attributes (MarkupWriter and Event) to the function e

RE: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread djst
Hey! Thanks for the reply, but I'm not using tapestry5-jquery. I did make some progress though. I just tried my sample code in a fresh new project and it works. Pretty weird, but I'll try to figure out what is interfering in my current project. Thanks for the replies. /David From: ccureau [

Re: Again with the tapestry, hibernate and switching the database

2012-09-25 Thread esper
Can you please elaborate? I don't think I understand... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Again-with-the-tapestry-hibernate-and-switching-the-database-tp5716477p5716482.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Again with the tapestry, hibernate and switching the database

2012-09-25 Thread Taha Siddiqi
Hi If it is a new application, you can try new multi-tenancy in hibernate or JPA. On Sep 25, 2012, at 5:06 PM, esper wrote: > Hi, > > here's the problem that I'm facing. > I have a project with several databases (separate databases but the schemas > are the same!). > I want to decide which dat

Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread Chris Cureau
Hi! This may or may not be your issue, but f you are using tapestry5-jquery, you may have some issues with autocomplete unless you use t:mixins="jquery/autocomplete" or disable Prototype first. Just a thought... On Wed, Sep 12, 2012 at 9:48 AM, djst wrote: > Hi there. > > I'm trying to get the

Again with the tapestry, hibernate and switching the database

2012-09-25 Thread esper
Hi, here's the problem that I'm facing. I have a project with several databases (separate databases but the schemas are the same!). I want to decide which database to use when the user authenticates. That user could use *only one database at the time* but he could switch between them if he wants.

Tapestry refcard at dzone

2012-09-25 Thread Vladimir Bauer
Tapestry 5.0 refcard found at DZone written by Howard M. Lewis Ship, answered many my questions, when I first read it. Though it was written for Tapestry 5.0.18, it is still

Re: Tapestry 5.3.2 autocomplete mixin not working

2012-09-25 Thread djst
Hmm okay. No I'm not getting any java errors. It seems like tapestry is not recognizing my onProvideCompletionsFrom function as an event handler. Sorry about my late reply. I've been on vacation from my work... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-