1 person found this helpful
I suppose one way would be to have the navcontent in the viewstack with a creationpolicy of none (auto for the first one) then have a show event for the first one which triggers the creation of the other content.
the following link describes defered instantiation.
Thanks for the link, one line there helped me out enough as for now
Now I have another problem. Here is an example of the view stack tested with creationPolicy="auto" of the viewstack. Then as you can see on the example the event CONTENT_CREATION_COMPLETE never fires, only UPDATE_COMPLETE fires but it fires almost whatever you do, which leads me to the thought that that isn't the best way of accomplishing what I intend to do: Manually create the deferred views and then dispatch an event about that all content within the viewstack has been created. The CONTENT_CREATION_COMPLETE will work only if I set the creationPolicy="all", which kills the idea of creating the deferred components at a specific time.
Does anyone have any suggestions of which event could be appropriate in this case if there's any? Or any other solution?
http://filip.nedyalkov.net/viewstack/ - view source is enabled. Feel free to download and test.