On Thu, 2003-07-31 at 04:15, maisonneuve nico wrote: > hi , i would make a account form with woody and store informations in a xml > file (in fact in a XML database) > with this structure : > <user> > <id>0100007f664e8bad000000f69dd0d652</id> > <login>nicolas</login> > <password>cococo</password> > <name>maisonneuve</name> > <firstname>nicolas</firstname> > <role>user</role> > <email>[EMAIL PROTECTED]</email> > <entreprise>paris5</entreprise> > </user> > > in the create action, at the end of the submit, i have to check if the login > is already used or not. > i cant create a validation rule despit of the update action (in update > action, the login check will be always true and a validation error will be > created)
yep, validation rules are mostly for generic stuff. Application-specific validations are better done by 'outside code', like you're doing. > so i make a avalon XMLDBcomponent with the hasResult(Xpath) > and update the file.js with this source code; > but how tell to the user the invalide login error (with validate rule it's > easy but with this way i don't know how do) You would need to have an addValidationError() method on the widget. Unfortunately that doesn't exist yet, though it is planned to add such a thing. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
