Sounds great Marius. Sounds like this is all coming together very nicely! Excellent work chaps.
On 3 Nov 2008, at 15:38, Marius wrote: > The best answer would be to look at the code :) ... but in a glance > here it is: > > 1. For each Field you can add virtually any number a validation > functions. Each validation function takes parameter the type of the > field (Int, Long String etc.) and returns a Can[Node]. If Can is Empty > the validation passed. Otherwise the Node impersonates the error text > that will be shown as validation message. > 2. In the validation function you have access to all other Record > fields if you have fields dependency validation. > 3. When you call validate on a record it will subsequently call all > validators for each field and Return a List[FieldError]. having this > list you can pass it to S.error for example in order to set the > validation messages into the form > > I could probably send you off line later on today a code example. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
