No need for me to add reset() methods to all my VO's because I've just added
a reInitialise() method to the ModelLocator that reintialises all the
Models.
Now I need to do similar thing for my ViewHelpers to make the view go back
to their normal state when a user logs in.
Simon
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Simon Fifield
Sent: 25 April 2006 16:13
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex1.5 Cairngorm ModelLocator and VO's
Hi,
I've made some tweaks to the cairngorm framework for my own purposes, but I
would like to ask your opinion of a feature I would like to add.
Scenario:
User logs in and the Value Objects are all filed with data using Java
RemoteObjects. User does lots of stuff then wants to log out.
Now I would like to clear the VO's of their data without having to destroy
and re-create them.
One idea I have to do this is to extend all of my VO's from a base VO class
which has a "reset()" method. This method will clear all the property data
in its instance. I would also add a reset() method to the ModelLocator which
will iterate through all the registered VO's and call their reset() method.
Has anyone got any opinions on this? Is there a better way? Should I even
bother?
Simon Fifield
Senior Developer
Mango Solutions
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.