Oooh, some may feel strongly another way, but here goes...

Yep, definitely start splitting up your ModelLocators. I have a model
locator for every major section of my application (of which there are more
than 30 and counting!). It makes life so much easier.

Would also suggest splitting into packages (folders) as well, this makes it
easier to add and find locators based roughly on the functions of your
application. e.g...

com.mycompany.applicationname.model.administration.UsersModelLocator

Indeed look out for naming conflicts, on the 'very' odd occasion you may
find that a view needs to have bindings to a couple of model locators. If
you can, start making those bindings/views into their own standardised
components. For example I have a complex FilterUsers panel that is an mxml
component (with its own locator); it gets used throughout the application.
Thus views that need to filter users have the FilterUsersModelLocator as
well as their own. Works beautifully.

Same goes for controllers.

The plumbing is worth the effort, you'll never look back :D

Hope this helps.

Malcolm

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of fowleryj
Sent: Wednesday, 5 October 2005 5:22 AM
To: [email protected]
Subject: [flexcoders] Cairngorm ModelLocator

Is the ModelLocator intended to be the *only* global repository for
variables to which you'll need to bind throughout your application? My
ModelLocator is getting huge, and I would like to split it into a few
ModelLocators (with different names, obviously). Has anyone done this?
Are there any caveats of which I should be aware? How have others
dealt with their ModelLocator's large size?





--
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



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to