Re: Validation question - at which point are property values set before post

2009-10-07 Thread Peter Stavrinides
Thanks for the explanations, much appreciated to all. Peter - Original Message - From: "cordenier christophe" To: "Tapestry users" Sent: Wednesday, 7 October, 2009 15:07:52 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Validation question - at whic

Re: Validation question - at which point are property values set before post

2009-10-07 Thread cordenier christophe
Hi The solutions suggested by Dirk and Urlich sounds good to me. Actually, in the submission process the target variable set with 'value' attribute is modified only if validation succeeds. This is why your code doesn't work. Christophe.

Re: Validation question - at which point are property values set before post

2009-10-07 Thread Peter Stavrinides
Anybody? - Original Message - From: "Peter Stavrinides" To: "Tapestry Mailing List" Sent: Tuesday, 6 October, 2009 10:07:53 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Validation question - at which point are property values set before post Hi ever

Re: Antwort: Validation question - at which point are property values set before post

2009-10-06 Thread Ulrich Stärk
: Validation question - at which point are property values set before post They seem to be set after the input field validators complete. //This code works public void onSuccess() throws SQLException { if(isTerminated()){ if(personnelData.getEndDate() == null

Antwort: Validation question - at which point are property values set before post

2009-10-06 Thread dirk . lattermann
Peter Stavrinides schrieb am 06.10.2009 09:07:53: > Validation question - at which point are property values set before post They seem to be set after the input field validators complete. > > //This code works > public void onSuccess() throws SQLException { > >

Validation question - at which point are property values set before post

2009-10-06 Thread Peter Stavrinides
Hi everyone, I came across what seems a strange scenario to me, using Tapestry 5 validation. I am looking for a little understanding more than anything else with regards to 'the point at which properties values are set, before a form posts'... please examine this code snippet: //This code wor

RE: Form validation question

2008-08-06 Thread Jonathan Barker
() onValidateFormFromLoginForm(); With a single form, you may just want to use onValidateForm(). > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2008 08:46 > To: users@tapestry.apache.org > Subject: Form validation quest

Form validation question

2008-08-06 Thread photos
From reading the documentation I am under the impression that during form submission a VALIDATE_FORM event is emitted once. However, I observe onValidate() being called for every component in the form, the value from the component not being set until *after* onValidate has apparently been c

Re: T5 - BeanEditForm server side validation question

2007-12-09 Thread Chris Campbell
Very good. For completeness for anyone else reading this, I did the following: Added to the java class @Component private BeanEditForm _form; public BeanEditForm getForm() { return _form; } and changed template to ( notice the Thanks! Filip S. Adamsen wrote: > Hi Chris, > > Simply inj

Re: T5 - BeanEditForm server side validation question

2007-12-09 Thread Filip S. Adamsen
Hi Chris, Simply inject the BeanEditForm into your page class and use that to record the errors. You'll need to give the BeanEditForm an id in your template and then use the @Component annotation to inject it. Details are here: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/

T5 - BeanEditForm server side validation question

2007-12-09 Thread Chris Campbell
Simple question from a noob: Following form example, mostly works well. Now I want to do some cross validation server side, and can do that, however I cannot figure out how to set the error message on the form. My class has: @Inject private BeanModelSource _beanModelSource; @Inject priva

Another validation question - poplists

2007-05-21 Thread Jan Vissers
Hi - How can I make sure that whenever I select an invalid value from a poplist - according to my validator - this faulty value is still selected when the form is redisplayed? Currently the poplist (selected) value 'rolls back' to the value it had prior to the invalid selection. Thanks, -J.

Re: Validation question

2006-10-02 Thread Vinicius Carvalho
Never mind, I'm using commons-validator for that. I really would like to see a way of bypassing validation on the table component navigation, clearing the delegate for the form after the component finish rendering??? I wonder if it is a validation request for a JIRA enhancement? Regards On 10/2/

Validation question

2006-10-02 Thread Vinicius Carvalho
Hello there! I need to validate my fields by hand (table component navigation issues :) ) I'd like to know if its possible to use the validators on my listener instead of binding them? If so, how? For instance: IFormComponent name = (IFormComponent)getComponent("name"); //validate the name usin

Re: form validation question

2006-07-03 Thread Paul Cantrell
I'll throw in my endorsement for (1). Often, we programmers get too wrapped up in try to use some clever framework feature for every minute detail ... when sometimes, it's simpler just to write a few lines of code. A listener which first performs validation before processing is easy to wr

Re: Re: form validation question

2006-07-03 Thread Jesse Kuhnert
AhhI really need to finish up the 4.1 release. We'll be able to support arbitrary requirements logic like this now as well. (on the client side && server.. Ie if this field gets filled out/selected then these other two fields are required. Stuff like that) On 7/3/06, Richard Clark <[EMAIL PRO

Re: Re: form validation question

2006-07-03 Thread Richard Clark
You can either: 1) Do all the validation in your listener (on the Java side), or 2) Write your own client-side valdation code in JavaScript. The server-side validation would look like this: ValidationDelegate delegate = (ValidationDelegate)getComponent("delegate"); if (!getCheckbox()) { String

Re: form validation question

2006-07-03 Thread Valdemaras Repšys
Labas Aleksej, Hi Shing, thanks for the answers. I think Aleksej's solution is simpler and it fits. But the bad thing is i'll have to say a good bye to client side validation.. Valdemaras Repšys On 7/3/06, Aleksej <[EMAIL PROTECTED]> wrote: bėgantis debesis wrote: > Hi, > > to simplify a prob

Re: form validation question

2006-07-03 Thread Aleksej
bėgantis debesis wrote: Hi, to simplify a problem, let's say i have a @Checkbox and many @Text components in a form. I want no validation when the checkbox is checked, and validation must be executed, when form is submitted with the checkbox not checked. @Text component contents must be validate

Re: form validation question

2006-07-03 Thread Shing Hing Man
I do not have an easy solution to your problem. The following is just an idea which I have not tested. Have you considered 'extending' the component TextField to hava an extra boolean parameter 'validation flag' ? The idea is that validation is skipped according to the 'validation flag'. In you

form validation question

2006-07-02 Thread bėgantis debesis
Hi, to simplify a problem, let's say i have a @Checkbox and many @Text components in a form. I want no validation when the checkbox is checked, and validation must be executed, when form is submitted with the checkbox not checked. @Text component contents must be validated. Do you know any ways o