Hi,
> Have you considered using webmacro templates for this? I know
> Jon has
> done some for user/security management in Scarab that I'm sure
> he wouldn't mind you plundering :-)
Yes - a little, but we're still new to servlets/Turbine, so I thought we'd save that
for later/version 2...
> I'd definitely look at having a generic 'validate' method in the mem
> baseclass that you pass the RunData instance to so it can generate
> messages to return to the user if the validation fails (something I've
> banged on about here before :-) )
Yes, I'm keeping the validate - although I've still to work out how to get field level
messages, especially re-mandatory fields - I want to try centralise the validation bit
and getting an error indication - since its basically the same code.
> IMO writing proper object wrappers around your database
> attributes is a key to clean separation of model from
> view/controller.
I agree with the proper wrappers bit, but don't get me onto MVC (ie
http://www.javaworld.com/javaworld/jw-09-1999/jw-09-toolbox.html )
I've gone the get/set route for now (but with my getElement -nee getHtml method ;-) )
- it was fairly easy once I got started - I'm at the point of sorting out field level
validations and of course saving to the db...
See ya,
Chris
"There is no spoon"
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]