Re: [T5.1] AJAX Form Validation

2009-10-22 Thread superslip103
. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/-T5.1--AJAX-Form-Validation-tp25709062p26009821.html Sent from the Tapestry - User mailing list archive

Re: [T5.1] AJAX Form Validation

2009-10-22 Thread Josh Canfield
...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/-T5.1--AJAX-Form-Validation-tp25709062p26009821.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: [T5.1] AJAX Form Validation

2009-10-05 Thread xfile80303
Thanks Josh! You helped me identify that it was an encoder issue on my end. I appreciate your help. :) Cheers, Levi Josh Canfield wrote: The only change I made was making isValid into a property and a checkbox in the form so I could switch between behaviors. Here is the complete

Re: [T5.1] AJAX Form Validation

2009-10-03 Thread Josh Canfield
The only change I made was making isValid into a property and a checkbox in the form so I could switch between behaviors. Here is the complete code that works for me. public class Index { @Component private Zone nothingSelectedZone; @Component private Form _parts; @Property

Re: [T5.1] AJAX Form Validation

2009-10-02 Thread xfile80303
Okay, I have some more information... When I click on the submit button, after the validation error, I see this in the log: ERROR [http-8080-5: RequestExceptionHandler]: Processing of request failed with uncaught exception: org.apache.tapestry5.runtime.ComponentEventException

Re: [T5.1] AJAX Form Validation

2009-10-02 Thread Josh Canfield
Your example code works fine and the exception you provide makes it look like you're in a loop? Caused by: java.lang.NullPointerException at org.apache.tapestry5.corelib.components.Loop.restoreStateFromStoredClientValue(Loop.java:457) That line from the code: // We assume that

Re: [T5.1] AJAX Form Validation

2009-10-02 Thread xfile80303
Hi Josh, Thanks for looking. I'm afraid the stack trace I provided is a red herring and does not have any bearing on the situation. It comes from the fact that my encoder was getting purged from the session due to it being set as FLASH only. And this exception actually only happens after I

[T5.1] AJAX Form Validation

2009-10-01 Thread xfile80303
Hello all, I'm seing some interesting behavior I hope you can help me sort out. I have a form which I would like to display an error message (custom) should the form validation fail. I'd like to do this via AJAX since the contents of the form are created via AJAX and refreshing the page to