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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
.
--
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
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
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
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
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
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
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
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
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
24 matches
Mail list logo