Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-21 Thread Massimo Lusetti
On Nov 22, 2007 8:37 AM, lasitha <[EMAIL PROTECTED]> wrote: > A follow up for anyone keeping score: i've just verified that > hibernate does _not_ automatically flush a Session when it is closed. > If anyone is interested i can pass along my learning test. That's clearly written in the API. Che

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-21 Thread lasitha
On Nov 20, 2007 9:32 AM, lasitha <[EMAIL PROTECTED]> wrote: > ... In previous versions of hibernate, just > closing a session automatically triggered a flush. A follow up for anyone keeping score: i've just verified that hibernate does _not_ automatically flush a Session when it is closed. If any

[T5] Request.isXHR() issue

2007-11-21 Thread Adam Ayres
There appears to be a small bug with the Request.isXHR() method, the value of the "X-Requested-With" header that Prototype sets by default for all of its AJAX calls is: "XMLHttpRequest" Tapestry checks against the value: "XmlHttpRequest" The RequestImplTest has the header value hard

Re: [T5] Translator VS ValueEncoder

2007-11-21 Thread Howard Lewis Ship
It's a very good point; Translator really looks like a super-set of ValueEncoder. I don't see a reason why we couldn't eliminate ValueEncoder and switch the code that uses it to Translator. Please add an issue to JIRA about this. On Nov 19, 2007 3:07 PM, Kevin Menard <[EMAIL PROTECTED]> wrote: >

Re: [T5] Cannot persist field exception

2007-11-21 Thread jeffrey ai
I think you are missing "t:value" in your template. It should be : Jeffrey Ai Jean-Philippe Steinmetz-2 wrote: > > Hi All, > > I'm getting the following error > > Error persisting field Users/Create:username: > java.lang.NullPointerException > > In my page class I have... > > @Persist

RE: [T5] Cannot persist field exception

2007-11-21 Thread Jean-Philippe Steinmetz
[INFO] TapestryFilter Startup time: 187 ms to build IoC Registry, 609 ms overall. java.lang.NullPointerException [ERROR] Create Listener ComponentPageElement[Users/Create] failed during page detach: Error persisting field Users/Create:username: java.lang.NullPointerException org.apache.tapestry.ioc

Re: [T5] Cannot persist field exception

2007-11-21 Thread Davor Hrg
full stack trace ? On Nov 21, 2007 10:17 PM, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > Is there anyone that can help with this problem? Thanks > > > -Original Message- > > From: Jean-Philippe Steinmetz [mailto:[EMAIL PROTECTED] > > Sent: Friday, November 16, 2007 1:36 PM > > T

RE: [T5] Cannot persist field exception

2007-11-21 Thread Jean-Philippe Steinmetz
Is there anyone that can help with this problem? Thanks > -Original Message- > From: Jean-Philippe Steinmetz [mailto:[EMAIL PROTECTED] > Sent: Friday, November 16, 2007 1:36 PM > To: 'Tapestry users' > Subject: [T5] Cannot persist field exception > > Hi All, > > I'm getting the follow

RE: T5: Tapestry-Hibernate, do we have to save()?

2007-11-21 Thread Jonathan Barker
Angelo, It's a solid base surrounded by shifting sands. The situation now with T5 is a bit like that with T4 a year an a half ago. If you don't mind a long-winded explanation, I'll describe my past experience. My choice should make more sense. I was (and really still am) new to the "web thing"

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Nov 2007 13:43:44 -0200, Yunhua Sang <[EMAIL PROTECTED]> wrote: Hi Renat, Do you have some good ideas to prevent LazyInitializationException be thrown out after form submitting? My current solution looks not smart: explicitly call collection.size() in the first thread. Take a loo

Re: T5: using a filter to manage virtual hosts

2007-11-21 Thread Andy Huhn
Fernando, Thank you very much, that's exactly what I was looking for! Andy On Wed, 2007-11-21 at 06:52 -0800, Fernando Padilla wrote: > You don't like the pages just calling request.getServerName() themselves? > > ps - request could be a tapestry Request object, or it might have to be > a requ

Re: BeanEditForm and collections

2007-11-21 Thread Francois Armand
Kevin Menard wrote: Does anyone have any hints on getting BeanEditForm to play nicely with collections? For now, BeanEditor (or BeanEditForm) is not really aware of collection as a property. I think it's in the todo list (T5 still alpha, etc ;) So, for now I think that the only solution is to

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-21 Thread Yunhua Sang
Hi Renat, Do you have some good ideas to prevent LazyInitializationException be thrown out after form submitting? My current solution looks not smart: explicitly call collection.size() in the first thread. Thanks Yunhua On Nov 21, 2007 9:54 AM, Renat Zubairov <[EMAIL PROTECTED]> wrote: > There i

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-21 Thread Renat Zubairov
There is a simpler solution that works is to rollback the DB transaction in case validation fails. So we are actually get a transaction from the Hibernate session and roll it back therefore no changes are efficient in the session. There is not very flexible solution but works for simpler cases. The

Re: T5: using a filter to manage virtual hosts

2007-11-21 Thread Fernando Padilla
You don't like the pages just calling request.getServerName() themselves? ps - request could be a tapestry Request object, or it might have to be a requestGlobals.getHttpServletRequest() object, depending on what's available in the api... Andy Huhn wrote: All, I'm writing an app that will

T5: using a filter to manage virtual hosts

2007-11-21 Thread Andy Huhn
All, I'm writing an app that will make use of virtual hosts (so that domain1.com, domain2.org, etc. will all point to the same application). The sticky piece is that each page will need to know the hostname by which it was referenced--the data displayed on the page will be different for each virtu

RE: T5: Tapestry-Hibernate, do we have to save()?

2007-11-21 Thread Angelo Chen
Hi Jonathan, I'm new to this web thing, I'm using now Tapestry with Hibernate and found them so convenient together, I'd like to know what is the advantage of using Spring with Tapestry, particularly T5 considering T5 has its own Ioc as well. Thanks, Tapestry-Hibernate is working very well, of c

Re: Using Alfresco from within Tapestry

2007-11-21 Thread Kaspar Fischer
Hi, I am still working on how to get access, from my Tapestry webapp in Tomcat, to a Spring bean called "nodeService" which is from a different webapp of Tomcat (Alfresco in this case). In my previous post, I have run into a problem with the load order: Alfresco was loaded by Tomcat after

Re: T5 persisting select component selection after form submission

2007-11-21 Thread Ritesh.S
OK I will study the links you provided. Thanks for your help. Thiago H de Paula Figueiredo-2 wrote: > > On Wed, 21 Nov 2007 10:57:46 -0200, Ritesh.S <[EMAIL PROTECTED]> wrote: > >> If I am not bothering you, I will like to ask you for which classes or >> situations this equals method overridin

Re: T5 persisting select component selection after form submission

2007-11-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Nov 2007 10:57:46 -0200, Ritesh.S <[EMAIL PROTECTED]> wrote: If I am not bothering you, I will like to ask you for which classes or situations this equals method overriding is necessary. If you like to answer I would like to know. If your objects can be added to a collection, you

Re: T5 persisting select component selection after form submission

2007-11-21 Thread Ritesh.S
If I am not bothering you, I will like to ask you for which classes or situations this equals method overriding is necessary. If you like to answer I would like to know. Thanks. Ritesh.S wrote: > > Thanks Thiago H de Paula Figueiredo-2. > You are right I didn't have the overriden method equals

Re: T5 persisting select component selection after form submission

2007-11-21 Thread Ritesh.S
Thanks Thiago H de Paula Figueiredo-2. You are right I didn't have the overriden method equals for select option. After adding it working correctly. Thank you very much for your reply. Thiago H de Paula Figueiredo-2 wrote: > > On Wed, 21 Nov 2007 03:46:22 -0200, Ritesh.S <[EMAIL PROTECTED]> wro

Re: T5 persisting select component selection after form submission

2007-11-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Nov 2007 03:46:22 -0200, Ritesh.S <[EMAIL PROTECTED]> wrote: Means select component shows first default option after action performed though there is a persisted value from previous request in variable. Have your select options class overrides the equals() method? If not, there'

Re: tapestry portlet hello world example

2007-11-21 Thread Borut Bolčina
http://labs.jboss.com/portletswap/portlets_framework.html 2007/11/21, cometta <[EMAIL PROTECTED]>: > > looking for portlet example in tapetry. anyone can recommand one? > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For add

tapestry portlet hello world example

2007-11-21 Thread cometta
looking for portlet example in tapetry. anyone can recommand one? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Authentication Tapestry 5

2007-11-21 Thread Peter Stavrinides
Hi Gabriel I have a similar setup using a JDBC realm as well as multiple applications running on the domain so the best solution for me was to look for the authorization header in the browser and use this info to authenticate Chris posted a great wiki article on how to implement a Dispatcher

Re: Authentication Tapestry 5

2007-11-21 Thread Gabriel Landais
Peter Stavrinides a écrit : Hi all My question is more of a best practice related question, I want to use a filter to extract my authentication code from the rest of the application logic, [...] Thanks in advance, Peter Hi, First, I'm a real Tapestry newbie, and I believe that Tapestry has