Simple View Problem

Pav's Avatar

Pav

04 Feb, 2011 07:49 PM

I am just starting using Robotlegs by building a site with it. I am using the FlashGoogleMaps project as a model to set up my project and basically just get the hang of it. At this point, all I really want to do is add this view to the stage and see it show up. I have already set up my models for xml and json but it seems that the view mediator returns the view I injected as null. I am doing it the same way as the example. So i am not sure what is wrong. Here are my pastebins. Any help is appreciated.

http://pastebin.sekati.com/?id=Anonymous@05c3f-dc4778c6-t - context

http://pastebin.sekati.com/?id=Anonymous@af50c-dc4778c6-t - PrepViewCommand

http://pastebin.sekati.com/?id=Anonymous@c237e-dc4778c6-t - mediator

http://pastebin.sekati.com/?id=Anonymous@514a7-dc4778c6-t - view

  1. Support Staff 1 Posted by Stray on 04 Feb, 2011 07:59 PM

    Stray's Avatar

    Ah - this is a quick one, the injection tag is

    [Inject] (uppercase I )

    not

    [inject] (lower case i )

    easily done :)

    While you're getting started, you might want to check out the 'common problems' documentation when ever you hit things like this:

    https://github.com/robotlegs/robotlegs-framework/wikis/common-problems

    Glad to be of help,

    Stray

  2. 2 Posted by Pav on 04 Feb, 2011 08:07 PM

    Pav's Avatar

    Thanks. I'll check it out.

  3. Stray closed this discussion on 11 Feb, 2011 11:19 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac