Re: Re: T5, tapestry-spring-security, slf4j MDC

2009-10-12 Thread Borut Bolčina
Hello, I simplified the code so it does not use RequestGlobals which was giving me NULL for this.requestGlobals.getHTTPServletRequest() AppModule.java = ... binder.bind(HttpServletRequestFilter.class, RequestLoggingFilter.class).withId("RequestLoggingFilter");

Re: Re: T5, tapestry-spring-security, slf4j MDC

2009-10-09 Thread Olle Hallin
Do like this: MDC.put("xxx", ...); MDC.put("yyy", ...); try { return handler.service(request, response); } finally { MDC.remove("xxx") MDC.remove("yyy") } or else you will have problems when your request throws an exception Olle Hallin Senior Java Developer and Architect olle.hal...@c

Antwort: Re: T5, tapestry-spring-security, slf4j MDC

2009-10-09 Thread dirk . lattermann
Hi! Borut Bolčina schrieb am 09.10.2009 14:55:32: > this is what I did: > > public class RequestLoggingFilter implements HttpServletRequestFilter { > public final RequestGlobals requestGlobals; > > public RequestLoggingFilter(final RequestGlobals requestGlobalss) { > this.reque

Re: T5, tapestry-spring-security, slf4j MDC

2009-10-09 Thread Borut Bolčina
Olle thanks, this is what I did: public class RequestLoggingFilter implements HttpServletRequestFilter { public final RequestGlobals requestGlobals; public RequestLoggingFilter(final RequestGlobals requestGlobalss) { this.requestGlobals = requestGlobalss; } @Override

Re: T5, tapestry-spring-security, slf4j MDC

2009-10-09 Thread Olle Hallin
We do something similar. We have implemented a RequestFilter that pushes the HttpSession ID (if any) onto the Log4j Nested Diagnostics Context (NDC) before the request, and pops it afterwards. I guess that the same approach could be used for pushing usernames in the SLF4J MDC, provided that you can

T5, tapestry-spring-security, slf4j MDC

2009-10-09 Thread Borut Bolčina
Hello, has anybody implemented logging with MDC %X{username}? I would like to track users in my logs by their username and/or IP address. Before I dive in, I just wanna ask if someone has already done it? Thanks, Borut

Re: T5 tapestry spring

2009-06-17 Thread haipeng du
I found one way to fix this problem. But I am not sure if that is good one. (1) create one class to implement ObjectProvider public class TapestrySpringBeanProvider implements ObjectProvider { @Override public T provide(Class clazz, AnnotationProvider ap, ObjectLocator locat

Re: T5 tapestry spring

2009-06-17 Thread Otho
I had a similar problem. Maybe this thread helps you: http://www.nabble.com/T-5.1-How-to-inject-Spring-beans-by-name--td22934788.html 2009/6/17 haipeng du > I try to inject spring beans to page class with > @Inject > @Id("baseDAO") > private BaseDAO baseDAO > > It still gave me that "Spring con

T5 tapestry spring

2009-06-16 Thread haipeng du
I try to inject spring beans to page class with @Inject @Id("baseDAO") private BaseDAO baseDAO It still gave me that "Spring context contains 14 beans assignable to type xx.BaseDAO what should I do for this. -- Haipeng Du Salt Lake City

T5: tapestry-spring-security still processes form submissions after logout

2008-09-10 Thread buckofive
Hi all, I am using tapestry-spring-security version 2.0.0-SNAPSHOT (awesome plugin btw) and everything seems to work perfectly except when the combined steps are executed below: - go to a secured page with a form on it. i.e. @Secured("ROLE_ADMIN") public class ... - logout using the LogoutServic

Re: [T5] : tapestry + spring

2007-12-26 Thread Michael Lake
an advantage to NOT having tapestry built on spring is that we can drop in our legacy spring contexts where we don't want to upgrade from 1.x I really think tapestry-ioc was designed in such a way to allow maximum refactorability and ease of testing from the developer's standpoint. In

Re: [T5] : tapestry + spring

2007-12-26 Thread Fernando Padilla
I apologize. I didn't mean to infer that it doesn't integrate nicely, nor that it's not good. So don't take offense, I was just doing some uneducated guesstimates on tapestry adoption. The IoC is actually quite good once you get used to it (except for the Aliases mechanism which I haven't lo

Re: [T5] : tapestry + spring

2007-12-26 Thread Thiago H de Paula Figueiredo
On Wed, 26 Dec 2007 13:07:49 -0200, Fernando Padilla <[EMAIL PROTECTED]> wrote: But my guess is that using a different IoC system is really hurting adoption of tapestry. If tapestry could really integrate well with spring, then it could be more easily understood/picked up/recommended by

Re: [T5] : tapestry + spring

2007-12-26 Thread Fernando Padilla
I think we all agree that tapestry is generally amazing. And these threads are really just nit-picks :) So I'll go ahead and say that I kinda side with trying to use spring instead of reinventing the wheel. Though it's more important to get Tapestry to work, and part of that is to make sure

Re: [T5] : tapestry + spring

2007-12-26 Thread Chris Lewis
Personally I attribute many of the T5 issues you mentioned to that fact that it is largely a one man show. For the most part I agree with the issues you are raising, I simply draw different conclusions. It comes down to deciding which issue is heavier, and this of course is in the hands of deve

Re: [T5] : tapestry + spring

2007-12-26 Thread Mohammad Shamsi
I Agree with you on this but i have my own problems too. I have about 6 years experience on working with Java Web Frameworks. such as Struts, JSF , WebWorks... I found that Tapestry (especially T5) is Much Better than others, but its development process is so slow and unpredictable. I think tha

Re: [T5] : tapestry + spring

2007-12-26 Thread Chris Lewis
I couldn't disagree with you more. For people like you who are familiar with spring, you may think the ioc part of T5 is a waste of time. That makes sense if you use and are happy with spring. For people like me it's a completely different story. I have been working with java for years - on the

Re: [T5] : tapestry + spring

2007-12-26 Thread Mohammad Shamsi
Dear Friends, With this abilities that all we know about Frameworks like Spring, is there any need to Tapestry Focus on providing Hibernate Integration Tools or Tapestry IOC ? i read Howards Documents about need for new Ioc for Tapestry, but i still think that using Spring Ioc and Spring XML fil

Re: [T5] : tapestry + spring

2007-12-26 Thread Arve Klev
T5 + Spring is in my opinion a very good choose. I let Spring integrate ORM (Hibernate, JDBC, TopLink, etc). sincerely, Arve Klev 2007/12/24, Mohammad Shamsi <[EMAIL PROTECTED]>: > > Hi All, > > i want to start new Java EE projecct, Formerly we used Spring + Struts in > our projects. > after abo

Re: [T5] : tapestry + spring

2007-12-26 Thread Mohammad Shamsi
Hi Yuan, what version of Spring ? my you give me some info about your projects scale ? and do you have any problem with integrating spring and tapestry ? On Dec 26, 2007 12:50 PM, yuan gogo <[EMAIL PROTECTED]> wrote: > I personally think T5 + spring + ibatis is very good. > I'm using this com

Re: [T5] : tapestry + spring

2007-12-26 Thread yuan gogo
I personally think T5 + spring + ibatis is very good. I'm using this combination on our company's projects now! 2007/12/24, Mohammad Shamsi <[EMAIL PROTECTED]>: > > Hi All, > > i want to start new Java EE projecct, Formerly we used Spring + Struts in > our projects. > after about 4 month testin

[T5] : tapestry + spring

2007-12-24 Thread Mohammad Shamsi
Hi All, i want to start new Java EE projecct, Formerly we used Spring + Struts in our projects. after about 4 month testing and reading about Tapestry 5, i decide to use Tapestry 5 instead of Struts. i read some limitations of tapestry-spring module in its home page and i have no problem with t

Re: [T5] tapestry-spring and WebApplicationContext

2007-11-20 Thread jeffrey ai
>> >>>> >>>>> Hi >>>>> I think this willhelp you, >>>>> http://tapestry.apache.org/tapestry5/tapestry-spring/ >>>>> >>>>> >>>>> >>>> Thanks, >&g

Re: [T5] tapestry-spring and WebApplicationContext

2007-11-20 Thread Steph
my mail, I should see that I'm talked about this page. >>> >>> In this page in "Limitations" chapter it is writte that we can't inject >>> Spring session bean but we have to retreive the WebApplicationContext >>> and use it. >>> But I

Re: [T5] tapestry-spring and WebApplicationContext

2007-11-19 Thread Ezra Epstein
session bean but we have to retreive the WebApplicationContext >> and use it. >> But I don't know howto retreive this so famous WebApplicationContext >> when I'm in a tapestry code page or component. >> >> cyrille. >> >>> cyrille37 wrote: >>>

Re: [T5] tapestry-spring and WebApplicationContext

2007-11-19 Thread Steph
reive the WebApplicationContext >> and use it. >> But I don't know howto retreive this so famous WebApplicationContext >> when I'm in a tapestry code page or component. >> >> cyrille. >> >>> cyrille37 wrote: >>> >>> >&g

T5: tapestry-spring v tapestry-acegi

2007-10-15 Thread Christian Gorbach
hi all, has somebody managed to set up a project with tapestry-spring and tapestry-acegi together? As soon as i add the tapestryspring filter to web.xml, tapestry-acegi doesn't work anymore (based on the acegi demo app from robin) Exception constructing service 'RememberMeServices': Error invok

Re: [T5] tapestry-spring and WebApplicationContext

2007-06-29 Thread SergeEby
n but we have to retreive the WebApplicationContext > and use it. > But I don't know howto retreive this so famous WebApplicationContext > when I'm in a tapestry code page or component. > > cyrille. >> cyrille37 wrote: >> >>> Hi, >>> >&

Re: [T5] tapestry-spring and WebApplicationContext

2007-06-29 Thread #Cyrille37#
ing session bean but we have to retreive the WebApplicationContext and use it. But I don't know howto retreive this so famous WebApplicationContext when I'm in a tapestry code page or component. cyrille. cyrille37 wrote: Hi, In the T5 tapestry-spring documentation it is writed to

Re: [T5] tapestry-spring and WebApplicationContext

2007-06-28 Thread Fidel Chavarria
Hi I think this willhelp you, http://tapestry.apache.org/tapestry5/tapestry-spring/ cyrille37 wrote: > > Hi, > > In the T5 tapestry-spring documentation it is writed to don't use other > Spring beans than Singleton ones. > Inject the WebApplication

[T5] tapestry-spring and WebApplicationContext

2007-06-28 Thread #Cyrille37#
Hi, In the T5 tapestry-spring documentation it is writed to don't use other Spring beans than Singleton ones. Inject the WebApplicationContext instead. http://tapestry.apache.org/tapestry5/tapestry-spring/ But howto inject the WebApplicationContext ? thanks cy

Re: T5 tapestry-spring: have to interface all HibernateDaoSupport methods

2007-06-25 Thread Bill Holloway
I.e., public class FooDaoImpl extends HibernateTemplate implements FooDao // which extends HibernateOperations { // some custom Foo dao methods. } Perfecto and parsimonious. bill On 6/25/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote: On 6/26/07, Bill Holloway <[EMAIL PROTECTED]>

Re: T5 tapestry-spring: have to interface all HibernateDaoSupport methods

2007-06-25 Thread Bill Holloway
Thank you Massimo! That got it all solved. bill On 6/25/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote: On 6/26/07, Bill Holloway <[EMAIL PROTECTED]> wrote: > I have the following DAO pattern: > > public class FooDaoImpl > extends HibernateDaoSupport > implements FooDao > { >

Re: T5 tapestry-spring: have to interface all HibernateDaoSupport methods

2007-06-25 Thread Ned Jackson Lovely
On Mon, Jun 25, 2007 at 06:02:16PM -0500, Bill Holloway wrote: > I have the following DAO pattern: > > public class FooDaoImpl > extends HibernateDaoSupport > implements FooDao > { > // some custom Foo dao methods. > } > > However, tapestry-ioc spring bean injection injects via inte

Re: T5 tapestry-spring: have to interface all HibernateDaoSupport methods

2007-06-25 Thread Massimo Lusetti
On 6/26/07, Bill Holloway <[EMAIL PROTECTED]> wrote: I have the following DAO pattern: public class FooDaoImpl extends HibernateDaoSupport implements FooDao { // some custom Foo dao methods. } However, tapestry-ioc spring bean injection injects via interface. So, none of the

T5 tapestry-spring: have to interface all HibernateDaoSupport methods

2007-06-25 Thread Bill Holloway
I have the following DAO pattern: public class FooDaoImpl extends HibernateDaoSupport implements FooDao { // some custom Foo dao methods. } However, tapestry-ioc spring bean injection injects via interface. So, none of the HibernateDaoSupport or HibernateTemplate methods like s