Re: serviceParameters or listenerParameters both null during validate()!

2006-06-20 Thread Sam Gendler
Nope, same problem from within validate() instead of pageValidate(), so the javadoc for ExternalCallback appears to be just plain old incorrect. Bummer. --sam On 6/20/06, Sam Gendler <[EMAIL PROTECTED]> wrote: Judging by the javadoc example in ExternalCallback, if I overlod the validate() met

Re: serviceParameters or listenerParameters both null during validate()!

2006-06-20 Thread Sam Gendler
Judging by the javadoc example in ExternalCallback, if I overlod the validate() method instead of implementig pageValidateListener, I will be able to do what i need to do. Is there any reason not to do this, since validate() doesn't appear to actually be deprecated? --sam On 6/20/06, Sam Gendl

Client side validation and Form

2006-06-20 Thread Simon Raveh
Hi, I have a simple form with two submit components. The first one (Revert) should revert and take the user back, the second one (Save) save the changes. I have client side validation enabled. My problem is that I want to validate the input only if the user click on the submit component that s

Re: serviceParameters or listenerParameters both null during validate()!

2006-06-20 Thread Sam Gendler
So the entire ExternalCallback/ExternalPage thing is actually entirely worthless when it comes to handling something like remembering where they were going when they failed to authenticate? That seems odd, especially since it is called out as being suitable for exactly that in the tapestry pdf bo

Re: serviceParameters or listenerParameters both null during validate()!

2006-06-20 Thread Jesse Kuhnert
Not a fun circumstance I'm sure. It's still probably better than getting NPE's. At the point when your pageValidate() method is called I'm not sure if you are in the right "state" to even bother looking for the parameters this way. The majority of requests in Tapestry end up going through the Dir

serviceParameters or listenerParameters both null during validate()!

2006-06-20 Thread Sam Gendler
I am trying to build an ExternalCallback during my validate method, in order to return to the same place I was trying to reach when my session expired. I click on a link which includes query string parameters courtesy of the parameter included in my listener and the validate() method fails to aut

R: R: R: Not solved! Re: Problem with mixing HTTP and HTTPS

2006-06-20 Thread Giampaolo Tomassoni
> I have not used google analytics, so I don't know. In theory, it > could/should still work. The original client ip is, afaik, included in > the http header "X-Forwarded-For". > It's pretty much as if the user uses a proxy server (i.e. a forward > proxy, not a reverse proxy) - how does google anal

Re: Parameter values are cached?

2006-06-20 Thread Dan Adams
It was a dumb question on my part. I should have replied when I saw it. @Parameter has a 'cache' parameter. duh. :) On Tue, 2006-06-20 at 14:30 -0400, Kevin Menard wrote: > Have you looked at the source for the For component? If that can do it, > you should be able to with your While. > -- Da

Re: Parameter values are cached?

2006-06-20 Thread Norbert Sándor
Parameters are cached by default but it can be turned off using its "cache" property. BR, Norbi Dan Adams wrote: I want to write a @While component that takes a condition just like @If does. The problem is that you can't give an ognl expression for the condition and have it evaluated each time

Re: 3 field date component

2006-06-20 Thread Lutz Hühnken
Any ideas out there on how we can get a better inventory of components? I think it would be easiest if everybody would just list their components (or components they know of) in the tapestry wiki ("http://wiki.apache.org/tapestry/ExtraComponents";). On a funny side note, the first one listed un

Re: R: R: Not solved! Re: Problem with mixing HTTP and HTTPS

2006-06-20 Thread Lutz Hühnken
I have not used google analytics, so I don't know. In theory, it could/should still work. The original client ip is, afaik, included in the http header "X-Forwarded-For". It's pretty much as if the user uses a proxy server (i.e. a forward proxy, not a reverse proxy) - how does google analytics dea

Re: Parameter values are cached?

2006-06-20 Thread Kevin Menard
Have you looked at the source for the For component? If that can do it, you should be able to with your While. -- Kevin On Tue, 20 Jun 2006 14:15:08 -0400, Dan Adams <[EMAIL PROTECTED]> wrote: I want to write a @While component that takes a condition just like @If does. The problem is that

RE: Using javascript in 3.03 to set the focus.

2006-06-20 Thread Mark Stang
Thanks everyone for your help, it was just those bloody comments before the PI. Arrrgghhh. -Original Message- From: Shing Hing Man [mailto:[EMAIL PROTECTED] Sent: Tue 6/20/2006 11:39 AM To: Tapestry users Subject: RE: Using javascript in 3.03 to set the focus. I have not tried not the

Parameter values are cached?

2006-06-20 Thread Dan Adams
I want to write a @While component that takes a condition just like @If does. The problem is that you can't give an ognl expression for the condition and have it evaluated each time I call getCondition(). Anyone know a way to do this? -- Dan Adams Software Engineer Interactive Factory 617.235.585

Re: Input dates validator

2006-06-20 Thread Malin Ljungh
Thank you Bryan!!! It works! How did you come up with that "mysterious" syntax? Is there documentation that I have missed somewhere? Just one problem left - localization of my date translator. Anyone have a suggestion, please? Malin On 6/17/06, Bryan Lewis <[EMAIL PROTECTED]> wrote: On your q

RE: Using javascript in 3.03 to set the focus.

2006-06-20 Thread Shing Hing Man
Also, there should be no blank line before Shing --- Shing Hing Man <[EMAIL PROTECTED]> wrote: > I have not tried not the example at > http://jakarta.apache.org/tapestry/3.0.4/doc/ComponentReference/Script.html > > > But I think your error is caused by > hava an comment before > > >

Re: Using javascript in 3.03 to set the focus.

2006-06-20 Thread Jesse Kuhnert
Try this: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/framework/src/java/org/apache/tapestry/form/LinkSubmit.script?view=markup Also try making your file end with .script to see if that helps? On 6/20/06, Mark Stang <[EMAIL PROTECTED]> wrote: I copied this exactly from the Tapestry w

RE: Using javascript in 3.03 to set the focus.

2006-06-20 Thread Shing Hing Man
I have not tried not the example at http://jakarta.apache.org/tapestry/3.0.4/doc/ComponentReference/Script.html But I think your error is caused by hava an comment before in FormFocus.script. You could try deleting the comment before it and see what happens. Shing --- Mark Stang <[EMAIL

RE: Using javascript in 3.03 to set the focus.

2006-06-20 Thread Mark Stang
I copied this exactly from the Tapestry web site: http://jakarta.apache.org/tapestry/3.0.4/doc/ComponentReference/Script.html My script looks like: http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>

Re: redirect-after-post pattern

2006-06-20 Thread Stephane Decleire
I expect to use de PageService. Paul Ferraro a écrit : It depends on which service you expect the redirect page to use. e.g. If the ExternalService will handle your redirect link, you can use: String page = "MyPage"; Object[] parameters = new Object[] { parameter1, parameter2 }; // Alternative

Re: redirect-after-post pattern

2006-06-20 Thread Paul Ferraro
It depends on which service you expect the redirect page to use. e.g. If the ExternalService will handle your redirect link, you can use: String page = "MyPage"; Object[] parameters = new Object[] { parameter1, parameter2 }; // Alternatively, you can use injection to obtain service IEngineService

Re: redirect-after-post pattern

2006-06-20 Thread Stephane Decleire
Thanks ! And does anybody know how to pass parameters to the ILink ? Stephane Filip S. Adamsen a écrit : I think what you want to do is to simply return null if you find any errors. Tapestry won't redirect, then. Stephane Decleire skrev: Hi, I've tried to implement redirect-after-post patt

Re: redirect-after-post pattern

2006-06-20 Thread bėgantis debesis
Hi, if I understand the problem correctly, you should return null on validation errors, then the page will be redirected to the page listener was invoked from. Valdemaras Repšys On 6/20/06, Stephane Decleire <[EMAIL PROTECTED]> wrote: This post has been written on May 2005. I've read the ILin

Re: redirect-after-post pattern

2006-06-20 Thread Filip S. Adamsen
I think what you want to do is to simply return null if you find any errors. Tapestry won't redirect, then. Stephane Decleire skrev: Hi, I've tried to implement redirect-after-post pattern in Tapestry4 without success ... I've read that the way to send a redirect reponse to the client web

Re: redirect-after-post pattern

2006-06-20 Thread Stephane Decleire
This post has been written on May 2005. I've read the ILink approach an Howard's blog dated of february 2006 ... ( http://howardlewisship.com/tapestry-javaforge/tapestry-flash/index.html ) Are you sure the redirection is the good solution ? Is the redirection really send a redirect reponse to

RE: redirect-after-post pattern

2006-06-20 Thread James Carman
In order to redirect, you have to throw a RedirectException. Have you read this: http://www.tapestryforums.com/-vp14687.html -Original Message- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 8:29 AM To: users@tapestry.apache.org Subject: redirect-after-

redirect-after-post pattern

2006-06-20 Thread Stephane Decleire
Hi, I've tried to implement redirect-after-post pattern in Tapestry4 without success ... I've read that the way to send a redirect reponse to the client web browser is to return an ILink from the form listener method like this : @InjectObject("engine-service:page") public ab

Re: null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-20 Thread Andreas Pardeike
On 20 jun 2006, at 11.49, Nick Westgate wrote: Just glancing at your code without digging in to it, it seems pretty dangerous to use statics like this in a component: ... private static Method snippetConverterMethod; That certainly is true. One more thing: Thinking about fixing my problem.

Re: null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-20 Thread Nick Westgate
Andreas, I've only seen weird null exceptions when caching is disabled. Just glancing at your code without digging in to it, it seems pretty dangerous to use statics like this in a component: ... private static Method snippetConverterMethod; ... Cheers, Nick. Andreas Pardeike wrote: Nick,

Re: null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-20 Thread Andreas Pardeike
Nick, I only disable caching when I run the project locally via the eclipse plugin. But once deployed to my jetty test server I don't have any -Dorg.apache.tapestry.disable-caching=true or the corresponding settings. I also remember that I tried to fix a small change on the test server and it

Re: null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-20 Thread Nick Westgate
Hi Andreas. Is Tapestry page caching enabled or disabled? Cheers, Nick. Andreas Pardeike wrote: Remember, it works fine for any time I run and test this up to the point where I leave the test server running for 1 or 2 days and then the first call to a page that contains this component will fa

Re: null exception on invoke, tapestry 3.0.3 - HELP!! (source)

2006-06-20 Thread Andreas Pardeike
On 20 jun 2006, at 00.37, Gunna Satria wrote: Sorry, not looking that section correctly.. So, e.getMessage() is resulting null? Is it only do so if we do something like this, try{ throw new Exception(): } catch(Exception e){ System.out.println("message: "+e.getMessage); } No. As you can s