Re: Using T5 IOC in Groovy

2011-10-27 Thread Steve Eynon
Looks like Groovy is instrumenting your AppModule class, not being a Grovvy user (outside of Gradle) I don't know how you would turn it off. Steve. On 24 October 2011 23:46, angelochen wrote: > Hi, > > Is this possible? > > trying to use IOC in Groovy, but get : > Caught: java.lang.RuntimeExcept

Re: Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-27 Thread Steve Eynon
jsessionid's are unique id's created by the web-server (i.e. jetty or tomcat) when it first creates a session for a client. (In your case, after you login.) It is usually stored in a cookie but it is also equally valid to have them stored as part of refering URLs. (As you are seeing) Often this is

Re: Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-27 Thread Muhammad Gelbana
Please specify the exact scenario to reproduce this issue and state the version you are using On Thu, Oct 27, 2011 at 12:17 PM, Leon Derks wrote: > > Hello > > I see this error message a lot. Almost always after my first login > attempt... > > What is causing this error? > > Input string 'login;j

Re: property expressions

2011-10-27 Thread Josh Canfield
> Most tapestry folk will agree that putting logic in your templates makes them brittle and hard to maintain, but sometimes need a little something in the template. I created a simple utility binding to help out in these kinds of situations. Example usage: Why | ? because : isn't valid in the

Re: PageTester with an application that uses tynamo

2011-10-27 Thread Kalle Korhonen
The securityManager is bound to the executing thread. You'd need to invoke (Tapestry's) request processing pipeline to get it bound, or perhaps directly operate Tynamo's SecurityConfiguration directly to bind it. Any solution likely involves some hacking. Kalle On Thu, Oct 27, 2011 at 4:46 AM, p

Re: Possible regression Tapestry 5.1 to 5.3

2011-10-27 Thread Howard Lewis Ship
I suspect Tapestry is not recognizing that SubClass.onSuccessFromStep1() is an override of BaseClass.onSuccessFromStep1() (perhaps the abstract flag is throwing it). So, Tapestry builds code for BaseClass, and implements dispatchComponentEvent() to invoke onSuccessFromStep1(). It then builds code

Re: autocomplete

2011-10-27 Thread Thiago H. de Paula Figueiredo
On Thu, 27 Oct 2011 13:14:34 -0200, csckid wrote: Thank you I was able to do it. How can I change the background color of autocomplete mixin? CSS. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Te

Re: autocomplete

2011-10-27 Thread csckid
Thank you I was able to do it. How can I change the background color of autocomplete mixin? -- View this message in context: http://tapestry.1045711.n5.nabble.com/autocomplete-tp4942541p4943300.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Problem with tapestry-yuicompressor in Tomcat

2011-10-27 Thread Denis Stepanov
Maybe the solution would be to use JarJar to repackage the Rhino, just like Google Guice uses it for including libs like ASM, commons etc. see: http://code.google.com/p/google-guice/source/browse/pom.xml#201 Denis On 27.10.2011, at 2:16, Howard Lewis Ship wrote: > The Liferay folks repackaged

Re: Tapestry 5.3 Validation removal of validateForm

2011-10-27 Thread Steve Eynon
Lets say your form is called IceCreamSelection, then you would handle it with: onValidateFromIceCreamSelection() by using onEVENTfromCOMPONENTID you get your specificity back. Steve. On 27 October 2011 19:51, Chris Poulsen wrote: > My guess would be "onValidateFrom" replaces > "validateForm"

Re: Tapestry 5.3 Validation removal of validateForm

2011-10-27 Thread Peter Stavrinides
> "onValidateFrom" Yes of course, why didn't I think of that (too much coffee today perhaps!)... Thanks! > Simply using onValidate is probably not specific enough as it may get > triggered by bubbling events. Exactly, OnValidate is a catch all so does get invoked for each bubbling validation eve

Re: Tapestry 5.3 Validation removal of validateForm

2011-10-27 Thread Chris Poulsen
My guess would be "onValidateFrom" replaces "validateForm" ? Simply using onValidate is probably not specific enough as it may get triggered by bubbling events. -- Chris On Thu, Oct 27, 2011 at 12:49 PM, wrote: > Hi All, > > The 5.3 release notes provide the following info: > "validateForm" e

PageTester with an application that uses tynamo

2011-10-27 Thread parranz
Hi, I'm trying to create Unit Tests for my application, i've begun with a very simple example, only calling the index page: PageTester tester = new PageTester(appPackage, appName, "src/main/webapp", new Class[] { AppModule.class}); Document doc = tester.renderPage("Index");

Re: Safari (for example) browser history and form exception

2011-10-27 Thread Thiago H. de Paula Figueiredo
On Thu, 27 Oct 2011 05:45:39 -0200, Steve Eynon wrote: What I would like to see, however, are more bespoke exceptions being thrown so I can more easily identify them in my exception handling Currently, my code reads something like: if (exception.getMessage().contains("Forms require that the

Tapestry 5.3 Validation removal of validateForm

2011-10-27 Thread P . Stavrinides
Hi All, The 5.3 release notes provide the following info: "validateForm" event triggered by Form component (replaced with "validate" event) How validate replaces validateForm is not clear to me and I could not find any more info? These two methods are certainly not interchangeable, i.e.: vali

Re: autocomplete

2011-10-27 Thread Steve Eynon
Try assigning the to a String as oppose to a List. @Property private String matches; As textboxes generally update a String. You'll then have to provide an event handler for "provideCompletions" as described here: http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/

Re: Possible regression Tapestry 5.1 to 5.3

2011-10-27 Thread Peter Stavrinides
FYI: returning true will also work, so I am happy to use that as a workaround instead, but I am still puzzled as to why it gets invoked twice? I suspect this is going to cause issues when I need to return an Object. cheers, Peter - Original Message - From: "Peter Stavrinides" To: "Tape

Re: Problem with pass parameter Using @Environmental

2011-10-27 Thread Barry Books
I've never tried this but I think this my help you http://tapestry.1045711.n5.nabble.com/T5-2-Looking-For-A-RenderNotification-Mixin-Example-td4917771.html#a4920626 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid.

2011-10-27 Thread Leon Derks
Hello I see this error message a lot. Almost always after my first login attempt... What is causing this error? Input string 'login;jsessionid=082793EE9A197CEB7F7750090DD0423D' is not valid; the character ';' at position 6 is not valid. regards, Leon --

autocomplete

2011-10-27 Thread csckid
I am trying to test Autocomplete using tapestry5. I get the following exception: Render queue error in BeginRender[About:fnametf]: Parameter 'translate' of component About:fnametf is bound to null. This parameter is not allowed to be null. About.tml http://tapestry.apache.org/schema/tapestry_5_1_

Possible regression Tapestry 5.1 to 5.3

2011-10-27 Thread Peter Stavrinides
Hi all, We noticed some odd behaviour today in one of our apps, it appears when we use the pattern detailed below, the onSuccessFromStep1() event gets invoked twice by Tapestry, this was not the case in 5.1: public abstract class BaseClass { public abstract Object onSuccessFromStep1(); } p

Re: AjaxFormLoop problem with Tapestry 5.2.-beta-9

2011-10-27 Thread Emmanuel DEMEY
This issues is now resolved. Here if the commit : https://issues.apache.org/jira/browse/TAP5-1700 Emmanuel 2011/10/12 Emmanuel DEMEY > I have just tested the sample of Taha's blog ( > http://tawus.wordpress.com/2011/07/26/tapestry-ajaxformloop/) and it is > the same. When I add a new row, its i

Re: Problem with pass parameter Using @Environmental

2011-10-27 Thread Steve Eynon
The Enviroment is tied to a ThreadLocal in the Request, so if you don't pop MyData manually, it should be cleared out automatically when the Request ends. I'm not sure why MyData is not found on the Environment Stack - does getData() return an actual object or a null? Steve. On 27 October 2011

Re: Safari (for example) browser history and form exception

2011-10-27 Thread Steve Eynon
That particular exception is quite a bane for it happens a lot on live public sties when they're crawled by various bots, and the logs fill up quick! (Along with the IllegalArgException thrown when the URL contains spaces.) That said, I don't believe it is up to Tapestry to make exceptions to the

Problem with pass parameter Using @Environmental

2011-10-27 Thread Bo Gao
I have a 2 nested component. I pass Parameters Using @Environmental service. Code in Outer Component: void beginRender() { environment.push(MyData.class, data); } void afterRender() { environment.pop(MyData.class); } Code in inner C