Re: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Martin Papy
Hi Stephane, I have build a web app -maybe not as complex as yours- but I got a similar problem once... The solution I found is to force Eclipse to build all projects inside the same directory completly outside all projects. Exemple Project Structure : /Parent |_Module1 |_Module2 |_Modul

RE: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread Jonathan Barker
Short answer: I don't know. I have, for various reasons, maintained a slightly modified version of the tapestry5-acegi project. I will likely do the same for tapestry-spring-security. If you look at the source for nu.localhost.tapestry5.springsecurity.services.SecurityModule you will see wher

RE: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread rs1050
Off topic: is there a way of instructing spring-security not to create a session before authentication (kind of 'no role at all' rather than ROLE_ANONYMOUS)? I am thinking about a web site with big traffic - creation of too many sessions for public pages will really slow it down... Jonathan Bark

RE: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Jonathan Barker
Not that I know of. Some things are covered under the Deployment Notes links from the Tapestry 5 main page. There are some Wiki entries that talk about different setups including: http://wiki.apache.org/tapestry/Tapestry5RunViaMain?highlight=(tapestry5) http://wiki.apache.org/tapestry/Tapestry

RE: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread Jonathan Barker
IIRC, the default configuration for tapestry-acegi resulted in ROLE_ANONYMOUS being given to unauthenticated users. That resulted in the creation of the session. Also, I hit issues in testing where I would go back to the login page and log in as a different user. Unfortunately, I still had page

RE: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Jonathan Barker
Do you have Build Automatically selected in Eclipse? > -Original Message- > From: Stephane Decleire [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 07, 2008 18:59 > To: Tapestry users > Subject: Re: [T5] Tapestry + Maven make me crazy !!! > > I've installed the last sonatype's m2eclip

RE: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread rs1050
Why do you expect that the session already exists so that you have to invalidate it? Does spring-security create it automatically? > Session s = _request.getSession(false); > s.invalidate(); > s = _request.getSession(true); -- View this message in context: http://www.nabble.com

Re: What's the easiest way to implement two dependent select lists ?

2008-12-07 Thread thermus
I agree there must be a better way to do it with a Tapestry component, but I'd probably do it as you described (it would only be a trivial amount of JS). Again, I'm curious what the Tap experts would do. The zone solution has been suggested for recent versions but doesn't appear useful in this c

Re: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Stephane Decleire
Thanks Jonathan, Happy to know i'm not alone ;-) But it won't help a lot in getting a not disturbed environment for my tap projects ... Is there a list of the problems encountered by the tapestry users in terms of development environments ? Stephane Jonathan Barker a écrit : > Hmmm. I'll have t

Re: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Stephane Decleire
I've installed the last sonatype's m2eclipse and my app is launched without dependencies errors but neither tml modifications nor java modifications are automatically reloaded when i right click my project, select "Debug as / Maven Build ..." and start jetty:run from there ... Thiago H. de Paula F

RE: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Jonathan Barker
Hmmm. I'll have to take another kick at that can. A new system is in my future so I've hesitated to disturb my dev environment. It took me two days to get productive again after I upgraded to a somewhat-new m2eclipse. Don't misunderstand - I like the product - it's just that a lot of things bro

Re: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Onno Scheffers
> > I think that i'm not the only > tapestry user without maven high skills ... If you're using the Tapestry binaries, there's no real reason you need to use Maven if if gives you so much troubles. When you lose days figuring out how to get your builds to work properly, it might be a good reaso

Re: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Thiago H. de Paula Figueiredo
Em Sun, 07 Dec 2008 19:53:28 -0300, Jonathan Barker <[EMAIL PROTECTED]> escreveu: Second, if you upgraded from the old, rather limited m2eclipse plugin to the latest and greatest, it will break the old JettyLauncher plugin. Been there, broke that. Sonatype's m2eclipse (the newer ones) w

Re: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Thiago H. de Paula Figueiredo
Are you using Sonatype's m2eclipse plugin? (http://m2eclipse.sonatype.org/) If not, I strongly recommend it. If you have any issues with JettyLauncher not finding libraries, it's because they're not correctly added to your project classpath. -- Thiago H. de Paula Figueiredo Independent Java

RE: [T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Jonathan Barker
I have a love-hate relationship with Maven and Eclipse plugins. First off, I hope you've done a "mvn clean" at some point. Second, if you upgraded from the old, rather limited m2eclipse plugin to the latest and greatest, it will break the old JettyLauncher plugin. Been there, broke that. The

Re: What's the easiest way to implement two dependent select lists ?

2008-12-07 Thread Hugo Palma
I'm already using the OnEvent component. Still, because the model of the select list i want to update is calculated server-side i need to pass it in json to the client, parse it again in javascript and then update the select input. This does work but i feel that there should be a simpler way of

RE: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread Jonathan Barker
My 'loginform.url' points to "/login". I've also looked at the source for the new tapestry-spring-security and I don't see much for differences. I noticed a post by Martijn asking how you configured Spring Security. If you are using tapestry-spring-security, you don't need to do the usual Sprin

[T5] Tapestry + Maven make me crazy !!!

2008-12-07 Thread Stephane Decleire
I've been working with tapestry 5 in eclipse for several months by now. And i have built a "complex" hierarchy of projects to fullfil my needs : 2 tapestry 5 applications both using several tapestry 5 libraries. In maven, my 2 applications depends of some of the libraries which in turn depends on o

Re: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread rs1050
I was using tapestry-spring-security. -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20885666.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread Martijn Brinkers
Are you using Spring Security directly or are you using the tapestry5-acegi library? I use Sprint Security without using tapestry5-acegi and my Login page is a fully functional tapestry page (ie it allows you to set ASO's etc.). The trick is to disable Spring security filtering for the login page

RE: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread rs1050
Thank you Jonathan, My login page is 'user/login', and this is what i have in configuration of spring-security: configuration.add("spring-security.loginform.url", "/user/login"); configuration.add("spring-security.failure.url", "/user/login/failed"); Then spring-security hijacks

RE: tapestry-spring-security: how to set ASO on successful login?

2008-12-07 Thread Jonathan Barker
Responses inline > -Original Message- > From: rs1050 [mailto:[EMAIL PROTECTED] > Sent: Saturday, December 06, 2008 15:27 > To: users@tapestry.apache.org > Subject: RE: tapestry-spring-security: how to set ASO on successful login? > > > Thank you. > > "You could work with

Cyclic relationships in Beaneditform

2008-12-07 Thread superoverdrive
Would Beaneditform in combination with AppPropertyEditBlocks support cyclic relationships such as this one here: public class Category { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; private String name; private Categ

Beaneditform example with ManyToMany ManyToOne

2008-12-07 Thread superoverdrive
Is there an example of using the Beaneditform for ManyToMany and ManyToOne associations? Is there a more simple solution with less code then what is described in "Adding New Property Editors" ? In theory there could be a Beaneditform that would automatically add all associated entities? Or wha

Re: tapestry-spring-security: using custom AuthenticationProcessingFilter

2008-12-07 Thread Oliver Geisser
Hi, I'm not 100% sure because I allways get a little bit confused by the details of injection. Maybe the improved documentation can help you ( http://tapestry.apache.org/tapestry5/tapestry-ioc/injection.html) As far as I understand I think this is a use case for the Alias service. You can find t