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

2008-12-05 Thread Jonathan Barker
It is possible to "update" your old code to bypass traditional Acegi processing and use the authentication manager directly. One relevant thread is here: http://thread.gmane.org/gmane.comp.java.tapestry.user/59931/ (look for the post at 15:33 on Mar 28) with a critical missing bit here: http:/

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

2008-12-05 Thread rs1050
sorry, instead of "and my Index java page in never called" i meant "and my Login java page is never called". -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20865881.html Sent from the Tapestry - User mailing list

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

2008-12-05 Thread rs1050
Hi, I would like to create and set ASO on successful login. Without using tapestry-spring-security my Login page looked like this: public class Login { Object onSuccess() { boolean authResult = authenticate(); if (authResult) { // create and set ASO 'myState'

Re: architectural question

2008-12-05 Thread Luther Baker
That works just fine when I @Inject a hibernate session directly into a DAO and say, persist an object ... but there's a catch. In my world - a DAO is a very low level, granular thing. I inject DAOs into my PersistenceService which gets invoked from my Management layer and I want the Transaction d

Re: architectural question

2008-12-05 Thread Luther Baker
Thanks - that worked just fine. -Luther On Fri, Dec 5, 2008 at 1:41 PM, James Hillyerd <[EMAIL PROTECTED]> wrote: > Look at the bottom of this page: > > http://tapestry.apache.org/tapestry5/tapestry-hibernate/userguide.html > > It explains how to get @CommitAfter working with DAOs. > > -james >

Re: Is someone going to Devoxx?

2008-12-05 Thread Jérôme BERNARD
On Fri, Dec 5, 2008 at 21:20, Oliver Geisser <[EMAIL PROTECTED]>wrote: > Hi, > > is someone going to Devoxx next week and would like to meet and chat a > little about Tapestry? > > As far as I know there is no Tapestry presentation scheduled but maybe we > can meet at > the whiteboards or drink a

Is someone going to Devoxx?

2008-12-05 Thread Oliver Geisser
Hi, is someone going to Devoxx next week and would like to meet and chat a little about Tapestry? As far as I know there is no Tapestry presentation scheduled but maybe we can meet at the whiteboards or drink a beer together? Olli -- og

Re: Page present, still get onLoad FAIL: ClassNotFound error

2008-12-05 Thread James Hillyerd
You will probably want to scroll down further in the stack trace. If Tapestry IoC can't resolve everything it needs to inject into a particular Page, Component or Service then you will see ClassNotFoundException. It's likely the JVM was able to load the class fine. -james On Fri, Dec 5, 2008 at

Re: architectural question

2008-12-05 Thread James Hillyerd
Look at the bottom of this page: http://tapestry.apache.org/tapestry5/tapestry-hibernate/userguide.html It explains how to get @CommitAfter working with DAOs. -james On Fri, Dec 5, 2008 at 10:20 AM, Luther Baker <[EMAIL PROTECTED]> wrote: > If I inject a Hibernate session into my DAO and have

Re: Advantages of various .tml storage locations?

2008-12-05 Thread Luther Baker
@Jonathan That works for me. Maven clean and then install. I'm using Eclipse with M2 and Jetty plugins ... and have components and properties files that load correctly from the resources dirs --- so my src dirs were setup correctly. For whatever reason, after a Maven clean and install ... my page

architectural question

2008-12-05 Thread Luther Baker
If I inject a Hibernate session into my DAO and have my Tapestry Controller invoke that, is there a Tapestry way that I can tell hibernate to start and commit a transaction via annotations or configuration? IE: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/com

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

2008-12-05 Thread Hugo Palma
I have a very usual use where in a form i have two selects, and when the user selects a value on one the values on the second should be filtered accordingly. As the Select component doesn't support ajax out-of.the-box i see myself forced to implement a lot of plumbing and javascript stuff. Still,

Page present, still get onLoad FAIL: ClassNotFound error

2008-12-05 Thread Tom Pfotzer
I'm new to Tapestry. Installed Serge Eby's AppFuse kick-start package, uses Tapestry 5.0.17. Install went OK. Can start app, but once navigate off main page, get classNotFound errors accessing some (not all) pages. Using Eclipse IDE. Generating exploded WAR. Context root is wtpwebapps\engine\WE

Re: Advantages of various .tml storage locations?

2008-12-05 Thread Christian Edward Gruber
I believe you are correct. Christian. On 5-Dec-08, at 12:38 , Jonathan Barker wrote: Correct me if I'm wrong: specifying the resources directory in this way means that the original (default) src/main/resources will not be used, so if you want to mix-and-match resource locations then you n

Re: modules

2008-12-05 Thread Howard Lewis Ship
Yep, that's an annoyance with Maven and I'm not sure how to fix it. On Thu, Dec 4, 2008 at 9:18 PM, Luther Baker <[EMAIL PROTECTED]> wrote: > Ah .. thanks Howard. I was looking at the IoC module pages and skipped the > front altogether. > > One minor html note .. on the tapestry-core pages, the Ta

RE: Advantages of various .tml storage locations?

2008-12-05 Thread Jonathan Barker
Correct me if I'm wrong: specifying the resources directory in this way means that the original (default) src/main/resources will not be used, so if you want to mix-and-match resource locations then you need to also specify src/main/resources. I wouldn't want someone tripping on that issue. Jona

Re: AW: Advantages of various .tml storage locations?

2008-12-05 Thread Howard Lewis Ship
Yes, Pages are given the option of having their templates in the webapp, but both page and components can have their templates on the classpath. As I was saying, I would have preferred, in retrospect, that pages not have a special case, and that templates always go on the classpath ... but that ho

RE: AW: Advantages of various .tml storage locations?

2008-12-05 Thread Jonathan Barker
Luther, I think you are hitting a development environment issue. Does this just not work for developing in the IDE? In other words, if you use "mvn clean compile package" to generate a war file, verify that the war file contains everything it should, and then deploy that war file to tomcat or je

Re: AW: Advantages of various .tml storage locations?

2008-12-05 Thread Christian Edward Gruber
No, that's not a maven thing, that's a Tapestry thing. Pages always go in webapp. It's actually a function of the way J2EE WARs are constructed, and how T5 interprets this information to construct pages. Pages are a special case component. Howard, is an alternate location possible for pa

Re: [T5] 5.0.16 Spanish special characters

2008-12-05 Thread Ray
Ive tried to update the maven repos with the encoding param but there was still no change, im going to leave it be for a while and come back to it. Thanks again for everyones assistance. On Thu, Dec 4, 2008 at 10:57 AM, Andy Pahne <[EMAIL PROTECTED]>wrote: > > That's whatI did as well, and it w

RE: T5: Clicking on actionLonk with a zone parameter before page loads

2008-12-05 Thread Russell Brown
Is Ok. I read the results at https://issues.apache.org/jira/browse/TAP5-1. I guess we will have to roll our own. Can't have users clicking once and waiting and then going "uh...did I click that"... I think it is better if there is either some feedback or a way of trapping the event and replaying it

RE: IoC registry survives between JUnit tests?

2008-12-05 Thread Blower, Andy
It's all in the subversion repository. http://tapestry.apache.org/tapestry5/source-repository.html > -Original Message- > From: Peter Stavrinides [mailto:[EMAIL PROTECTED] > Sent: 05 December 2008 16:09 > To: Tapestry users > Subject: Re: IoC registry survives between JUnit tests? > > Hi

Re: AW: Advantages of various .tml storage locations?

2008-12-05 Thread Luther Baker
Assuming this: src/main/java/*com/X/app*/pages/Home.java This doesn't work for me: src/main/resources/*com/X/app*/pages/Home.tml Wherease, this works just fine: src/main/webapp/Home.tml Do I need to do something special to drop my pages in the resources dir or does this just work and I am

Re: IoC registry survives between JUnit tests?

2008-12-05 Thread Peter Stavrinides
Hi Howard I use easymock and JUnit to test IoC services, would love to see some of your test code to steal some of your ideas :o) is any of it available ? Peter - Original Message - From: "Christian Edward Gruber" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, 5 December, 2008

Re: AW: Advantages of various .tml storage locations?

2008-12-05 Thread Christian Edward Gruber
It's not a fix, it's a design. Code goes in /src/main/java. Resources go in /src/main/resources. It's part of having a place for everything, and everything in its place. You could hack it by a custom execution of the resources plugin pointing to your "alternative resources location" (ie,

Re: Advantages of various .tml storage locations?

2008-12-05 Thread Andreas Andreou
http://tacos.sourceforge.net/tacos4.1/tacos-core/quick-start/resolvers.html implements that for T4.1 but the maven instructions mentioned there are what you're after... it boils down to redefining the resources location like this: ... src/main/jav

AW: Advantages of various .tml storage locations?

2008-12-05 Thread Maximilian Weißböck
I would much prefer solution number 1. as it keeps things on the same place that belong together. Sadly maven build does not work with this solution. Is there any maven guru how knows how to "fix" this? Thanks, Max > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROT

RE: T5: Clicking on actionLonk with a zone parameter before page loads

2008-12-05 Thread Russell Brown
Can you tell me what happens now? Is the link just dead until the page loads, is there some sort of feed back? Is It invisible? Just want to know as we were about to roll our own solution. Many thanks Russell -Original Message- From: Inge Solvoll [mailto:[EMAIL PROTECTED] Sent: 05 Decem

Re: T5: Clicking on actionLonk with a zone parameter before page loads

2008-12-05 Thread Inge Solvoll
Last version of T5 has a fix for this. Works for me now. On Fri, Dec 5, 2008 at 3:50 PM, Russell Brown <[EMAIL PROTECTED]>wrote: > Hi, > > I have some AJAX calls from actionLinks. If a user clicks on the > actionLink before the page is fully loaded I get the exception > > > > A component event ha

T5: Clicking on actionLonk with a zone parameter before page loads

2008-12-05 Thread Russell Brown
Hi, I have some AJAX calls from actionLinks. If a user clicks on the actionLink before the page is fully loaded I get the exception A component event handler method returned the value [EMAIL PROTECTED] Return type org.apache.tapestry5.internal.structure.BlockImpl can not be handled. Configur

Re: t5.0.17: Tapestry-upload exception?

2008-12-05 Thread Martijn Brinkers
It makes it easier to distinguish between exceptions because of max upload exceeded and 'regular' exceptions. A upload exceed exception is something that can happen during normal usage of your web application whereas regular exceptions should not happen under normal circumstances. Martijn On Fri

Re: t5.0.17: Tapestry-upload exception?

2008-12-05 Thread Angelo Chen
Hi, Thanks, this works, also this: public Object onUploadException(Throwable cause) { upload_form.recordError("Please limit file size to 500K or below."); return this; } but why this not working: public Object onException(Throwable cause) { String x = cause.g

Re: t5.0.17: Tapestry-upload exception?

2008-12-05 Thread Martijn Brinkers
I use it like this: @OnEvent(UploadEvents.UPLOAD_EXCEPTION) protected Object onUploadException(FileUploadException uploadException) { return this; } Regards, Martijn Brinkers On Fri, 2008-12-05 at 01:19 -0800, Angelo Chen wrote: > Hi Howard, > I added this, but it was

Re: T5: IOC and Groovy

2008-12-05 Thread Francois Armand
Howard Lewis Ship wrote: [..] Also, Tapestry isn't going to read Groovy source files, you need to set up your IDE or build tool to compile the Groovy files to .class files. There was some work done in the chenillekit framework to evaluate groovy scripts: http://www.chenillekit.org/demo/script

Re: t5.0.17: Tapestry-upload exception?

2008-12-05 Thread Angelo Chen
Hi Howard, I added this, but it was never called, any idea how to handle this: Object onException(Throwable cause) { String x = cause.getMessage(); System.out.println("error"); return this; } thanks Howard Lewis Ship wrote: > > Its an event that gets trigge