--
You received this message because you are subscribed to the Google
Groups "Robotlegs" group.
To post to this group, send email to robo...@googlegroups.com
To unsubscribe from this group, send email to
robotlegs+...@googlegroups.com
for support visit http://knowledge.robotlegs.org
Howdy all,
I recently pushed a bunch of changes to the version2 branch.�If you want to crash your browser you can check out the diff on GitHub:
Otherwise, you can read some background here:
Some bits are still missing, but I'm much happier with the overall shape.
If you wrote any extensions for RL2 you'll need to modify your extension integration files:
Any thoughts, concerns or suggestions, feel free to:
Send a pull request:�https://github.com/robotlegs/robotlegs-frameworkSubmit an issue:�https://github.com/robotlegs/robotlegs-framework/issues/new
Or post a message to this group.
Hello Shaun,
Lot of work, I like it more and more :)
I have a small issue with mediators: their "initialize" method is never called.
I'm still trying to understand the issue, but if you can help, I vote for it!
1) I initialize RL in MyApp.mxml (note the <view:Main id="main" />):
<fx:Declarations>
<rl:ContextBuilderTag>
<config:AppBundle />
</rl:ContextBuilderTag>
</fx:Declarations>
<view:Main id="main" />
2) Then in AppBundle.configureContext() :
context.addLogTarget(new TraceLogTarget(context));
context.require(
StageSyncExtension,
CommandMapExtension,
EventCommandMapExtension,
ViewManagerExtension,
MediatorMapExtension,
AppConfig
);
3) and finaly in AppConfig :
mediatorMap.mapView(Main).toMediator(MainMediator);
4) Problem: when I launch the application, MainMediator.initialize() is never called.
Log:
Main.creationCompleteHandler()
MyApp.creationCompleteHandler()
1103 INFO Context-0-cd Context-0-cd - Initializing...
12:24:23.581 DEBUG - AppConfig - configure()
1118 INFO Context-0-cd Context-0-cd - Initialize complete
It seems that everything is initialized correctly, but I must be doing something wrong.
5) Bonus, unrelated: if I try to add the ContextViewListenerConfig to the bundle, I get the following error:
Error: Injector is missing a mapping to handle injection into property "contextView" of object "[object ContextViewListenerConfig]" with type "[class ContextViewListenerConfig]". Target dependency: "flash.display::DisplayObjectContainer|"
(I tried putting contextView in <rl:ContextBuilderTag> like this <rl:ContextBuilderTag contextView={this}>)
Cheers,
Adnan
On 23/01/2012 15:02, Shaun Smith wrote:
Howdy all,
I recently pushed a bunch of changes to the version2 branch. If you want to crash your browser you can check out the diff on GitHub:
Otherwise, you can read some background here:
Some bits are still missing, but I'm much happier with the overall shape.
If you wrote any extensions for RL2 you'll need to modify your extension integration files:
Any thoughts, concerns or suggestions, feel free to:
Send a pull request: https://github.com/robotlegs/robotlegs-frameworkSubmit an issue: https://github.com/robotlegs/robotlegs-framework/issues/new
Or post a message to this group.--
You received this message because you are subscribed to the Google
Groups "Robotlegs" group.
To post to this group, send email to robo...@googlegroups.com
To unsubscribe from this group, send email to
robotlegs+...@googlegroups.com
for support visit http://knowledge.robotlegs.org
Hi Adnan,
Have you tried it with the Classic bundle? There are a couple of things missing from your custom bundle:
LocalEventMapExtensionStageObserverExtension
Without the StageObserver nothing will be watching the stage for views.�Also, without the ContextViewListenerConfig the viewManager will not be wired to the contextView and nothing will be observed.
Another issue might be that the "main" view is already on Stage by the time the context initialises - if this is the issue (which it probably is), I'll be addressing that shortly. In the meantime, you could try adding the main view after initialization (like in the demo I sent you previously).
The LocalEventMapExtension is required by the classic Mediator implementation so you'll need that too.
Let me know how it goes.
On 24 Jan 2012, at 11:30, Adnan Doric P. wrote:
Hello Shaun,
Lot of work, I like it more and more :)
I have a small issue with mediators: their "initialize" method is never called.
I'm still trying to understand the issue, but if you can help, I vote for it!
1) I initialize RL in MyApp.mxml (note the <view:Main id="main" />):
��� <fx:Declarations>
��� ��� <rl:ContextBuilderTag>
��� ��� ��� <config:AppBundle />
��� ��� </rl:ContextBuilderTag>
��� </fx:Declarations>
��� <view:Main id="main" />
2) Then in AppBundle.configureContext()� :
context.addLogTarget(new TraceLogTarget(context));
��� ��� ��� context.require(
��� ��� ��� ��� ��� StageSyncExtension,
��� ��� ��� ��� ��� CommandMapExtension,
��� ��� ��� ��� ��� EventCommandMapExtension,
��� ��� ��� ��� ��� ViewManagerExtension,
��� ��� ��� ��� ��� MediatorMapExtension,
��� ��� ��� ��� ���
��� ��� ��� ��� ��� AppConfig
��� ��� ��� ��� );
3) and finaly in AppConfig :
mediatorMap.mapView(Main).toMediator(MainMediator);
4) Problem: when I launch the application, MainMediator.initialize() is never called.
Log:
Main.creationCompleteHandler()
MyApp.creationCompleteHandler()
1103 INFO Context-0-cd Context-0-cd - Initializing...
12:24:23.581 DEBUG - AppConfig - configure()
1118 INFO Context-0-cd Context-0-cd - Initialize complete
It seems that everything is initialized correctly, but I must be doing something wrong.
5) Bonus, unrelated: if I try to add the ContextViewListenerConfig to the bundle, I get the following error:
Error: Injector is missing a mapping to handle injection into property "contextView" of object "[object ContextViewListenerConfig]" with type "[class ContextViewListenerConfig]". Target dependency: "flash.display::DisplayObjectContainer|"
(I tried putting contextView in <rl:ContextBuilderTag> like this <rl:ContextBuilderTag contextView={this}>)
Cheers,
Adnan
On 23/01/2012 15:02, Shaun Smith wrote:
Howdy all,
I recently pushed a bunch of changes to the version2 branch.�If you want to crash your browser you can check out the diff on GitHub:
Otherwise, you can read some background here:
Some bits are still missing, but I'm much happier with the overall shape.
If you wrote any extensions for RL2 you'll need to modify your extension integration files:
Any thoughts, concerns or suggestions, feel free to:
Send a pull request:�https://github.com/robotlegs/robotlegs-frameworkSubmit an issue:�https://github.com/robotlegs/robotlegs-framework/issues/new
Or post a message to this group.--
You received this message because you are subscribed to the Google
Groups "Robotlegs" group.
To post to this group, send email to robo...@googlegroups.com
To unsubscribe from this group, send email to
robotlegs+...@googlegroups.com
for support visit http://knowledge.robotlegs.org
--
You received this message because you are subscribed to the Google
Groups "Robotlegs" group.
To post to this group, send email to robo...@googlegroups.com
To unsubscribe from this group, send email to
robotlegs+...@googlegroups.com
for support visit http://knowledge.robotlegs.org
Thank you Shaun,
My bad, I was trying to paste only parts of Classic bundle in order to include only used extensions, with you explication it is crystal clear.
Now it works even with "Main" already on Stage!
Best regards,
Adnan
On 24/01/2012 14:08, Shaun Smith wrote:
Hi Adnan,
Have you tried it with the Classic bundle? There are a couple of things missing from your custom bundle:
LocalEventMapExtensionStageObserverExtension
Without the StageObserver nothing will be watching the stage for views. Also, without the ContextViewListenerConfig the viewManager will not be wired to the contextView and nothing will be observed.
Another issue might be that the "main" view is already on Stage by the time the context initialises - if this is the issue (which it probably is), I'll be addressing that shortly. In the meantime, you could try adding the main view after initialization (like in the demo I sent you previously).
The LocalEventMapExtension is required by the classic Mediator implementation so you'll need that too.
Let me know how it goes.
On 24 Jan 2012, at 11:30, Adnan Doric P. wrote:
Hello Shaun,
Lot of work, I like it more and more :)
I have a small issue with mediators: their "initialize" method is never called.
I'm still trying to understand the issue, but if you can help, I vote for it!
1) I initialize RL in MyApp.mxml (note the <view:Main id="main" />):
<fx:Declarations>
<rl:ContextBuilderTag>
<config:AppBundle />
</rl:ContextBuilderTag>
</fx:Declarations>
<view:Main id="main" />
2) Then in AppBundle.configureContext() :
context.addLogTarget(new TraceLogTarget(context));
context.require(
StageSyncExtension,
CommandMapExtension,
EventCommandMapExtension,
ViewManagerExtension,
MediatorMapExtension,
AppConfig
);
3) and finaly in AppConfig :
mediatorMap.mapView(Main).toMediator(MainMediator);
4) Problem: when I launch the application, MainMediator.initialize() is never called.
Log:
Main.creationCompleteHandler()
MyApp.creationCompleteHandler()
1103 INFO Context-0-cd Context-0-cd - Initializing...
12:24:23.581 DEBUG - AppConfig - configure()
1118 INFO Context-0-cd Context-0-cd - Initialize complete
It seems that everything is initialized correctly, but I must be doing something wrong.
5) Bonus, unrelated: if I try to add the ContextViewListenerConfig to the bundle, I get the following error:
Error: Injector is missing a mapping to handle injection into property "contextView" of object "[object ContextViewListenerConfig]" with type "[class ContextViewListenerConfig]". Target dependency: "flash.display::DisplayObjectContainer|"
(I tried putting contextView in <rl:ContextBuilderTag> like this <rl:ContextBuilderTag contextView={this}>)
Cheers,
Adnan
On 23/01/2012 15:02, Shaun Smith wrote:
Howdy all,
I recently pushed a bunch of changes to the version2 branch. If you want to crash your browser you can check out the diff on GitHub:
Otherwise, you can read some background here:
Some bits are still missing, but I'm much happier with the overall shape.
If you wrote any extensions for RL2 you'll need to modify your extension integration files:
Any thoughts, concerns or suggestions, feel free to:
Send a pull request: https://github.com/robotlegs/robotlegs-frameworkSubmit an issue: https://github.com/robotlegs/robotlegs-framework/issues/new
Another issue might be that the "main" view is already on Stage by the time the context initialises - if this is the issue (which it probably is), I'll be addressing that shortly. In the meantime, you could try adding the main view after initialization (like in the demo I sent you previously).
for ex:
injector.map(IGallerySearch).toSingleton(GallerySearch);
HTH
--
You received this message because you are subscribed to the Google
Groups "Robotlegs" group.
To post to this group, send email to robo...@googlegroups.com
To unsubscribe from this group, send email to