Mediators stopped working all of a sudden

So I've been working with RL2 for a bit now. And my project was
going just fine. I was changing some views around, just changing
some widths and heights and repositioning them and then all of a
sudden everything just stopped working up to a certain point. My
mediators no longer got created and intialized. I have literally no
idea where to go to debug it. I can't even setup a simple project
to show what's happening as it's specific to this project. I really
dont think I cahnged anything at all having to do with the config.
I have a MainView that has some children are a part of it's MXML.
Some of those children are mediated. MainView gets mediated just
fine. I've added and Event.ADDED listener to MainView and the
children that are supposed to be mediated are added to the stage
according to the traces from the ADDED handler, but the mediators
for them are no longer being created! The only code I've changed
was width/height/position code.

My code is also under revisiion control and I stashed all
changes I had made since I knew it was working, and it is still
doing the same thing. So it literally CANNOT be my code that made
it stop working.

No clue where to even begin to look. If this sort of thing has
happened to anyone else and you were able to fix it, please let me
know!

it looks like it's all added to the stage, but the widths and
heights of a lot of things seem like they must be set to 0. I can
see some components that have hardcoded widths/heights but ones
that use percentages seem to not be there (which i assuem in this
case means their widths/heights are 0)

By the way, adding subviews to a view should be View's job. So,
after you make it work, you should transfer the logic from within
your main mediator to the main view. MainMediator should only pass
the necessary data to a MainView's API

it looks like it's all added to the stage, but the widths and
heights of a lot of things seem like they must be set to 0. I can
see some components that have hardcoded widths/heights but ones
that use percentages seem to not be there (which i assuem in this
case means their widths/heights are 0)

[EDIT] mx.events.FlexEvent.CREATION_COMPLETE:
Dispatched when the component has finished its construction,
property processing, measuring, layout, and drawing.
At this point, depending on its visible property, the component is
not visible even though it has been drawn.

I'm mentioning this because it looks like some of your subviews
are not dispatching the event CREATION_COMPLETE, to which robotlegs
listens to in order to call mediator's initialize() method. This
might have something to do with the way you're setting the layout/
positions of the views. Try to fix the layout issue.

The point is, that you should add children to a View or a
subview (vgroup) first after they have a stage property. Also, that
you should add children to the right container.
When views are added to the stage, as it was the case with
PointOfSaleView at last, their mediator is created and
initialized.
The traces show that it worked well for PointOfSaleView, and if you
follow the same logic, it will work for any other subview. I don't
know where and how you add the child1 to 4, so I can't tell you how
to proceed.

I actually wanted to ask it earlier, but I got carried away by
your messages.
It seems like MainMediator is able to listen to the
DisplayViewEvent.DISPLAY_VIEW event, since the traces show the
PointOfSaleViewmediator initialize, but just for the sake of
completeness :

From where and when are you dispatching
DisplayViewEvent.DISPLAY_VIEW?

Is the MainMediator already initialized by the time you dispatch
the event?
Are the mappings for the subviews completed by the time you
dispatch the event?

The AppMediator mediates my document class and listens for a
BootStrap complete event which then adds the MainView to the
WindowedApplication view. When the MainViewMediator is initialized
it tells MainView to add a LoginView to itself. When the user logs
in a LOGIN event is dispatched which that MainViewMediator catches
and tells it's view to remove the LoginView. I then have a
PostLoginCommand that runs also which dispatches the DisplayView
event at which point the MainViewMediator tells creates the
PointOfSaleView to add to MainView.

The following links are about flex components and their
lifecycle. I thought they might help you figure out how to make
sure that the subcomponents fire the creation complete event,
which, as I said, is needed to trigger mediator's initialize()
method.

From the above article:
"creationComplete Dispatched when the component, and all its child
components, and all their children, and so on, have been created,
laid out, and are visible.
Flex dispatches the creationComplete event for a container when
those children that are initially required are fully processed and
drawn on the screen, including all required children of the
children, and so on. Create a listener for the
creationCompleteevent, for example, if you must have the
children’s dimensions and positions in your event handler. Do
not use the creationComplete event for actions that set layout
properties, as doing so results in excess processing time."

Also see if itemcreationpolicy set to imediate changes the
behaviour of your child- components.