Re: T5 : session timeout

2008-04-12 Thread Stephane Decleire
Thanks Geoff. That is the first idea i came up with and i think that it works. But Howard has worked hard to let us use any simple POJO as pages ;-). Is there any other solution to have a common check on the pages activation event without extending a common subclass ? Stephane Geoff Callende

Re: T5 : session timeout

2008-04-12 Thread Stephane Decleire
Thanks Josh, I think that your solution is the best but also the hardest way ! Checking every properties in every pages ... wooahh ! Would not it be very handy to have the framework raise an event in case of a session loss (for example as for a 404 error) that we could catch to simply redirect

Problem with AbstractIntegrationTestSuite

2008-04-12 Thread Stellit
I have wrote a simple test with AbstractIntegrationTestSuite and selenium. I run my test with TestNG within eclipse, but I got the folloing message all the time. ^^ Starting Jetty instance on port (/ mapped to /Users/stellit/Documents/workspace/ajax-test/src/main/webapp) [WARN] WebA

Re: T5: exception type prefix during onException

2008-04-12 Thread Filip S. Adamsen
How about this: public static stripExceptionPrefix(String message) { return message.substring(message.indexOf(":")).trim(); } Stick that somewhere and just use that? -Filip On 2008-04-12 05:29, Bill Holloway wrote: In using onException, I send the resulting string to a conditionally-s

Re: How to override a service create with @Marker

2008-04-12 Thread Robin Helgelin
On Tue, Apr 8, 2008 at 7:24 PM, Robin Helgelin <[EMAIL PROTECTED]> wrote: > On Tue, Apr 8, 2008 at 7:07 PM, Dave Dombrosky <[EMAIL PROTECTED]> wrote: > > Is there still no solution to this problem? I am also trying to > > override the default SaltSource, but the tapestry5-acegi package > > al

Re: Problem with AbstractIntegrationTestSuite

2008-04-12 Thread Filip S. Adamsen
Hi, webdefault.xml is the web.xml for your test application, so you need to provide one and set the tapestry.app-package context parameter etc. -Filip On 2008-04-12 12:47, Stellit wrote: I have wrote a simple test with AbstractIntegrationTestSuite and selenium. I run my test with TestNG with

Re: T5 : session timeout

2008-04-12 Thread Filip S. Adamsen
Hi, Yes, there is another solution. Use request filters: http://www.mail-archive.com/users@tapestry.apache.org/msg21568.html I use this approach. I check for an annotation on my page class in my filters and act accordingly. -Filip On 2008-04-12 11:19, Stephane Decleire wrote: Thanks Geoff.

Index page context and 404 response

2008-04-12 Thread Imants Firsts
Hello! I changed my application to use the Index.tml instead of Start.tml, because pagelink component for index page renders www.mydomain.com/, which looks much better than www.mydomain.com/start However now there is a problem that all the invalid tapestry URLs are rendered as my index page with

Component reloading is not working

2008-04-12 Thread Jakob Keres
Hi. I'm quite new to tapestry so it's maybe only a stupid newbie issue. I created a new project with (copied from website): mvn archetype:create \ -DarchetypeGroupId=org.apache.tapestry \ -DarchetypeArtifactId=quickstart \ -DgroupId=org.apache.tapestry \ -DartifactId=tutorial1 \ -Dpack

Re: Component reloading is not working

2008-04-12 Thread Filip S. Adamsen
Hi Jakob, You need to compile after making changes, even if the changes you made does not involve any classes. This is so that the templates etc. can be pushed to target/classes where Jetty looks for them. Which IDE are you using? -Filip On 2008-04-12 13:46, Jakob Keres wrote: Hi. I'm qui

Re: T5 : session timeout

2008-04-12 Thread Geoff Callender
Hi Stephane, I don't think that's a problem - POJOs can be subclasses (after all, every class is a subclass indirectly of Object). What we're talking about here is a shared behaviour and it seems to me entirely appropriate to put the shared behaviour into a superclass. It's not the only

Re: Component reloading is not working

2008-04-12 Thread Jakob Keres
Am Samstag, den 12.04.2008, 13:54 +0200 schrieb Filip S. Adamsen: > Hi Jakob, > > You need to compile after making changes, even if the changes you made > does not involve any classes. OK. > Which IDE are you using? Eclipse - of course :) Thx, Jakob --

my Java EE tragic story.

2008-04-12 Thread Mohammad Shamsi
Hi Friends, please take a look at my blog about Java EE and my problems with it. http://mhshams.blogspot.com/ -- sincerely yours M. H. Shamsi

redirect page in pageValidate method

2008-04-12 Thread learn
in my page validate method i use cycle to forward to another page. I did "debugging" and it show the code does run fine. but i dont get the resut that i want. the page doesnt get redirected public void pageValidate(PageEvent event) { if(getUserExists()){

Re: Component reloading is not working

2008-04-12 Thread Andy Huhn
Hi Jakob, Also, which version of Jetty are you using? I don't believe there's a way to get component reloading working yet with Eclipse + Jetty6, although there is with Eclipse + Jetty5. Andy On Sat, 2008-04-12 at 13:46 +0200, Jakob Keres wrote: > Hi. > > I'm quite new to tapestry so it's mayb

Re: T5: exception type prefix during onException

2008-04-12 Thread Bill Holloway
Sure, that'll work. I guess I was wondering if there were a built-in feature to disable this or if something in the JVM were involved that I could configure. I should've worded my question that way! Thanks! Bill On 4/12/08, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > How about this: > > pu

Re: AW: Getting Answers on the User List

2008-04-12 Thread Yura Tkachenko
There are so many interesting replies over here. As for me I found this list is very interesting. This is a great place where you can find a lot useful information. Also if you can ask right question definitely you can get right answer which is great. Anyway as Java developer my first technology wa

Re: Component reloading is not working

2008-04-12 Thread Jakob Keres
Am Samstag, den 12.04.2008, 11:28 -0400 schrieb Andy Huhn: > Hi Jakob, > > Also, which version of Jetty are you using? Jetty6 but... > I don't believe there's a > way to get component reloading working yet with Eclipse + Jetty6, > although there is with Eclipse + Jetty5. ...it's working. I

Re: [T5] enum/BeanEditForm issue

2008-04-12 Thread Andy Huhn
Well, fortunately and unfortunately, that was it. Thanks again, Peter, for finding my mistake. And sorry again for cluttering up the list with my poor proofreading skills. Andy On Fri, 2008-04-11 at 12:41 -0400, Andy Huhn wrote: > Oh, brother. If that's it, take my keyboard away from me. :o)

Re: T5 : session timeout

2008-04-12 Thread Josh Canfield
> I think that your solution is the best but also the hardest way ! Checking > every properties in every pages ... wooahh ! :) Hehehe... yeah, I tend to lean towards correct over easy. On Sat, Apr 12, 2008 at 2:24 AM, Stephane Decleire <[EMAIL PROTECTED]> wrote: > Thanks Josh, > > I think that

Re: my Java EE tragic story.

2008-04-12 Thread adasal
Your blog doesn't seem to be about Tapestry. I believe there are standards, but the standards have boarders which may be redefined as the standard evolves. What is inside the boarder will be interoperable, What is outside is left to the implementer. It is very possible to misunderstand the standard

T5: Return javascript in zone markup

2008-04-12 Thread Andrew Court
Hi all, I don't know if this functionality has been built into the zone component yet (using 5.0.11 release), but what I'm trying to do is return additional javascript along with html markup in an ajax response. Is this possible, and if so how would one go about doing it? And while I'm here, I'v

RequestGlobals in a PersistentFieldStrategy

2008-04-12 Thread nicholas Krul
Hi guys. I have implemented a new PersistentFieldStrategy (cookie based), and am having just one problem... @Inject private RequestGlobals requestGlobals isn't processed... and I know of no other way to get it into the strategy to make it work (it is from the base package). I don't care how

t5: logging pages

2008-04-12 Thread Angelo Chen
Hi, I would like to keep a log of visits made by viewers, what page he goes, from what IP he comes, etc. what is a good place to do this, a dispatcher? or any good suggestions in adding a logging facility in T5? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-loggin

Re: [T5] [FAQ] Form and old errors/data

2008-04-12 Thread Geoff Callender
It's great that we have these workarounds to prevent leaving ValidationTrackerImpl objects littered throughout the session, but I'm having trouble understanding how it came to this. After all, I can't think of a single case where I'd want a form's validation errors to be retained after the

Re: Component reloading is not working

2008-04-12 Thread Andy Huhn
Hi Jakob, Well, I tried what you mentioned, and it now picks up changes to my .tml right away--definitely an improvement over before. I think I am seeing the same problem you are seeing, though, because it is not picking up changes to my page classes. If I modify a page class and save in Eclipse

Re: my Java EE tragic story.

2008-04-12 Thread Mohammad Shamsi
No, it doesn't about Tapestry. its about my problems during migration from lightweight containers to the Java EE standard world. On Sat, Apr 12, 2008 at 11:27 AM, adasal <[EMAIL PROTECTED]> wrote: > Your blog doesn't seem to be about Tapestry. > I believe there are standards, but the standards