Component taken from pool in T5.3?!

2012-09-15 Thread tompeter
Hi everyone, I have a component in a Tapestry page that is displayed via Ajax renderer returning a block. Displaying the conponent the second time should show different data then the first time. I am logging that in the java-class which logs correct data. However, when the component is displayed,

Re: Component taken from pool in T5.3?!

2012-09-15 Thread tompeter
Hi and thanks for your help. I chose another zone as a target and now it works fine. Don't really know what the problem was because I haven't done anything different with those two zones... Strange. Thanks and best, Tom -- View this message in context:

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-23 Thread tompeter
Thanks for your answers everyone! I have actually tried Howard's advice in both versions: Adjusting the Strategy Symbol to my new mySession strategy and also by directly setting @Persist(mySession). In both cases, I got this error: org.apache.tapestry5.ioc.internal.util.TapestryException: Error

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-23 Thread tompeter
Hi everyone, I have it working now and share all steps needed: 1. Create your own strategy (e.g. MyStrategy) extending SessionApplicationStatePersistenceStrategy and implementing ApplicationStatePersistenceStrategy 2. Bind the strategy in the AppModule's bind method: binder.bind(

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-22 Thread tompeter
Hi, I am also trying to use an alternate storage strategy but Tapestry doesn't load mine. Could you give me a hint on what I did wrong? 1. I created my own Strategy in TPGStatePersistencyStrategy.class which implements ApplicationStatePersistenceStrategy and extends

Re: Best practise to extend tapestry 5 so http sessions are stored in db

2012-02-22 Thread tompeter
at 9:45 AM, Thiago H. de Paula Figueiredo [hidden email] http://user/SendEmail.jtp?type=nodenode=5505844i=0 wrote: On Wed, 22 Feb 2012 14:07:48 -0200, tompeter [hidden email]http://user/SendEmail.jtp?type=nodenode=5505844i=1 wrote: Hi, Hi! I am also trying to use

Unit-Test and HibernateSessionSource

2012-02-08 Thread tompeter
Hi everyone, I am currently trying to test a Tapestry page. The page Instantiation already fails because of hibernate errors. I have remapped configuration for the test, so that no hibernate session needs to be injected. still, i have the following error output: Failed tests:

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread tompeter
Hi Thiago, thanks a lot for your reply! I don't understand how this could happen, as packaging the application with maven (with outcommented test) to a war file creates a working application. Could you give me a hint where I might have messed it up? Thanks a lot! Tom -- View this message in

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread tompeter
Hi Thiago, thanks for the tips! I looked at the dependency tree with m2e and didn't find anything obvious. Could you take a look at the Pom to check if you see something? Thanks you so much! 4.0.0 com.myapp myapp_webapp 1.0-SNAPSHOT war tomplaygo_webapp Tapestry 5

Re: Unit-Test and HibernateSessionSource

2012-02-08 Thread tompeter
Hi Thiago, thanks for the tips! I looked at the dependency tree with m2e and didn't find anything obvious. Could you take a look at the Pom to check if you see something? Thanks you so much! project xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;

Tapestry SEO URL optimization

2011-08-19 Thread tompeter
Hello, I am currently trying to optimize my Tapestry Website for SEO and have encountered some problems that I hope you can give me guidance with. I have already searched the forum but not found answers working for me. Thank you very much in advance! 1. I want to redirect all http://mysite.com to

Tapestry5/Hibernate Persistence

2011-07-18 Thread tompeter
Hi, I hope you can help me answer a Tapestry5/Hibernate question. In an onSuccessFromForm Method I want to update a database entity only if a specific value of that entity is null. This is how I do it: Step 1: I read the entity with something like: myObject = (Object)criteria.list().get(0); Step

Re: Tapestry5/Hibernate Persistence

2011-07-18 Thread tompeter
Great, thank you! I am using the @CommitAfter Annotation now. Just to make sure: It is not possible that a second user reads the entity before the HibernateSessionManager has committed the changes of User 1? I ask because I use injected org.hibernate.Session for reading the values. Thanks, Tom

Re: Tapestry5/Hibernate Persistence

2011-07-18 Thread tompeter
Thanks Thiago, that's good to know! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry5-Hibernate-Persistence-tp4600362p4601140.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Modalbox Integration Example

2011-05-04 Thread tompeter
Hi Taha, thanks for your help and code! I found out that it works nice when I am using an inline Modal Box. I did not get it to work with the Modal Box displaying a page though. I implemented it with Inline Modal Box displaying a component now... Thanks and all best, Tom -- View this message in

Re: Modalbox Integration Example

2011-05-03 Thread tompeter
Hi Taha, first off, thanks for your code! I have a question concerning the zone support. I have implemented the necessary javascript parts but get an error when using zones: Return type org.apache.tapestry5.internal.structure.BlockImpl can not be handled Can you tell me what I am missing?

Re: Modalbox Integration Example

2011-05-03 Thread tompeter
Thanks for the reply Thiago! The problem is that I am trying to make a zone update via an action link in the page of the modalbox component. The request should be an Ajax request but does not behave as such. I want to update a feedback text inside the modal box without loading a new page. I am