Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / General Discussion / Unrelated loading external swf in AIR on: January 02, 2009, 06:51:16
Hi all,

Happy new year to all!

I'm writting in this forum knowing it migth not be the right place but... Here's my problem:

Try to load external swf made with Flash+Papervision3D (by someone else I do not control) into an air app full screen. There is a security violation when the loaded app is trying to access the stage.
Everything is OK when the swf is loaded from the Air App application Directory...

Any idea? Many Thanks

2  Announcements and General Discussion / Architecture / Referential Integrity on: July 25, 2008, 06:07:47
Hi there,

Need to implement referential integrity at the user level:

When a user deletes or modify a data (he is allowed to do it), a "Controller" verify that this action won't hurt something:
  • that data is not used by an other (for example is a property of an object) or if yes, the last is not used itself by an other (could be changed/erased too)
  • the user have acl authorisation on modifying/deleting the data potentially related to this one
A screen should display data relational mapping, asking for instructions based on acl.

In order to keep advantage of "Rich Client", the Flex interface should handle this and let the server serving info, mostly "raw info" (not aggregated). I'm I Right ?

Each DTO has its own proxy.

I thougth I would use a proxy to handle integrity checking, requesting the server for something like "Tell me what is related to this". This ReferentialIntegrityProxy would be called by DTO proxys upon their own delete() or update() commands.
ReferentialIntegrityProxy sends a notification. A ReferentialIntegrityMediator deals with user interaction. ReferentialIntegrityProxy command the DTO proxy to allow or not the action.

Is it best practice?

Many thanks,
3  Announcements and General Discussion / General Discussion / Cyclic update for datagrid or TileList on: June 09, 2008, 02:32:03
Hi all,

For a real time monitor, I need some update of some values, but NOT all, from a list of data.
My Proxy is taking care of keeping data up to date.

How do I make my display list to be updated?

Does my mediator reload ALL the data whether it was updated or not, or... what????

Many thanks for your help.

Best regards from France,
4  Announcements and General Discussion / General Discussion / Reserved notification constants on: April 22, 2008, 01:58:02
Hi all,

I just spent 3 days on a bug, so hope this will make life easier for someone...

ApplicationFacade.FILTER (filter)
ApplicationFacade.SORT (sort)

Do not work when registering a mediator with these words in the list of notification interests
PureMVC -> view.as line 89 consider them as function name and the compiler cannot cast them to Array...

5  Announcements and General Discussion / General Discussion / Is VO a good place for constants? on: April 15, 2008, 03:45:30
Hi all,

For constants that are only used along with the use of a VO, can that VO hold the constant definition?

Ex.: a UI component ACL state (READ_ONLY | MODIFY | ACCESS_DENIED)

Thus in a complex nested components view with a single mediator managing them, there would be no need to pass the constants definitions down the UI hierarchy, the VO would transmit it.

Good Parctice?

Many thanks,

6  Announcements and General Discussion / Architecture / Transversal functionalities on: April 01, 2008, 01:22:43
Hi again,

In any project I could imagine, they are transversal functionalities, which apply the same logic in any Business Object (User, Product, Agenda...) like:
  - localisation of labels
  - form validation
  - user feedback messages
  - acl management (admin could access any fields but user can modify only few of them, ex. user can change his password, but admin can change the username)

Those do not integrate very well with notification process who are more 'verticaly' or 'channel' oriented (from proxies to user interfaces and vice-versa)
To make a comparison with a company, notifications are the reporting to/from the hierarchy, but general services (HR, office supplies...) are transversal and have a cross services structure.

Any idea how to implement such layers in pureMVC??

Thanks all
7  Announcements and General Discussion / Architecture / 2 notifications??? on: March 30, 2008, 07:41:54
Hi there.

I know, its Sunday. so most of you are luckily not working...

Regarding notifications from proxies.
I can see 3 different info types in one ApplicationFacade constant:


 - PRODUCT -> deals with the Product BO
 - GET -> the action on that BO
 - FAILURE -> result of the previous action

Generally, they are two sort of "actors" looking for that notification:

 - Product display mediator: interested to know if its about its BO (PRODUCT here), and if it was successfull (might not even worry about which action it first send)
 - User info mediator: which might not mind about the BO, but only the action and its result for displaying message such as 'Item updated' or 'List not loaded' but with an extra parameter, the level of info: 'critical' might be displayed by an Alert, 'warning' or 'info' by a status bar in the bottom of the screen.

Having a lot of BO & proxies lead to an enourmous amount of constants in the application facade.

If the notification sender could send 2 notifications instead of 1, then a MessageVO could be send in the body of the MESSAGE notification. This Message VO can have a lot of info (short text, long desc, level,...) that "business objects mediators" dont care about.

The number of constants will be divided because the need is then:
USER (the GET info could then go inside the notification type)

Also, a MessageProxy could be used to keep reference of the last message and, when ConfigProxy->debug info is true, could log the messages as a shared object for the admin to check later on.

Is it Best practice?

8  Announcements and General Discussion / Getting Started / nested custom components & their mediator: registration on: March 28, 2008, 01:35:48
Hi all,

Many many thanks for your work. Absolutly fabulous!

That said, all examples are quite basic in the way they deal with a single business object.
I'm trying to build up a demo application melting the skeleton app with the login app & the employeeAdmin app.

On top of those, I want to put ACL management (proxy) and form validation (custom class in the control dir)

I have working the skeleton app melted & the login app with form validation in one hand.
I have working the employeeAdmin app with acl management in the other hand.

Notice that thos 2 works are basics (only on BO each)

Problems arise when melting the two previous works:
I have problem for referencing nested view components for mediator registration:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      private var facade:ApplicationFacade = ApplicationFacade.getInstance();
   <mx:ViewStack id="vwStack" left="0" top="0" right="0" bottom="20" resizeToContent="false" creationPolicy="auto">
      <view:SplashScreen id="splashScreen" showEffect="{slideInEffect}" hideEffect="{fadeOut}" />
      <view:LoginPanel id="loginScreen" showEffect="{slideInEffect}" hideEffect="{fadeOut}" />
      <view:MainScreen id="mainScreen" showEffect="{fadeIn}" />

   <view:StatusControlBar id="statusControlBar" left="0" bottom="0" right="0" />


MainScreen.mxml is the following:

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
       <people:PeopleList id="peopleList" width="100%" />
         <people:PeopleForm id="peopleForm"/>
          <people:RolePanel id="rolePanel" width="280" height="100%"/>

ApplicationMediator is registered by a command at statup.

When registrering (in ApplicationMediator) the following mediators: PeopleListMediator, PeopleFormMediator, RolePanelMediator, what do I have to put there:

facade.registerMediator( new PeopleFormMediator( app.mainScreen.peopleForm ) );

Because app.mainScreen.peopleForm is null

The ideal would be to register PeopleFormMediator not in ApplicationMediator, but in MainScreenMediator, but it is even more complicated to me...

I would love your help.
Pages: [1]