Bad luck, I'm using 0.99.

should I unregister the viewhelper before destroying the container?
I noticed that viewHelper Class sets an unload event, shouldn't it be
dispatched when the parent container is destroyed? Or is it destroyed
too late ?
my piece of code
<!---
this.main.destroyAllChildren();

doLater(this.main.createChild(eval(url),undefined,{title:'some
title',width:'100%', height:'100%',id:'someid'}))
--->
url beeing the container that should be loaded.

João Fernandes


--- In flexcoders@yahoogroups.com, "mackdoyle" <[EMAIL PROTECTED]> wrote:
> João,
> Are you using Cairngorm 95 or 99? If using 95, read this post on how
> to add functionality that will allow you to unregister a ViewHelper:
> http://groups.yahoo.com/group/flexcoders/message/6148 .
> 
> -Jason
> 
> 
> --- In flexcoders@yahoogroups.com, "joao_m_fernandes"
> <[EMAIL PROTECTED]> wrote:
> > Well I'm currently using the 2 approach.
> > 
> > I'm loading different applications in a shell when someone selects a
> > node in a menubar.
> > I destroy all shell children and then create the provided application.
> > 
> > My first problem was where I should define the different
> > servicesLocators since they can only be initialized once so I defined
> > in my main Application window but I found out that viewhelpers had the
> > same problem. Even destroying children, it seems that they still
> > exists when I create the new application. 
> > I even tried to use doLater when creating the new application with no
> > luck. 



> > 
> > If I selected the same application in the menu, I get a blank shell
> > but selecting a second time it shows up. 
> > 
> > I don't get the problem if no viewhelper is defined in my application
> > so the switching seems to work fine. 
> > 
> > Any ideas how to solve this? 
> > 
> > thanks,
> > 
> > João Fernandes
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Dirk Eismann" <[EMAIL PROTECTED]>
wrote:
> > > Hi João,
> > >  
> > > this depends on how you want your users to experience the
> > applications. You could for example supply several Cairngorm apps that
> > are autonomous and do not "know" about each other. In this scenario
> > you could share common code (such as the Cairngorm classes and some
> > Framework classes) by using a RSL. Each application defines its own
> > Controller, Model and Command classes.
> > >  
> > > Another possibility is to load the different apps into a "shell"
> > application (e.g. imagine your sub-apps get loaded into pupup windows,
> > similar to the Flex Explorer). These sub-apps then run in the same
> > variable scope as the main shell application so it's possible to place
> > global functionality and models into the shell application. In this
> > scenario still each application defines its own FrontController but
> > they could share common objects such as the ServiceLocator and the
> > EventBroadcaster.
> > >  
> > > The second approach is more flexible and pretty easy to use this
> > kind of dynamic loading. Also, it adds much to the overall user
> > experience as all applications gets displayed in one homogenous
> > environment.
> > >  
> > > Dirk.
> > > 
> > > ________________________________
> > > 
> > > Von: flexcoders@yahoogroups.com im Auftrag von joao_m_fernandes
> > > Gesendet: Mo 27.06.2005 12:18
> > > An: flexcoders@yahoogroups.com
> > > Betreff: [flexcoders] Cairngorm on a Intranet
> > > 
> > > 
> > > 
> > > Hi there,
> > > 
> > > I'm starting with cairngorm framework and want to apply it to our
> > > Intranet. The samples apply always to a single application but our
> > > intranet have several applications. I would like to know what should
> > > be the best approach to implement this Framework.
> > > 
> > > Should I create a unique controller/model Localor/service locator or
> > > should I have for each application ?
> > > 
> > > If I should separate them, should I give the same name to the
> > > controller/model/service so they are overwritten each time the user
> > > switches applications or should I use unique names?
> > > 
> > > Thanks
> > > 
> > > João Fernandes
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > 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

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