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 ... 9 10 [11]
151  PureMVC Manifold / Standard Version / Re: The good logic for command ? on: October 16, 2008, 02:27:11
Jasonmac, you are right, but here he only wants to delete two entries when the user asks for, one in product list, the other in description list. It is better not to call a proxy that will call another just after ... a command to centralize the whole process is a better choice at my own opinion.

A good "complex" command that answers your problem is the DeleteUserCommand in the employee admin demo in : http://puremvc.org/pages/demos/AS3/Demo_AS3_Flex_EmployeeAdmin/srcview/ it does exactly what you want to do, delete an entry and some informations associated with it.
152  PureMVC Manifold / Standard Version / Re: The good logic for command ? on: October 16, 2008, 02:12:14
For my part, I try to always use the controller to change or use the model when the user does something. It's the root of the MVC paradigm.

The use you made of your command seems to be the good one for me. You use it to dispatch changes on your model from the controller .. it is its role, it must be in a command.
153  Announcements and General Discussion / Architecture / Re: ValueObject with an update() method on: October 02, 2008, 06:28:05
Cliff you do not think that this could be a bad practice to use this if multiple clients listen and receive update events from the same VO ? For my part, it seems to come as a clone   implementation of notification supports when a simple notification could do the job (in the goal to keep it simplest as possible).
154  Announcements and General Discussion / Architecture / Re: ValueObject with an update() method on: October 01, 2008, 08:46:28
Is your project an Actionscript project ? Because what you've made is a sort of your own DataBinding implementation. If it is an Actionscript project (I suppose it is not) you would prefer to use databinding mechanisms.

If the update direction is from the form to the model I would have preferred to send a notification that a command will catch because sending a form is a typical controller role or at least just call a proxy from your form view mediator.

If the update direction is from the model to the form I would have preferred to send a notification that your form view mediator will catch to update the form.
155  PureMVC Manifold / MultiCore Version / Re: Using the PureMVC Java port with GWT? on: September 17, 2008, 05:05:52
Hi,

I talk about it to a Java Developer colleague of mines that play a lot with GWT. I asked him to have a look into it. ;)

156  Announcements and General Discussion / Getting Started / Re: Loading an application on: July 24, 2008, 10:48:59
Hi Cliff,
I already have written some application with a splash (mProjector not Air). I love the idea. We will do that.
157  Announcements and General Discussion / Getting Started / Re: Loading an application on: July 24, 2008, 07:50:52
My colleague finds the solution to our problem. I'm not sure it will be the same as yours.

We have to use three different progress-bars to load the application :
  • The first to load the application itself and RSLs.
  • The second to load modules (our main application is a module, the loader is a PureMVC shell)
  • The third in a loaded module to show initialization progress of the *StartupManager* (configuration loading, internationalization loading, etc...)

The "flickering" was between second and third. We first rely on the *ModuleLoader.onModuleComplete* handler to remove the progress-bar that loads modules. Now we have to rely on the *Module.onCreationComplete* to remove the progress-bar that load modules and display the *StartupManager* progress-bar in place of it without to have to display a blank screen during few milliseconds.

158  Announcements and General Discussion / Getting Started / Re: Loading an application on: July 24, 2008, 12:26:45
We are working on the exact same problem here in the company I work for, exact same circumstances today with a colleague of mine. I hope we will have an answer today.  The only difference could be that we use modules and external RSLs.

I hope I can give you some news as soon as possible.

PS: Note that this not really PureMVC related.
159  Announcements and General Discussion / General Discussion / Re: There are MulticorePureMVC, should normal PureMVC be totally insteaded? on: July 11, 2008, 12:55:59
Cliff, I think that multicore must be the default too.

The way you (well) write multicore version of PureMVC allows to use it as monocore even if you didn't need modules. I personally use only multicore version, even for applications that I suppose to use as monocore. The difference is very lightweight, even if I perfectly understand that it's bad to add complexity when it is not needed for people that just begin with PureMVC.

But the real thing is that multicore as default would be a good thing because of the compatibility with utilities or different ports in the future. Nothing worst than to find an utility and realize that the port to multicore has not been made. I'm also afraid that two identical branches exists in the future, badly slowing the adoption because of the difficulty to find the good way start to use PureMVC.
160  PureMVC Manifold / Demos and Utils / Re: Startup as Ordered - A PureMVC AS3 / Flex Demo on: July 08, 2008, 06:03:42
Forgive me, you need to know the exact name of the proxy when you refer to it in *StartupResourceLoadedCommand* or *StartupResourceProxy*.

Nothing too hard to deal with. :)

Sorry.
161  PureMVC Manifold / Demos and Utils / Re: Startup as Ordered - A PureMVC AS3 / Flex Demo on: July 08, 2008, 04:57:44
Philip, could you please change the constructor arguments of the *StartupMonitorProxy* to let us pass the proxy name as the first argument as usual with PureMVC ?

Something like :
:
public function StartupMonitorProxy ( proxyName:String=NAME, data :IResourceList = null ) should be a good idea.
162  Announcements and General Discussion / Architecture / Re: HELP-ME URGENTLY!!!! VO DATA on: June 21, 2008, 06:46:40
The best you can do is to post a minimal example to illustrate your problem.
163  Announcements and General Discussion / Architecture / Re: HELP-ME URGENTLY!!!! VO DATA on: June 21, 2008, 02:37:50
What is the code you use to send the notification in your proxy ?

Are you sure that you send something like : sendNotification( ApplicationFacade.TRYING_EVERYTHING, new UsuarioVO());

If you do not use a real *UsuarioVO* as transport object in your notification, trying to cast it with the *AS* keyword will not be sufficient to recreate the data binding. You must have a real *UsuarioVO* object all the way long. Note that adding or removing parenthesis when constructing an object that do not have constructor changes nothing in AS3 for now.

If you are using Flex or something equivalent, a good starting point to see what really happens is to use the "-keep" compiler parameter in compiler parameters. It will generate all the class used for data-binding in your project and will allow you to use the step by step debugger in it.
Pages: 1 ... 9 10 [11]