You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Edwin Gustafson <eg...@caymanchem.com> on 2005/04/06 21:45:29 UTC
Cross-field form validation with Intake
Greetings,
I haven't posted here in a couple of years, just upgraded my application
to Turbine 2.3.1 and enjoying the difference from Turbine 2.1.
One thing I haven't found, in the updated Intake, is a way to create
custom validation rules based on the values of multiple fields. I'd
like to give the user a form where they have to complete one or the
other of two sets of fields. There is a provision now for a custom
validation rule based for a single field, but no sign of a system for
doing cross-field or whole-form validation. Any way to do this?
--
Edwin Gustafson
Cayman Chemical Company
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Cross-field form validation with Intake
Posted by Peter Courcoux <pe...@courcoux.biz>.
Edwin Gustafson wrote:
> Greetings,
>
> Replying to my own message, to prompt a repsonse: am I right that
> there's no whole-form, cross-field custom validator mechanism in Intake?
>
> Edwin Gustafson wrote:
>
>> I haven't posted here in a couple of years, just upgraded my
>> application to Turbine 2.3.1 and enjoying the difference from Turbine
>> 2.1.
>>
>> One thing I haven't found, in the updated Intake, is a way to create
>> custom validation rules based on the values of multiple fields. I'd
>> like to give the user a form where they have to complete one or the
>> other of two sets of fields. There is a provision now for a custom
>> validation rule based for a single field, but no sign of a system for
>> doing cross-field or whole-form validation. Any way to do this?
>
>
Edwin,
I have not looked at Intake for a long time, so I cannot comment on it.
However, I wrote an extention for turbine 2.3/2.4 which I have called
turbine-review and which, regrettably is not yet published in the
turbine cvs. However, a jar file and it's use are demonstrated in the
turbine example application at
http://zebra.berlios.de/antelope/GettingStarted.html
turbine-review does allow exactly what you are describing, the building
of custom validators which have access to all the submitted form values
for use in the validation process.
If you are interested and email me off list, I will send you a draft pdf
users guide.
--
Regards,
Peter
----------------------------
Peter Courcoux
Telephone +44 (0)1923 661488
Mobile 07880 605626
----------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Cross-field form validation with Intake
Posted by Edwin Gustafson <eg...@caymanchem.com>.
Greetings,
Replying to my own message, to prompt a repsonse: am I right that
there's no whole-form, cross-field custom validator mechanism in Intake?
Edwin Gustafson wrote:
> I haven't posted here in a couple of years, just upgraded my
> application to Turbine 2.3.1 and enjoying the difference from Turbine 2.1.
>
> One thing I haven't found, in the updated Intake, is a way to create
> custom validation rules based on the values of multiple fields. I'd
> like to give the user a form where they have to complete one or the
> other of two sets of fields. There is a provision now for a custom
> validation rule based for a single field, but no sign of a system for
> doing cross-field or whole-form validation. Any way to do this?
--
Edwin Gustafson
Cayman Chemical Company
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org