How to use RL2 in Flex

haozi_lee's Avatar

haozi_lee

18 Mar, 2014 04:33 AM

<s:Application
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mvcs="robotlegs.bender.bundles.mvcs.*"
xmlns:rl2="http://ns.robotlegs.org/flex/rl2"
xmlns:todo="robotlegs.bender.demos.todo.*"
xmlns:views="robotlegs.bender.demos.todo.views.*"
>

<fx:Declarations>
<rl2:ContextBuilder>
<mvcs:MVCSBundle/>
<todo:TodoConfig/>
</rl2:ContextBuilder>
</fx:Declarations>
----------------------------------------
It can't use
In using the flex demo?

  1. Support Staff 1 Posted by Ondina D.F. on 18 Mar, 2014 08:34 AM

    Ondina D.F.'s Avatar

    Hello,

    I guess you are talking about this example:
    https://github.com/robotlegs/robotlegs-demo-TodoList

    The namespaces needed for rl and the todo classes inside your application tag:

    <todo:TodoExampleApplication 
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    
    xmlns:mvcs="robotlegs.bender.bundles.mvcs.*"
    xmlns:rl2="robotlegs.bender.mxml.*"
    xmlns:signals="robotlegs.bender.extensions.signalCommandMap.*"
    xmlns:appConfig="example.todo.*"
    xmlns:formConfig="example.todo.todoForm.*"
    xmlns:listConfig="example.todo.todoList.*"
    xmlns:view="example.todo.todoList.view.*"
    xmlns:todo ="example.todo.*"
    >
    

    Declarations:

    <fx:Declarations>
        <rl2:ContextBuilderTag>
            <mvcs:MVCSBundle/>
            <signals:SignalCommandMapExtension/>
            <appConfig:AppConfig/>
            <formConfig:TodoFormConfig/>
            <listConfig:TodoListConfig/>
        </rl2:ContextBuilderTag> 
    </fx:Declarations>
    

    Note that ContextBuilder is now ContextBuilderTag.

    I hope that helps.

    Ondina

  2. 2 Posted by haozi_lee on 18 Mar, 2014 08:38 AM

    haozi_lee's Avatar

    Thank you very much! 么么思密达

  3. Support Staff 3 Posted by Ondina D.F. on 18 Mar, 2014 08:44 AM

    Ondina D.F.'s Avatar

    You're welcome!

    I forgot to add xmlns:todo ="example.todo.*" to the namespaces.
    I edited the above example. Look at it again.

  4. 4 Posted by haozi_lee on 18 Mar, 2014 08:44 AM

    haozi_lee's Avatar

    Dear O.D.F
    Thank you very much

    ------------------
     李浩(Vincent Lee)

    QQ:10290085

    Tel:18656553250
     

     

    ------------------ 原始邮件 ------------------
    发件人: "Ondina D.F.";<[email blocked]>;
    发送时间: 2014年3月18日(星期二) 下午4:34
    收件人: "坎客鼠"<[email blocked]>;

    主题: Re: How to use RL2 in Flex [Robotlegs 2 #10373]

  5. Support Staff 5 Posted by Ondina D.F. on 19 Mar, 2014 12:37 PM

    Ondina D.F.'s Avatar

    No problem!

  6. Ondina D.F. closed this discussion on 19 Mar, 2014 12:37 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