Form's validate event is fired even though cancel event is handled.(5.4)

2015-06-10 Thread Sumanth
Hi All, I have a ajax form and even though i click a submit button with t:mode = "cancel", the validate method of this form is called. The javadocs for SUBMITMODE.CANCEL says that,"If the event handler for that event allows the submission to proceed, then server-side validation still occurs on th

Re: Handle specific bubbled up validate event

2015-04-28 Thread Thiago H de Paula Figueiredo
Yes, it is. :) On Tue, 28 Apr 2015 04:48:47 -0300, Nathan Quirynen wrote: On 28/04/15 09:40, Nathan Quirynen wrote: Hi, In a page I have a component that contains multiple forms. Now I want to handle the bubbled up validate event from one of these forms in my page. I know I can

Re: Handle specific bubbled up validate event

2015-04-28 Thread Nathan Quirynen
On 28/04/15 09:40, Nathan Quirynen wrote: Hi, In a page I have a component that contains multiple forms. Now I want to handle the bubbled up validate event from one of these forms in my page. I know I can handle the validate event with "onValidateFrom[ComponentName]()", but this h

Re: Handle specific bubbled up validate event

2015-04-28 Thread Lance Java
The page sees the component as a black box and doesn't know about its internal component structure. This encapsulation is by design. If you want more specific events you'll need to trigger them from your component.

Handle specific bubbled up validate event

2015-04-28 Thread Nathan Quirynen
Hi, In a page I have a component that contains multiple forms. Now I want to handle the bubbled up validate event from one of these forms in my page. I know I can handle the validate event with "onValidateFrom[ComponentName]()", but this handles all bubbled up validate event

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-27 Thread Lance Java
1. Validators are designed to cause a single failure each. If you want to validate multiple things, add multiple validators to a field. http://tapestry.apache.org/forms-and-validation.html 2. Validators must throw a ValidationException in order to fail, the issue you are responding to is discussi

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-27 Thread sub
at once and doesn't have to iterate through them and get frustrated. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-ValidationException-from-validate-event-leads-to-ERROR-level-logger-statement-tp4860047p5669953.html Sent from the Tapestry - User mailing l

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-20 Thread raulmt
or page name as String, without injecting the page on the component). Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-ValidationException-from-validate-event-leads-to-ERROR-level-logger-statement-tp4860047p5654429.html Sent from the Tapestry - User mailing list

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-17 Thread Thiago H. de Paula Figueiredo
On Tue, 17 Apr 2012 19:31:54 -0300, raulmt wrote: I know there are alternatives to throwing ValidationExceptions, but I was wondering what use does this has then? Is there really a case where you could want to log with error level all the user input validation errors? I ask because this metho

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-17 Thread raulmt
page as "you should do it this way" (http://tapestry.apache.org/forms-and-validation.html) but this behavior, imho, makes it useless at least in most cases. Regards, Raul. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-ValidationException-from-validate-even

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2011-10-04 Thread Felix Gonschorek
Thanks to Thiago i found a clean solution: @Environmental private ValidationTracker tracker; Using this envirnmental service one can record validation messages without throwing exceptions and without having the surrounding form component at hand. thanks thiago felix On 04.10.2011 12:38, Fel

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2011-10-04 Thread Felix Gonschorek
Lenny and Steve, thank you for your responses. I updated testwise to 5.2.6, but the behaviour does not change here. @Lenny: Can't do component.recordError(), since i need the form component to do so. The form component is defined a few component layers above and i would have to pass it down as a

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2011-10-02 Thread Steve Eynon
Hi Felix, I remember seeing the same behaviour you mention in the past - ValidationExceptions being handled correctly but also being logged as an error. But I've not seen it happen in a while now and after a quick test I'm not able to replicate it either. We're using T5.2.6, you may want to try up

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2011-10-01 Thread Lenny Primak
I think you can do .recordError() to do the same thing without throwing the exception. Since no one is handling the exception in your case it just flows to the standard error handler and sends you the email. On Oct 1, 2011, at 12:15 PM, Felix Gonschorek wrote: > Hi all, > > i encountered a

T5: ValidationException from validate event leads to ERROR level logger statement

2011-10-01 Thread Felix Gonschorek
Hi all, i encountered a undesired behaviour in our apps: When using an "validate" component event handler that validates a single field and this handler throws an org.apache.tapestry5.ValidationException, this exception is logged with level ERROR: [ERROR] ioc.Registry org.apache.tapestry5.Valid

Re: Avoiding "validate" event after "canceled" from BeanEditForm

2011-07-22 Thread kleanthis
. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Avoiding-validate-event-after-canceled-from-BeanEditForm-tp4616049p4621963.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsu

Re: Avoiding "validate" event after "canceled" from BeanEditForm

2011-07-20 Thread nillehammer
et.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/Avoiding-validate-event-after-canceled-from-BeanEditForm-tp4616049p4616607.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubs

Avoiding "validate" event after "canceled" from BeanEditForm

2011-07-20 Thread Matias Blasi
dler is called, recording form errors shown when I return to this page. I suppose that the "validate" event shouldn't be fired after "canceled" one, don't you? Or is there another way to handle with this scenario, perhaps? The only work arround I found, is having a boolea

Re: [T5.1] BeanEditForm and VALIDATE event

2010-06-16 Thread Thiago H. de Paula Figueiredo
On Wed, 16 Jun 2010 10:50:14 -0300, Nicolas Bouillon wrote: I understand BeanEditForm cannot respond to all my dream, but i expect to be able to adapt it in order to cover my need without forking (copy-pasting) a n-th tapestry component. That why i'm asking if it is possible to find out the o

Re: [T5.1] BeanEditForm and VALIDATE event

2010-06-16 Thread Nicolas Bouillon
On Wed, 16 Jun 2010 09:25:34 -0300, "Thiago H. de Paula Figueiredo" wrote: > Hi! > > BeanEditForm and BeanEditor are meant to speed up development and to cover > > the most common scenarios. I understand BeanEditForm cannot respond to all my dream, but i expect to be able to adapt it in order

Re: [T5.1] BeanEditForm and VALIDATE event

2010-06-16 Thread Thiago H. de Paula Figueiredo
Hi! BeanEditForm and BeanEditor are meant to speed up development and to cover the most common scenarios. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.ar

[T5.1] BeanEditForm and VALIDATE event

2010-06-16 Thread Nicolas Bouillon
d from the PropertyEditBlock on the VALIDATE event. I've created a custom BeanBlockContribution for the TextField to watch where goes the event VALIDATE, or to create a new event, but I got the problem that my TextEditBlock is a page, and then is not "contained" in my real page when it

Re: Validate Event

2008-07-07 Thread Sven Homburg
ut.println(valueForComponent) } 2008/7/7 滕训华 <[EMAIL PROTECTED]>: > I have three textField in my page and in my validate event I write: > > > > Private String component1; > > Void onValidate(){ > > System.out.println(component1

Validate Event

2008-07-07 Thread 滕训华
I have three textField in my page and in my validate event I write: Private String component1; Void onValidate(){ System.out.println(component1) } The result is outputing the value of the component1 three times,but the first time its value is null and