On 14.Jun.2001 -- 07:15 PM, Neeme Praks wrote:
> * validation data: With my current form validation system (from Turbine),
> I'm able to specify the following information about the error on a form:
>       * error code/name

I think the patch addresses almost all of your points. There are only
a small number of error codes available corresponding to the
validation rules currently supported. They are organized in a
java.util.HashMap with the parameter name as key. 

>       * form name

Mmmh, I reckon this would be encoded as a parameter but wouldn't be
determined by the validation process, would it. Please give an example
how you would like to see this supported.

>       * field name

Thus when an error occured and the action directs the flow to the
error page every parameter has to be checked to see what when
wrong. Hence you're not provided with the name of the offending field
but with a per field status.

>       * related data (optional)

Related data -- I don't know what this could be. If this is static and
related to a field it could be retrieved from the descriptor.xml file
through xsp-formval:get-attribute. If it's dynamically related to the
validation process -- I don't know. If you could provide an example I
will try to see how it fits or what could be done to cater for it.


On 14.Jun.2001 -- 08:49 PM, Piroumian, Konstantin wrote:
> > Instead, I would like to be able to pass the parameters to some i18n
> package
> > like XMLResourceBundle in Avalon, or i18n transformer in C2 (I haven't
> > looked deeper into i18n transformer yet, so I know very little about
> > parameter substitution support there).
> 
> About i18n transformer: param substitution is supported. And the above task,
> I think, can be easily performed in locale-sensitive manner if you change it
> like this:

Konstantin, thank you for pointing it out. I too believe that
internationalization is a different concern and should therefore be
separated from the validation process.

        Chris.

PS: as of Friday 0900 UTC the discussed patch seems no to have made it
into CVS.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to