Hi Andrea,
thank you very much for all the information provided, really far more than I hoped for.
I only need to verify the presence of some mandatory fields and the range of some values, nothing complicated.
My question originated from the fact that I am used to validation mechanisms embedded in other frameworks, such as ASP.NET MVC, and so I wanted to check if there was something ready to use inside MARS that would provide the same benefits, e.g. field attributes or similar.
I think the second implementation is a good balance between clarity and effectiveness so I will implement my validation code following that sample.
Thanks again for your great support!
Marco.