MXML Component reusability

thipages's Avatar


03 Nov, 2009 11:54 AM


first of all, I would like to thank the creator and all of you with having built in such collaborative mode this "PureDI " MVC framework.

Something extremely important is the possibility of reusing components. This is apparently possible in RL ;-) by using different contexts. Former "mapModule" and new "injectViewAs" argument of "mapview" method seems to do the job. However the documentation has not yet treated this and I did not succeed in implementing someting I want with this even looking at some of the git examples.Former named injection could do the job as well in my case but has disappeared, which is good.

My question : I have a mxml component (which does perform CRUD management on a database record list) I would like to reuse it with different mediators (database tables)... How can I manage this? There might be two answers

  • a quick one (could be based on the named injection...)

  • a more complete one (with a module like implementation, which can represent a refactored implementation of the quick solution)

The quick one will be enough for the time being (hot time for RL these days), the other may wait the documentation.

I have attached the mxml code of my current component (list, label plus dynamic panel) as a example but I guess it applies to any components we would like to reuse

I really think that some kind of truth is somewhere around RL.
Thank you again.


  1. Support Staff 1 Posted by Joel Hooks on 03 Nov, 2009 04:08 PM

    Joel Hooks's Avatar

    Creating "stub" views would solve this issue:

    <ListManagement />

    <ListManagement />

  2. 2 Posted by thipages on 03 Nov, 2009 06:03 PM

    thipages's Avatar


  3. Joel Hooks closed this discussion on 03 Nov, 2009 06:05 PM.

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

Keyboard shortcuts


? 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